[Bug middle-end/106833] Handle OPAQUE_TYPE in gimple_canonical_types_compatible_p

2022-09-05 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106833 --- Comment #8 from Kewen Lin --- Created attachment 53542 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53542=edit Specially handle opaque type in verify_type (In reply to Segher Boessenkool from comment #7) > (In reply to

[Bug middle-end/106833] Handle OPAQUE_TYPE in gimple_canonical_types_compatible_p

2022-09-05 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106833 --- Comment #5 from Kewen Lin --- > > I'm quoting tree.def, emphasis mine: > > > > /* This is for types that will use MODE_OPAQUE in the back end. They are > > meant > >to be able to go in a register of some sort but are _EXPLICITLY NOT

[Bug middle-end/106833] Handle OPAQUE_TYPE in gimple_canonical_types_compatible_p

2022-09-05 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106833 --- Comment #4 from Kewen Lin --- (In reply to Richard Biener from comment #2) > (In reply to Kewen Lin from comment #1) > > IMHO this is an omission when we were adding supports for opaque type, const > > __vector_quad and __vector_quad should

[Bug middle-end/106833] Handle OPAQUE_TYPE in gimple_canonical_types_compatible_p

2022-09-05 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106833 Kewen Lin changed: What|Removed |Added Keywords||ice-checking CC|

[Bug middle-end/106833] New: Handle OPAQUE_TYPE in gimple_canonical_types_compatible_p

2022-09-05 Thread linkw at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: linkw at gcc dot gnu.org Target Milestone: --- This is from one encountered ICE when using const type: https://gcc.gnu.org/pipermail/gcc-patches/2022-August/600751.html As the above

[Bug testsuite/106682] Powerpc test gcc.target/powerpc/pr86731-fwrapv-longlong.c fails on power8, passes on power9/power10

2022-09-01 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106682 Kewen Lin changed: What|Removed |Added Component|target |testsuite Resolution|---

[Bug target/106736] [13 Regression] ICE in gen_movxo, at config/rs6000/mma.md:333

2022-08-30 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106736 Kewen Lin changed: What|Removed |Added Attachment #53513|0 |1 is obsolete|

[Bug testsuite/106680] Test gcc.target/powerpc/bswap64-4.c fails on 32-bit BE

2022-08-29 Thread linkw at gcc dot gnu.org via Gcc-bugs
|1 Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gnu.org Last reconfirmed||2022-08-29 --- Comment #2 from Kewen Lin --- Confirmed, I can reproduce it with cfarm machine gcc110, the issue is exactly like what its comment

[Bug target/106682] Powerpc test gcc.target/powerpc/pr86731-fwrapv-longlong.c fails on power8, passes on power9/power10

2022-08-29 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106682 Kewen Lin changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gnu.org

[Bug target/106736] [13 Regression] ICE in gen_movxo, at config/rs6000/mma.md:333

2022-08-27 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106736 --- Comment #7 from Kewen Lin --- (In reply to Peter Bergner from comment #5) > (In reply to Kewen Lin from comment #4) > > Thanks for the comments! One patch guarding these types is attached, it can > > fix the ICE. > > That won't work,

[Bug target/106736] [13 Regression] ICE in gen_movxo, at config/rs6000/mma.md:333

2022-08-26 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106736 Kewen Lin changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gnu.org

[Bug target/106736] [13 Regression] ICE in gen_movxo, at config/rs6000/mma.md:333

2022-08-25 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106736 Kewen Lin changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/99888] Add powerpc ELFv2 support for -fpatchable-function-entry*

2022-08-24 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99888 --- Comment #11 from Kewen Lin --- Oops, the reference links in #c10 are: [1] https://gcc.gnu.org/pipermail/gcc-patches/2016-September/458210.html [2] https://gcc.gnu.org/pipermail/gcc-patches/2016-September/458287.html [3]

[Bug target/99888] Add powerpc ELFv2 support for -fpatchable-function-entry*

2022-08-24 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99888 --- Comment #10 from Kewen Lin --- By searching the history of this feature, I found its initial versions only proposed to place nops after the function entry, such as: v2[1], then it's requested to be more generic to handle some "exploited

[Bug tree-optimization/106322] [12 Regression] tree-vectorize: Wrong code at O2 level (-fno-tree-vectorize is working) since r12-2404-ga1d27560770818c5

2022-08-23 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106322 --- Comment #49 from Kewen Lin --- Hi Richi, One thing I'm not sure about is that if we want to backport this to gcc-11 and gcc-10? Although the failure got exposed by .MULH pattern recog which is only in gcc-12, IMHO the underlying issue

[Bug target/103353] Indefinite recursion when compiling -mmma requiring testcase w/ -maltivec

2022-08-23 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103353 Kewen Lin changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug testsuite/106516] New test case gcc.dg/pr104992.c fails on power 10

2022-08-23 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106516 --- Comment #7 from Kewen Lin --- (In reply to Peter Bergner from comment #6) > (In reply to Kewen Lin from comment #5) > > Created attachment 53492 [details] > > Adjust pr104992.c with vect_int_mod > > > > > So it sounds like we want a

[Bug testsuite/106516] New test case gcc.dg/pr104992.c fails on power 10

2022-08-22 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106516 Kewen Lin changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gnu.org

[Bug testsuite/106680] Test gcc.target/powerpc/bswap64-4.c fails on 32-bit BE

2022-08-18 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106680 Kewen Lin changed: What|Removed |Added CC||linkw at gcc dot gnu.org --- Comment #1

[Bug testsuite/106516] New test case gcc.dg/pr104992.c fails on power 10

2022-08-18 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106516 Kewen Lin changed: What|Removed |Added CC||meissner at gcc dot gnu.org --- Comment #3

[Bug testsuite/106681] Powerpc test gcc.dg/pr104992.c fails on power10

2022-08-18 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106681 Kewen Lin changed: What|Removed |Added CC||linkw at gcc dot gnu.org

[Bug testsuite/106345] Some ppc64le tests fail with -mcpu=power9 -mtune=power9

2022-08-18 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106345 --- Comment #9 from Kewen Lin --- (In reply to Michael Meissner from comment #8) > Note, the gcc.target/powerpc/pr92398.p9-.c test fails when the compiler is > configured for either --with-cpu=power9 or --with-cpu=power10. No > --with-tune=

[Bug target/99889] Add powerpc ELFv1 support for -fpatchable-function-entry* with "o" sections

2022-08-17 Thread linkw at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |linkw at gcc dot gnu.org --- Comment #2 from Kewen Lin --- By checking the related materials and discussions, I think the original issue does still exist even if the recent trunk makes the linking error gone because of comdat flag being introduced onto

[Bug tree-optimization/106322] [12/13 Regression] tree-vectorize: Wrong code at O2 level (-fno-tree-vectorize is working) since r12-2404-ga1d27560770818c5

2022-08-15 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106322 Kewen Lin changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #45 from Kewen Lin

[Bug target/99889] Add powerpc ELFv1 support for -fpatchable-function-entry* with "o" sections

2022-08-12 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99889 Kewen Lin changed: What|Removed |Added CC||linkw at gcc dot gnu.org Ever confirmed

[Bug target/99888] Add powerpc ELFv2 support for -fpatchable-function-entry*

2022-08-11 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99888 --- Comment #6 from Kewen Lin --- (In reply to Fangrui Song from comment #5) > * There is a restriction on the number of instructions between the function > label and the .localentry directive. > * For -fpatchable-function-entry=N[,M], M nops

[Bug tree-optimization/106322] [12/13 Regression] tree-vectorize: Wrong code at O2 level (-fno-tree-vectorize is working) since r12-2404-ga1d27560770818c5

2022-08-10 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106322 --- Comment #44 from Kewen Lin --- (In reply to Richard Biener from comment #43) > (In reply to Richard Biener from comment #42) > > I think this goes wrong in vectorizable_operation which does > > > > if (using_emulated_vectors_p > >

[Bug tree-optimization/106322] [12/13 Regression] tree-vectorize: Wrong code at O2 level (-fno-tree-vectorize is working) since r12-2404-ga1d27560770818c5

2022-08-10 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106322 --- Comment #41 from Kewen Lin --- (In reply to Kewen Lin from comment #40) > > >diff --git a/gcc/internal-fn.cc b/gcc/internal-fn.cc > > >index d666f67..7d8b4ac2200 100644 > > >--- a/gcc/internal-fn.cc > > >+++ b/gcc/internal-fn.cc > > >@@

[Bug tree-optimization/106322] [12/13 Regression] tree-vectorize: Wrong code at O2 level (-fno-tree-vectorize is working) since r12-2404-ga1d27560770818c5

2022-08-10 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106322 --- Comment #40 from Kewen Lin --- > >diff --git a/gcc/internal-fn.cc b/gcc/internal-fn.cc > >index d666f67..7d8b4ac2200 100644 > >--- a/gcc/internal-fn.cc > >+++ b/gcc/internal-fn.cc > >@@ -3750,7 +3750,12 @@ static bool > >

[Bug tree-optimization/106322] [12/13 Regression] tree-vectorize: Wrong code at O2 level (-fno-tree-vectorize is working) since r12-2404-ga1d27560770818c5

2022-08-09 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106322 --- Comment #38 from Kewen Lin --- Created attachment 53428 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53428=edit untested patch A untested patch which can make it pass.

[Bug tree-optimization/106322] [12/13 Regression] tree-vectorize: Wrong code at O2 level (-fno-tree-vectorize is working) since r12-2404-ga1d27560770818c5

2022-08-09 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106322 --- Comment #37 from Kewen Lin --- (In reply to Andrew Pinski from comment #36) > You might need to do -O2 -fPIE -pie to reproduce the issue as debian is > configured with --enable-default-pie Thanks for the hint! I can reproduce this but it

[Bug tree-optimization/106322] [12/13 Regression] tree-vectorize: Wrong code at O2 level (-fno-tree-vectorize is working) since r12-2404-ga1d27560770818c5

2022-08-09 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106322 --- Comment #32 from Kewen Lin --- (In reply to Mathieu Malaterre from comment #30) > (In reply to Martin Liška from comment #29) > > (In reply to Kewen Lin from comment #28) > > > Sorry for the breakage, I'll have a look tomorrow. > > > > > >

[Bug tree-optimization/106322] [12/13 Regression] tree-vectorize: Wrong code at O2 level (-fno-tree-vectorize is working) since r12-2404-ga1d27560770818c5

2022-08-09 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106322 Kewen Lin changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gnu.org

[Bug target/106550] [rs6000] sub-optimal 64bit constant generation for P10

2022-08-07 Thread linkw at gcc dot gnu.org via Gcc-bugs
||linkw at gcc dot gnu.org Summary|[rs6000] sub-optimal|[rs6000] sub-optimal 64bit |constant generation |constant generation for P10 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW

[Bug target/99888] Add powerpc ELFv2 support for -fpatchable-function-entry*

2022-08-04 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99888 --- Comment #4 from Kewen Lin --- (In reply to Segher Boessenkool from comment #3) > Your second option isn't correct: all these nops should be consecutive. Your > option 1 is fine :-) Good point! It's lucky that I chose option 1. :)

[Bug testsuite/106516] New test case gcc.dg/pr104992.c fails on power 10

2022-08-04 Thread linkw at gcc dot gnu.org via Gcc-bugs
||linkw at gcc dot gnu.org Last reconfirmed||2022-08-04 Status|UNCONFIRMED |NEW --- Comment #2 from Kewen Lin --- Confirmed, this is a test issue, power10 and up specific. The difference comes from the function thud, it aims

[Bug target/99888] Add powerpc ELFv2 support for -fpatchable-function-entry*

2022-08-03 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99888 --- Comment #2 from Kewen Lin --- Created attachment 53405 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53405=edit untested patch With the attached patch, for -fpatchable-function-entry=5,2 it gets: foo: .LFB0: .cfi_startproc

[Bug target/106069] [12/13 Regression] wrong code with -O -fno-tree-forwprop -maltivec on ppc64le

2022-08-03 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106069 --- Comment #23 from Kewen Lin --- > Ideally we would avoid semantic difference of RTL depending on the target. > If that's not avoidable there should be target macros/hooks that specify > the desired semantics. Not sure, IMHO it seems it

[Bug target/106069] [12/13 Regression] wrong code with -O -fno-tree-forwprop -maltivec on ppc64le

2022-08-03 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106069 --- Comment #21 from Kewen Lin --- I didn't look into this in details, but something in the culprit commit caught my eyes, take altivec_vmrghh as example: Before the patch, the pattern [(set (match_operand:V8HI 0 "register_operand" "=v")

[Bug rtl-optimization/104771] '-fcompare-debug' failure w/ -mno-vsx -O1 -frename-registers

2022-08-02 Thread linkw at gcc dot gnu.org via Gcc-bugs
|--- |WORKSFORME CC||linkw at gcc dot gnu.org --- Comment #3 from Kewen Lin --- Marked resolved as Arseny's latest comment.

[Bug target/99888] Add powerpc ELFv2 support for -fpatchable-function-entry*

2022-08-02 Thread linkw at gcc dot gnu.org via Gcc-bugs
|1 CC||linkw at gcc dot gnu.org Last reconfirmed||2022-08-03 Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gnu.org --- Comment #1 from Kewen Lin --- cat test.c extern int a; int

[Bug target/106091] [11/12/13 Regression] during RTL pass: swaps ICE: verify_flow_info failed: missing REG_EH_REGION note at the end of bb 69 with -fnon-call-exceptions

2022-08-01 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106091 Kewen Lin changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug rtl-optimization/106419] ICE in lra_assign, at lra-assigns.cc:1649

2022-07-26 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106419 --- Comment #9 from Kewen Lin --- (In reply to Segher Boessenkool from comment #8) > So for which pseudo and which hard register did this ICE, and what did the > code look like at that point? The culprit pseudo is r133, the values of those

[Bug testsuite/105427] [12/13 regression] gcc.target/powerpc/pr92398.p9-.c fails after r12-8265-gad56a60f58c1ed

2022-07-26 Thread linkw at gcc dot gnu.org via Gcc-bugs
|--- |DUPLICATE CC||linkw at gcc dot gnu.org --- Comment #4 from Kewen Lin --- See comment 1 of PR106345, it's due to incorrect effective target checking. *** This bug has been marked as a duplicate of bug 106345 ***

[Bug testsuite/106345] Some ppc64le tests fail with -mcpu=power9 -mtune=power9

2022-07-26 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106345 Kewen Lin changed: What|Removed |Added CC||seurer at gcc dot gnu.org --- Comment #4

[Bug rtl-optimization/106419] ICE in lra_assign, at lra-assigns.cc:1649

2022-07-26 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106419 Kewen Lin changed: What|Removed |Added CC||bergner at gcc dot gnu.org,

[Bug rtl-optimization/106419] ICE in lra_assign, at lra-assigns.cc:1649

2022-07-26 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106419 Kewen Lin changed: What|Removed |Added Status|WAITING |NEW --- Comment #5 from Kewen Lin ---

[Bug target/106415] loop-ivopts prevents correct usage of dbra with 16-bit loop counters on m68k

2022-07-25 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106415 Kewen Lin changed: What|Removed |Added CC||linkw at gcc dot gnu.org --- Comment #5

[Bug rtl-optimization/106419] ICE in lra_assign, at lra-assigns.cc:1649

2022-07-24 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106419 --- Comment #3 from Kewen Lin --- (In reply to Arseny Solokha from comment #2) > I don't set --enable-default-pie anymore when configuring gcc, so here's the > difference. Therefore, it stops ICEing if I add -fPIE or -fPIC when > compiling the

[Bug rtl-optimization/106419] ICE in lra_assign, at lra-assigns.cc:1649

2022-07-24 Thread linkw at gcc dot gnu.org via Gcc-bugs
|1 Status|UNCONFIRMED |WAITING CC||linkw at gcc dot gnu.org --- Comment #1 from Kewen Lin --- I wasn't able to reproduce this with cross build compiler w/i either latest trunk or the mentioned snapshot. I

[Bug middle-end/106010] Miss vectorization for complex type copy.

2022-07-21 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106010 Kewen Lin changed: What|Removed |Added CC||seurer at gcc dot gnu.org --- Comment #8

[Bug testsuite/106396] [13 regression] gcc.dg/pr23911.c fails after r13-1762-gf9d4c3b45c5ed5

2022-07-21 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106396 Kewen Lin changed: What|Removed |Added CC||linkw at gcc dot gnu.org

[Bug tree-optimization/106378] Miss to handle ifn .LEN_STORE in DSE

2022-07-21 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106378 --- Comment #2 from Kewen Lin --- (In reply to Richard Biener from comment #1) > Created attachment 53330 [details] > patch > > I am testing this on x86_64-linux. I confirmed this attachment can make two case above to get expected optimized

[Bug tree-optimization/106365] Miss to handle ifn .LEN_STORE in FRE

2022-07-21 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106365 --- Comment #14 from Kewen Lin --- > I think that DSE doesn't handle the store IFNs yet - maybe adding handling > to initialize_ao_ref_for_dse would be enough - but I think it cannot yet > handle a "conservative" start (for .MASK_STORES), but

[Bug tree-optimization/106378] New: Miss to handle ifn .LEN_STORE in DSE

2022-07-21 Thread linkw at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: linkw at gcc dot gnu.org CC: rguenth at gcc dot gnu.org, rsandifo at gcc dot gnu.org, segher at gcc dot gnu.org Depends on: 106365

[Bug tree-optimization/106365] Miss to handle ifn .LEN_STORE in FRE

2022-07-21 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106365 --- Comment #12 from Kewen Lin --- (In reply to Richard Biener from comment #9) > Created attachment 53328 [details] > patch > Thanks! Sorry that I didn't see this attachment when posting the above comment. > + MEM [(int *) + 16B] = { 4,

[Bug tree-optimization/106365] Miss to handle ifn .LEN_STORE in FRE

2022-07-21 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106365 --- Comment #10 from Kewen Lin --- (In reply to Richard Biener from comment #7) > Created attachment 53323 [details] > prototype > > I'm testing this - for .LEN_STORE you mainly have to compute pd.rhs_off, > pd.offset, pd.size and do a single

[Bug tree-optimization/106365] Miss to handle ifn .LEN_STORE in FRE

2022-07-20 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106365 --- Comment #6 from Kewen Lin --- (In reply to Richard Biener from comment #5) > I will try to add handling for .MASK_STORE, hopefully that will be good > enough to massage the code for .LEN_STORE (which IIRC is "easier" since it's > a

[Bug tree-optimization/106365] Miss to handle ifn .LEN_STORE in FRE

2022-07-20 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106365 --- Comment #3 from Kewen Lin --- (In reply to Richard Biener from comment #2) > What's the semantic of .LEN_STORE? I can't find documentation for this :/ > There's docs for the len_store optab but how 'mask' and 'bias' relate to its >

[Bug tree-optimization/106365] Miss to handle ifn .LEN_STORE in FRE

2022-07-20 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106365 Kewen Lin changed: What|Removed |Added CC||rguenth at gcc dot gnu.org,

[Bug tree-optimization/106365] New: Miss to handle ifn .LEN_STORE in FRE

2022-07-19 Thread linkw at gcc dot gnu.org via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: linkw at gcc dot gnu.org Target Milestone: --- In regression testing for the patch to add unroll factor suggestion to vectorizer for port rs6000, one failure got exposed on Power10 (with partial vector in length

[Bug testsuite/106345] Some ppc64le tests fail with -mcpu=power9 -mtune=power9

2022-07-19 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106345 --- Comment #2 from Kewen Lin --- Two more failures related to required tuning setting: PASS->FAIL: gcc.target/powerpc/compress-float-ppc.c scan-assembler lfs PASS->FAIL: gcc.target/powerpc/compress-float-ppc-pic.c scan-assembler lfs

[Bug testsuite/106345] Some ppc64le tests fail with -mcpu=power9 -mtune=power9

2022-07-19 Thread linkw at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |linkw at gcc dot gnu.org Ever confirmed|0 |1 CC||linkw at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Kewen Lin --- Thanks for reporting

[Bug target/106091] [11/12/13 Regression] during RTL pass: swaps ICE: verify_flow_info failed: missing REG_EH_REGION note at the end of bb 69 with -fnon-call-exceptions

2022-07-06 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106091 --- Comment #3 from Kewen Lin --- Created attachment 53268 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53268=edit tested patch

[Bug target/106091] [11/12/13 Regression] during RTL pass: swaps ICE: verify_flow_info failed: missing REG_EH_REGION note at the end of bb 69 with -fnon-call-exceptions

2022-06-28 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106091 Kewen Lin changed: What|Removed |Added CC||linkw at gcc dot gnu.org

[Bug tree-optimization/105940] suggested_unroll_factor applying place looks wrong

2022-06-22 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105940 Kewen Lin changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/105940] suggested_unroll_factor applying place looks wrong

2022-06-17 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105940 --- Comment #8 from Kewen Lin --- (In reply to Kewen Lin from comment #6) > (In reply to Kewen Lin from comment #4) > > (In reply to Richard Biener from comment #2) > > > (In reply to Kewen Lin from comment #1) > > > > Created attachment 53126

[Bug tree-optimization/105940] suggested_unroll_factor applying place looks wrong

2022-06-16 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105940 Kewen Lin changed: What|Removed |Added Attachment #53126|0 |1 is obsolete|

[Bug tree-optimization/105940] suggested_unroll_factor applying place looks wrong

2022-06-16 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105940 --- Comment #6 from Kewen Lin --- (In reply to Kewen Lin from comment #4) > (In reply to Richard Biener from comment #2) > > (In reply to Kewen Lin from comment #1) > > > Created attachment 53126 [details] > > > move_applying > > > > LGTM

[Bug tree-optimization/105940] suggested_unroll_factor applying place looks wrong

2022-06-14 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105940 --- Comment #4 from Kewen Lin --- (In reply to Richard Biener from comment #2) > (In reply to Kewen Lin from comment #1) > > Created attachment 53126 [details] > > move_applying > > LGTM (maybe the suggested unroll factor should be only

[Bug tree-optimization/105940] suggested_unroll_factor applying place looks wrong

2022-06-13 Thread linkw at gcc dot gnu.org via Gcc-bugs
|1 Last reconfirmed||2022-06-13 Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gnu.org CC||rguenth at gcc dot gnu.org, ||rsandifo at gcc

[Bug tree-optimization/105940] suggested_unroll_factor applying place looks wrong

2022-06-13 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105940 --- Comment #1 from Kewen Lin --- Created attachment 53126 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53126=edit move_applying

[Bug tree-optimization/105940] New: suggested_unroll_factor applying place looks wrong

2022-06-12 Thread linkw at gcc dot gnu.org via Gcc-bugs
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: linkw at gcc dot gnu.org Target Milestone: --- I tried to evaluate if we can get some performance gains by setting suggested_unroll_factor on Power, but met one ICE coming from the line

[Bug target/105818] ICE: 'global_options' are modified in local context

2022-06-09 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105818 --- Comment #3 from Kewen Lin --- The different flag bit is OPTION_MASK_SAVE_TOC_INDIRECT. if ((rs6000_isa_flags_explicit & OPTION_MASK_SAVE_TOC_INDIRECT) == 0 && flag_shrink_wrap_separate && optimize_function_for_speed_p (cfun))

[Bug target/105818] ICE: 'global_options' are modified in local context

2022-06-09 Thread linkw at gcc dot gnu.org via Gcc-bugs
|1 Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED CC||linkw at gcc dot gnu.org Target|powerpc-e300c3-linux-gnu|powerpc*-linux-gnu

[Bug target/103320] 12 Regression] Spec 2017 benchmark roms_r fails on PowerPC for -Ofast

2022-06-09 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103320 Kewen Lin changed: What|Removed |Added CC||linkw at gcc dot gnu.org --- Comment #2

[Bug rtl-optimization/105459] [12/13 Regression] ICE: Segmentation fault (in record_operand_costs) since r12-3721-g63c6446f77b9001d

2022-06-01 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105459 --- Comment #12 from Kewen Lin --- Created attachment 53068 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53068=edit tested patch Once the optimization node of the caller has changed, we need to rebuild the target node in the context of

[Bug rtl-optimization/105459] [12/13 Regression] ICE: Segmentation fault (in record_operand_costs) since r12-3721-g63c6446f77b9001d

2022-06-01 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105459 --- Comment #11 from Kewen Lin --- (In reply to Kewen Lin from comment #9) > inline_call will force reload global optimization. > > /* Reload global optimization flags. */ > if (reload_optimization_node && DECL_STRUCT_FUNCTION (to->decl)

[Bug rtl-optimization/105744] [11/12/13 Regression] wrong code with -fexpensive-optimizations -flive-range-shrinkage on powerpc64le-unknown-linux-gnu

2022-05-27 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105744 Kewen Lin changed: What|Removed |Added Resolution|--- |INVALID Status|NEW

[Bug rtl-optimization/105744] [11/12/13 Regression] wrong code with -fexpensive-optimizations -flive-range-shrinkage on powerpc64le-unknown-linux-gnu

2022-05-27 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105744 Kewen Lin changed: What|Removed |Added CC||tuliom at ascii dot art.br --- Comment #3

[Bug rtl-optimization/105744] [11/12/13 Regression] wrong code with -fexpensive-optimizations -flive-range-shrinkage on powerpc64le-unknown-linux-gnu

2022-05-27 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105744 --- Comment #2 from Kewen Lin --- This exposes one bug in glibc strncpy power9 implementation In https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=sysdeps/powerpc/powerpc64/le/power9/strncpy.S lbz r0,0(r4) stb

[Bug rtl-optimization/105744] [11/12/13 Regression] wrong code with -fexpensive-optimizations -flive-range-shrinkage on powerpc64le-unknown-linux-gnu

2022-05-27 Thread linkw at gcc dot gnu.org via Gcc-bugs
||linkw at gcc dot gnu.org Ever confirmed|0 |1 Last reconfirmed||2022-05-27 --- Comment #1 from Kewen Lin --- Can be reproduced without cross build compiler.

[Bug rtl-optimization/105459] [12/13 Regression] ICE: Segmentation fault (in record_operand_costs) since r12-3721-g63c6446f77b9001d

2022-05-25 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105459 --- Comment #10 from Kewen Lin --- (In reply to Kewen Lin from comment #8) > (In reply to Kewen Lin from comment #7) > > I wonder if it's fine to move init_function_start downward after > > execute_all_ipa_transforms call? the testing is

[Bug target/104482] ICE: Segmentation fault (in rs6000_builtin_type_compatible), or ICE: tree check: expected class 'type', have 'reference' (attr_addr_expr) in cp_type_quals, at cp/typeck.cc:10955

2022-05-24 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104482 Kewen Lin changed: What|Removed |Added URL|https://gcc.gnu.org/piperma |https://gcc.gnu.org/piperma

[Bug debug/105627] -fcompare-debug failure at -Og for powerpc64le-unknown-linux-gnu

2022-05-24 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105627 Kewen Lin changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug testsuite/105706] [13 regression] gcc.target/powerpc/pr78604.c fails after r13-707-g68e0063397ba82

2022-05-24 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105706 Kewen Lin changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug testsuite/105706] [13 regression] gcc.target/powerpc/pr78604.c fails after r13-707-g68e0063397ba82

2022-05-24 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105706 Kewen Lin changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gnu.org

[Bug testsuite/105706] [13 regression] gcc.target/powerpc/pr78604.c fails after r13-707-g68e0063397ba82

2022-05-23 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105706 Kewen Lin changed: What|Removed |Added CC||linkw at gcc dot gnu.org Last

[Bug rtl-optimization/105459] [12/13 Regression] ICE: Segmentation fault (in record_operand_costs) since r12-3721-g63c6446f77b9001d

2022-05-23 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105459 --- Comment #9 from Kewen Lin --- inline_call will force reload global optimization. /* Reload global optimization flags. */ if (reload_optimization_node && DECL_STRUCT_FUNCTION (to->decl) == cfun) set_cfun (cfun, true); It looks

[Bug rtl-optimization/105459] [12/13 Regression] ICE: Segmentation fault (in record_operand_costs) since r12-3721-g63c6446f77b9001d

2022-05-23 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105459 --- Comment #8 from Kewen Lin --- (In reply to Kewen Lin from comment #7) > I wonder if it's fine to move init_function_start downward after > execute_all_ipa_transforms call? the testing is ongoing. This proposed patch was bootstrapped and

[Bug target/103515] Unexpected OPTION_MASK_SAVE_TOC_INDIRECT of rs6000_isa_flag

2022-05-19 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103515 --- Comment #6 from Kewen Lin --- (In reply to Peter Bergner from comment #5) > (In reply to CVS Commits from comment #4) > > The master branch has been updated by Kewen Lin : > > Kewen, can we mark this as FIXED? Sorry, no. The issue isn't

[Bug debug/105627] -fcompare-debug failure at -Og for powerpc64le-unknown-linux-gnu

2022-05-19 Thread linkw at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |linkw at gcc dot gnu.org --- Comment #2 from Kewen Lin --- Thanks for reporting and triaging. Although loops in function rs6000_analyze_swaps only handles NONDEBUG_INSN_P insns, when doing unionfind_union it's still possible to union with debug insn, as some def reg

[Bug target/105648] .cfi_startproc in wrong position when -fpatchable-function-entry= is enabled on ppc64le

2022-05-19 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105648 Kewen Lin changed: What|Removed |Added CC||linkw at gcc dot gnu.org --- Comment #2

[Bug rtl-optimization/105459] [12/13 Regression] ICE: Segmentation fault (in record_operand_costs) since r12-3721-g63c6446f77b9001d

2022-05-17 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105459 --- Comment #7 from Kewen Lin --- I wonder if it's fine to move init_function_start downward after execute_all_ipa_transforms call? the testing is ongoing. --- a/gcc/cgraphunit.cc +++ b/gcc/cgraphunit.cc @@ -1817,7 +1817,6 @@

[Bug rtl-optimization/105459] [12/13 Regression] ICE: Segmentation fault (in record_operand_costs) since r12-3721-g63c6446f77b9001d

2022-05-17 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105459 Kewen Lin changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #6

[Bug testsuite/105620] [13 regression] g++.dg/tsan/pr88018.C fails after r13-456-geccbd7fcee5bbf

2022-05-16 Thread linkw at gcc dot gnu.org via Gcc-bugs
, ||linkw at gcc dot gnu.org --- Comment #2 from Kewen Lin --- > Would it be correct to move this test from g++.dg/tsan to g++.target/powerpc > ? (Or, do I need to move pr69667.C back to its original location? Or, do I > need to update the path within pr88018

[Bug debug/105586] [11/12/13 Regression] -fcompare-debug failure (length) with -O2 -fno-if-conversion -mtune=power4 -fno-guess-branch-probability

2022-05-15 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105586 Kewen Lin changed: What|Removed |Added CC||jskumari at gcc dot gnu.org,

[Bug target/105485] ICE: Segmentation fault in pcrel-opt.md:get_insn_name()

2022-05-10 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105485 --- Comment #4 from Kewen Lin --- Created attachment 52949 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52949=edit untested patch This attached patch can get it fixed. Will test it further and add one test case.

[Bug target/105485] ICE: Segmentation fault in pcrel-opt.md:get_insn_name()

2022-05-10 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105485 --- Comment #3 from Kewen Lin --- This issue can happen for any bif which supports overloading. for example, same ICE for: typedef __attribute__ ((altivec (vector__))) signed int T; template void __builtin_vec_splats (); T b (T i) { return

[Bug target/105485] ICE: Segmentation fault in pcrel-opt.md:get_insn_name()

2022-05-10 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105485 Kewen Lin changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #2 from Kewen Lin

<    1   2   3   4   5   6   7   8   9   >