[Bug other/89863] [meta-bug] Issues in gcc that other static analyzers (cppcheck, clang-static-analyzer, PVS-studio) find that gcc misses

2024-02-27 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89863 Bug 89863 depends on bug 106907, which changed state. Bug 106907 Summary: gcc/config/rs6000/rs6000.cc:23155: strange expression ? https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106907 What|Removed |Added -

[Bug target/106907] gcc/config/rs6000/rs6000.cc:23155: strange expression ?

2024-02-27 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106907 Jeevitha changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug target/110320] ELFv2 pc-rel ABI extension allows using r2 as a volatile register

2024-02-27 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110320 Jeevitha changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/110411] ICE on simple memcpy test case when allowing generation of vector pair load/store insns

2024-02-27 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110411 Jeevitha changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/112868] GCC passes -many to the assembler for --enable-checking=release builds

2024-03-01 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112868 Jeevitha changed: What|Removed |Added CC||jeevitha at gcc dot gnu.org --- Comment #8 f

[Bug target/111045] New: PCREL should not be supported on BE ABI

2023-08-17 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111045 Bug ID: 111045 Summary: PCREL should not be supported on BE ABI Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug target/111045] PCREL should not be supported on BE ABI

2023-08-17 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111045 Jeevitha changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/111045] PCREL should not be supported on BE ABI

2023-08-17 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111045 --- Comment #1 from Jeevitha --- TARGET_PCREL was enabled on the Big Endian machine. However, the Big Endian ABI does not support PCREL. Therefore, TARGET_PCREL needs to be disabled here.

[Bug target/106438] powerpc: ICE when building libgfortran with -flto: in insert_value_copy_on_edge, at tree-outof-ssa.cc:334

2024-08-13 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106438 --- Comment #5 from Jeevitha --- Able to reproduce the error with a simple test case using the following compilation and linking commands. The issue occurs whenever we pass different ABIs during compilation and linking. jeevitha@ltcden2-lp1 nb_

[Bug target/106438] powerpc: ICE when building libgfortran with -flto: in insert_value_copy_on_edge, at tree-outof-ssa.cc:334

2024-08-14 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106438 --- Comment #6 from Jeevitha --- Interestingly, the issue occurs only with _Float128 and not with __float128. Here's the test case without the issue, [jeevitha@ltcden2-lp1 nb_gcc_106438]$ cat t1.c #include typedef __float128 GFC_REAL_17; vola

[Bug target/106438] powerpc: ICE when building libgfortran with -flto: in insert_value_copy_on_edge, at tree-outof-ssa.cc:334

2024-08-14 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106438 --- Comment #7 from Jeevitha --- (In reply to Jeevitha from comment #5) > jeevitha@ltcden2-lp1 nb_gcc_106438]$ cat t.c > #include > > typedef _Float128 GFC_REAL_17; > > GFC_REAL_17 a; > GFC_REAL_17 b; > int main() { > GFC_REAL_17 sum = a

[Bug target/109329] rs6000: New testcases {mul,div}ic3* should run on systems without QP

2024-08-14 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109329 --- Comment #1 from Jeevitha --- This test case requires a Power7 or above due to the ieeelongdouble ABI. The test case includes "ppc_float128_sw", but this is not helpful. We can use the target check "ppc_ieee128_ok" to verify IEEE support.

[Bug rtl-optimization/96865] ICE in hash_rtx_cb, at cse.c:2548

2024-04-17 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96865 Jeevitha changed: What|Removed |Added CC||jeevitha at gcc dot gnu.org --- Comment #1 fr

[Bug target/101345] wrong code at -O1 with vector modulo

2024-05-01 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101345 --- Comment #3 from Jeevitha --- > Jeevitha, can you please do a git bisect from the two commits above to > identify the commit that fixes this for posterity sake? Thanks. The commit that resolved the incorrect code was ad5f8ac1d2f2dc92d43663

[Bug target/113950] PowerPC, ICE with -O1 or higher compiling __builtin_vsx_splat_2di test case

2024-05-16 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113950 --- Comment #7 from Jeevitha --- In GCC 11, we encountered a different issue that didn't result in an ICE. The following is the error message in GCC 11: error: too few arguments to function '__builtin_vsx_splat_2di' 11 | vsll_result = __

[Bug target/113950] PowerPC, ICE with -O1 or higher compiling __builtin_vsx_splat_2di test case

2024-05-16 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113950 Jeevitha changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libgcc/115242] New: libgcc unwinder does not handle vector registers, even if the target machine supports them.

2024-05-27 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115242 Bug ID: 115242 Summary: libgcc unwinder does not handle vector registers, even if the target machine supports them. Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug libgcc/115242] libgcc unwinder does not handle vector registers, even if the target machine supports them.

2024-05-27 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115242 --- Comment #1 from Jeevitha --- I am looking into this.

[Bug bootstrap/111601] [14 Regression] bootstrap fails in stagestrain in libcody on x86_64-linux-gnu and powerpc64le-linux-gnu

2023-11-16 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111601 Jeevitha changed: What|Removed |Added CC||jeevitha at gcc dot gnu.org --- Comment #8 f

[Bug bootstrap/111601] [14 Regression] profilebootstrap fails in stagestrain in libcody on x86_64-linux-gnu and powerpc64le-linux-gnu

2023-11-30 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111601 --- Comment #27 from Jeevitha --- Jakub's patch fixed the issue on powerpc64le-linux-gnu

[Bug target/110606] ICE output_operand: '%&' used without any local dynamic TLS references on powerpc64le-linux-gnu

2023-12-04 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110606 --- Comment #6 from Jeevitha --- The ICE is happenning on the following insn at final_scan, (insn 80 146 111 (set (reg:DI 28 28 [145]) (high:DI (unspec:DI [ (reg:DI 2 2) ] UNSPEC_TLSLD))) "test.ii":28

[Bug target/110606] ICE output_operand: '%&' used without any local dynamic TLS references on powerpc64le-linux-gnu

2023-12-05 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110606 --- Comment #7 from Jeevitha --- The following insns are dead at sched2, but not removed until pass_final, If these instruction are removed there will be no ICE. (insn 80 110 111 3 (set (reg:DI 28 28 [145]) (high:DI (unspec:DI [

[Bug target/110606] ICE output_operand: '%&' used without any local dynamic TLS references on powerpc64le-linux-gnu

2023-12-05 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110606 --- Comment #9 from Jeevitha --- (In reply to Segher Boessenkool from comment #8) > What does "dead at sched2" mean? Are they dead when sched2 starts, or made > dead > by it? Well it must be the former; what pass does make it dead, then? > sp

[Bug target/110606] ICE output_operand: '%&' used without any local dynamic TLS references on powerpc64le-linux-gnu

2023-12-10 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110606 --- Comment #10 from Jeevitha --- The following instructions [in basic block 4] were removed in sched2 DCE, which makes r3 unused [populated in call_insn 26], but they were not deleted in this pass itself: (insn 28 26 29 4 (set (reg:DI 9 9 [132

[Bug target/110040] New: rs6000 port emits dead mfvsrd instruction for simple test case

2023-05-30 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110040 Bug ID: 110040 Summary: rs6000 port emits dead mfvsrd instruction for simple test case Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug target/110040] rs6000 port emits dead mfvsrd instruction for simple test case

2023-05-30 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110040 Jeevitha changed: What|Removed |Added Target Milestone|--- |14.0 CC|

[Bug target/106907] gcc/config/rs6000/rs6000.cc:23155: strange expression ?

2023-05-30 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106907 Jeevitha changed: What|Removed |Added CC||jeevitha at gcc dot gnu.org --- Comment #4 f

[Bug target/106907] gcc/config/rs6000/rs6000.cc:23155: strange expression ?

2023-07-05 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106907 Jeevitha changed: What|Removed |Added CC||linkw at gcc dot gnu.org --- Comment #8 from

[Bug target/110606] ICE output_operand: '%&' used without any local dynamic TLS references on powerpc64le-linux-gnu

2023-12-13 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110606 --- Comment #11 from Jeevitha --- Regarding the test case provided by Matthias Klose: Within the AllocMemory() routine, the compiler aimed to eliminate the entire if block but faced difficulties in removing references to the variable 'sMemPool'

[Bug target/110040] rs6000 port emits dead mfvsrd instruction for simple test case

2024-07-11 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110040 Jeevitha changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/117207] gcc.target/powerpc/pr103515.c fail starting with r15-4225-g70c3db511ba14f

2024-10-18 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117207 --- Comment #1 from Jeevitha --- In pr103515.c, we have two functions: foo1 and foo2. We have the #pragma GCC optimize("O3,unroll-loops") directive for foo2. In the test suite, the following checks are performed: "The pragma specified for foo2

[Bug c/117207] New: gcc.target/powerpc/pr103515.c fail starting with r15-4225-g70c3db511ba14f

2024-10-18 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117207 Bug ID: 117207 Summary: gcc.target/powerpc/pr103515.c fail starting with r15-4225-g70c3db511ba14f Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: norm

[Bug libstdc++/109889] [13/14/15 Regression] Segfault in __run_exit_handlers since r13-5309-gc3c6c307792026

2024-09-30 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109889 --- Comment #16 from Jeevitha --- Jonathan Wakely, Unable to recreate the issue. Tested on Power9 (RHEL 9.4) with GCC 14.1.0, GCC 13, and the trunk, using glibc 2.34, 2.35, and 2.36. Tested on Power9 (SUSE 15) with the GCC trunk, using glibc 2.

[Bug libgcc/115242] libgcc unwinder does not handle vector registers, even if the target machine supports them.

2024-09-25 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115242 --- Comment #2 from Jeevitha --- Created attachment 59194 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59194&action=edit testcase

[Bug libgcc/115242] libgcc unwinder does not handle vector registers, even if the target machine supports them.

2024-09-25 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115242 --- Comment #3 from Jeevitha --- (In reply to Jeevitha from comment #2) > Created attachment 59194 [details] > testcase To reproduce the issue using following option: g++ -o out standalone_test.c -O1 -mvsx

[Bug tree-optimization/118567] [15 Regression] gcc.target/powerpc/vsx-vectorize-1.c fail starting with r15-6807-g68326d5d1a593d

2025-01-23 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118567 --- Comment #1 from Jeevitha --- The following vectorization testcases are failing, FAIL: gcc.target/powerpc/vsx-vectorize-1.c scan-tree-dump-times vect "Alignment of access forced using versioning" 1 FAIL: gcc.target/powerpc/vsx-vectorize-2.c s

[Bug c/118541] New: Incorrect transformation to xscmpgtdp for Unordered Operations

2025-01-17 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118541 Bug ID: 118541 Summary: Incorrect transformation to xscmpgtdp for Unordered Operations Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug target/118541] Incorrect transformation to xscmpgtdp for Unordered Operations

2025-01-17 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118541 --- Comment #1 from Jeevitha --- This issue arises from a glibc math function. Below is the discussion from the glibc mailing list conversation between Florian and Adhemerval. I saw this when building for POWER10 and it seems a compiler issue t

[Bug target/118541] Incorrect transformation to xscmpgtdp for Unordered Operations

2025-01-18 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118541 --- Comment #3 from Jeevitha --- (In reply to Florian Weimer from comment #2) > This is about these glibc test suite failures, right? > Yes

[Bug c/118567] New: gcc.target/powerpc/vsx-vectorize-1.c fail starting with r15-6807-g68326d5d1a593d

2025-01-20 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118567 Bug ID: 118567 Summary: gcc.target/powerpc/vsx-vectorize-1.c fail starting with r15-6807-g68326d5d1a593d Product: gcc Version: 15.0 Status: UNCONFIRMED Severit

[Bug testsuite/119382] [15 Regression] gcc.target/powerpc/vsx-builtin-7.c fail starting with r15-7961-gdc47161c1f32c3

2025-03-19 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119382 --- Comment #4 from Jeevitha --- (In reply to Andrew Pinski from comment #2) > Oh this is just a testsuite issue. > > > `-fno-ipa-icf` is needed as now insert_di_0_v2 and insert_di_0 can figure > out are the same function so insert_di_0_v2 bec

[Bug c/119382] New: gcc.target/powerpc/vsx-builtin-7.c fail starting with r15-7961-gdc47161c1f32c3

2025-03-19 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119382 Bug ID: 119382 Summary: gcc.target/powerpc/vsx-builtin-7.c fail starting with r15-7961-gdc47161c1f32c3 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity:

[Bug target/119234] openblas miscompiled with -mcpu=power8

2025-04-16 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119234 Jeevitha changed: What|Removed |Added CC||jeevitha at gcc dot gnu.org --- Comment #5 f

[Bug testsuite/119862] [16 Regression] gcc.dg/pr119160.c FAILs

2025-04-22 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119862 Jeevitha changed: What|Removed |Added CC||jeevitha at gcc dot gnu.org --- Comment #2 f

[Bug c/119909] gcc.dg/torture/pr119131-1.c fails since r15-7974-g0bbdffc5d4f723

2025-04-23 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119909 --- Comment #1 from Jeevitha --- The test case failed as shown below: FAIL: gcc.dg/torture/pr119131-1.c -O0 (test for excess errors) FAIL: gcc.dg/torture/pr119131-1.c -O1 (test for excess errors) FAIL: gcc.dg/torture/pr119131-1.c -O2 (

[Bug c/119909] gcc.dg/torture/pr119131-1.c fails since r15-7974-g0bbdffc5d4f723

2025-04-23 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119909 --- Comment #4 from Jeevitha --- Created attachment 61178 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61178&action=edit pr119131-1.c_test_log

[Bug c/119908] New: gcc.dg/torture/pr119131-1.c fails since r15-7974-g0bbdffc5d4f723

2025-04-23 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119908 Bug ID: 119908 Summary: gcc.dg/torture/pr119131-1.c fails since r15-7974-g0bbdffc5d4f723 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug c/119909] New: gcc.dg/torture/pr119131-1.c fails since r15-7974-g0bbdffc5d4f723

2025-04-23 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119909 Bug ID: 119909 Summary: gcc.dg/torture/pr119131-1.c fails since r15-7974-g0bbdffc5d4f723 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug testsuite/119382] [15 Regression] gcc.target/powerpc/vsx-builtin-7.c fail starting with r15-7961-gdc47161c1f32c3

2025-04-23 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119382 Jeevitha changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED

[Bug tree-optimization/120598] Compiler is unable to vectorise scalar code

2025-06-19 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120598 --- Comment #6 from Jeevitha --- The following dot_product function gets vectorized with the latest GCC trunk and gcc 15.1.0: #include #include extern float dot_product(const int16_t *v1, const int16_t *v2, size_t len); float dot_product(cons

[Bug testsuite/119382] [15 Regression] gcc.target/powerpc/vsx-builtin-7.c fail starting with r15-7961-gdc47161c1f32c3

2025-07-24 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119382 --- Comment #10 from Jeevitha --- Right now, I have fixed this in trunk and plan to backport it to GCC 15. It seems that patch dc47161c1f32c3 has been backported to the GCC 14 and 13 branches. Can I backport the corresponding testcase fix also

[Bug testsuite/119382] [15 Regression] gcc.target/powerpc/vsx-builtin-7.c fail starting with r15-7961-gdc47161c1f32c3

2025-07-31 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119382 --- Comment #16 from Jeevitha --- Backported to all affected branches.

[Bug target/118480] Power9 target generates poor code for vector char splat immediate.

2025-07-31 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118480 --- Comment #7 from Jeevitha --- Now, in the following case, we run into issues whenever we use a splat constant with vec_slo or vec_sll: vui128_t test_slqi_char_15_V1 (vui128_t vra) { vui8_t result; vui8_t tmp = vec_splats((unsigned char)1

[Bug target/118480] Power9 target generates poor code for vector char splat immediate.

2025-07-31 Thread jeevitha at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118480 --- Comment #6 from Jeevitha --- For the following case: vui8_t test_splat7_char_18 () { return vec_splats((unsigned char)18); } Assembly output: test_splat7_char_18: xxspltib 34,9 vaddubm 2,2,2 blr The compiler generates xxsplti