[Bug target/110484] Spec2017 541 after adding the '-flto-fomit-frame-pointer' optimization, after optimizing the rnreg, directly replaced other registers with the $r22 register, so that the value of t

2023-08-31 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110484 chenglulu changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug target/111334] [14 regression] ICE is reported during the combine pass optimization

2023-09-09 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111334 --- Comment #16 from chenglulu --- (In reply to Xi Ruoyao from comment #15) > (In reply to chenglulu from comment #13) > > (In reply to Xi Ruoyao from comment #12) > > > (In reply to chenglulu from comment #11) > > > > (In reply to Xi Ruoyao

[Bug c/111334] ICE is reported during the combine pass optimization

2023-09-07 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111334 --- Comment #1 from chenglulu --- $ gcc test.c -o - -S -O1 test.c: 在函数‘add_startpgm’中: test.c:33:1: 编译器内部错误:在 simplify_subreg 中,于 simplify-rtx.cc:7538 33 | } | ^ 0x13506f4 simplify_context::simplify_subreg(machine_mode, rtx_def*,

[Bug c/111334] ICE is reported during the combine pass optimization

2023-09-07 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111334 --- Comment #2 from chenglulu --- This problem occurred after adding the r14-3511 optimization. However, during the debugging process, it was discovered that it was due to the attempt to generate rtx during the combine pass optimization. (set

[Bug c/111334] ICE is reported during the combine pass optimization

2023-09-07 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111334 --- Comment #3 from chenglulu --- This involves the template di3_fake: (define_insn "di3_fake" [(set (match_operand:DI 0 "register_operand" "=r,,") (sign_extend:DI (any_div:SI (match_operand:DI 1 "register_operand" "r,r,0")

[Bug target/111334] [14 regression] ICE is reported during the combine pass optimization

2023-09-08 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111334 --- Comment #7 from chenglulu --- (In reply to Xi Ruoyao from comment #6) > (In reply to Xi Ruoyao from comment #5) > > (In reply to chenglulu from comment #3) > > > This involves the template di3_fake: > > > (define_insn "di3_fake" > > >

[Bug target/111334] [14 regression] ICE is reported during the combine pass optimization

2023-09-08 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111334 --- Comment #8 from chenglulu --- (In reply to Andrew Pinski from comment #4) > (In reply to chenglulu from comment #3) > > This involves the template di3_fake: > > (define_insn "di3_fake" > > [(set (match_operand:DI 0 "register_operand"

[Bug c/111334] New: ICE is reported during the combine pass optimization

2023-09-07 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111334 Bug ID: 111334 Summary: ICE is reported during the combine pass optimization Product: gcc Version: rust/master Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/111334] [14 regression] ICE is reported during the combine pass optimization

2023-09-09 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111334 --- Comment #18 from chenglulu --- (In reply to Xi Ruoyao from comment #17) > I think the proper description should be: > > diff --git a/gcc/config/loongarch/loongarch.md > b/gcc/config/loongarch/loongarch.md > index 75f641b38ee..000d17b0ba6

[Bug target/111334] [14 regression] ICE is reported during the combine pass optimization

2023-09-13 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111334 chenglulu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/111334] [14 regression] ICE is reported during the combine pass optimization

2023-09-08 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111334 --- Comment #11 from chenglulu --- (In reply to Xi Ruoyao from comment #10) > (In reply to Xi Ruoyao from comment #9) > > > (define_insn "di3_fake" > >[(set (match_operand:DI 0 "register_operand" "=r,,") > > - (sign_extend:DI > > -

[Bug target/111334] [14 regression] ICE is reported during the combine pass optimization

2023-09-08 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111334 --- Comment #13 from chenglulu --- (In reply to Xi Ruoyao from comment #12) > (In reply to chenglulu from comment #11) > > (In reply to Xi Ruoyao from comment #10) > > > (In reply to Xi Ruoyao from comment #9) > > > > > > > (define_insn

[Bug target/112330] [14 Regression] LoongArch: LTO bootstrap failure with GAS 2.41

2023-11-01 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112330 --- Comment #7 from chenglulu --- (In reply to Xi Ruoyao from comment #6) > (In reply to chenglulu from comment #5) > > (In reply to Xi Ruoyao from comment #4) > > > (In reply to chenglulu from comment #3) > > > > (In reply to Xi Ruoyao from

[Bug target/112330] [14 Regression] LoongArch: LTO bootstrap failure with GAS 2.41

2023-11-01 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112330 --- Comment #3 from chenglulu --- (In reply to Xi Ruoyao from comment #1) > (In reply to Xi Ruoyao from comment #0) > > > I guess the easiest solution is raising the minimal GAS requirement of > > bootstrapping GCC 14 on LoongArch to 2.42. >

[Bug target/112330] [14 Regression] LoongArch: LTO bootstrap failure with GAS 2.41

2023-11-01 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112330 --- Comment #5 from chenglulu --- (In reply to Xi Ruoyao from comment #4) > (In reply to chenglulu from comment #3) > > (In reply to Xi Ruoyao from comment #1) > > > (In reply to Xi Ruoyao from comment #0) > > > > > > > I guess the easiest

[Bug target/112330] [14 Regression] LoongArch: Bootstrap failure with GAS 2.41

2023-11-02 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112330 --- Comment #14 from chenglulu --- (In reply to Xi Ruoyao from comment #13) > (In reply to chenglulu from comment #12) > > (In reply to Xi Ruoyao from comment #11) > > > I cherry-picked f87cf663af71e5d78c8d647fa48562102f3b0615 for Binutils 2.41

[Bug target/112330] [14 Regression] LoongArch: Bootstrap failure with GAS 2.41

2023-11-02 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112330 --- Comment #10 from chenglulu --- (In reply to Xi Ruoyao from comment #9) > Xuerui informed me that non-LTO bootstrapping is broken too. Well, this has nothing to do with whether to open lto or not, it is caused by binutils inserting "nop"

[Bug target/112330] [14 Regression] LoongArch: Bootstrap failure with GAS 2.41

2023-11-02 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112330 --- Comment #12 from chenglulu --- (In reply to Xi Ruoyao from comment #11) > I cherry-picked f87cf663af71e5d78c8d647fa48562102f3b0615 for Binutils 2.41 > and get some better error message: > > t.s:98064: Error: Reloc overflow > t.s:101127:

[Bug go/112286] Go does not support LoongArch

2023-10-30 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112286 chenglulu changed: What|Removed |Added CC||chenglulu at loongson dot cn --- Comment

[Bug go/112286] Go does not support LoongArch

2023-10-30 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112286 --- Comment #4 from chenglulu --- (In reply to Xi Ruoyao from comment #2) > (In reply to chenglulu from comment #1) > > (In reply to Robin Lee from comment #0) > > > Follow-up from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108682#c2 > > > >

[Bug go/112286] Go does not support LoongArch

2023-10-30 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112286 --- Comment #6 from chenglulu --- (In reply to Xi Ruoyao from comment #5) > (In reply to chenglulu from comment #4) > > (In reply to Xi Ruoyao from comment #2) > > > (In reply to chenglulu from comment #1) > > > > (In reply to Robin Lee from

[Bug target/105514] rv64 qsort gets wrong result when '-O2 -DDEBUG'.

2022-05-11 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105514 chenglulu changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #4 from chenglulu ---

[Bug target/106097] undefined behaviors regarding integer shifts in loongarch_build_integer

2022-06-27 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106097 --- Comment #6 from chenglulu --- Created attachment 53205 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53205=edit 0001-Fix-bug-for-PR16097.patch

[Bug target/106097] undefined behaviors regarding integer shifts in loongarch_build_integer

2022-06-27 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106097 --- Comment #8 from chenglulu --- > You can reuse LU32I_B and LU52I_B instead of hard coding those long > constants :). I have fixed it, thanks!:)

[Bug target/106097] undefined behaviors regarding integer shifts in loongarch_build_integer

2022-06-27 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106097 --- Comment #9 from chenglulu --- Created attachment 53206 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53206=edit use LU52I_B and LU32I_B instead of hard coding those long

[Bug target/106096] [13 regression] ICE building stage 2 libgcc on loongarch64-linux-gnu because stage 2 gcc is miscompiled

2022-06-28 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106096 --- Comment #5 from chenglulu --- Created attachment 53213 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53213=edit Modify the allocation order of caller saved registers.

[Bug target/106097] undefined behaviors regarding integer shifts in loongarch_build_integer

2022-06-28 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106097 --- Comment #11 from chenglulu --- > Otherwise LGTM. As the port maintainer you can push it directly into > master. Normally we should bootstrap and regtest before applying a patch, > but currently the bootstrap is blocked by PR106096 :(.

[Bug target/106096] [13 regression] ICE building stage 2 libgcc on loongarch64-linux-gnu because stage 2 gcc is miscompiled

2022-06-28 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106096 --- Comment #8 from chenglulu --- (In reply to Xi Ruoyao from comment #6) > (In reply to chenglulu from comment #5) > > Created attachment 53213 [details] > > Modify the allocation order of caller saved registers. > > I think we need to

[Bug target/106096] [13 regression] ICE building stage 2 libgcc on loongarch64-linux-gnu because stage 2 gcc is miscompiled

2022-06-28 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106096 --- Comment #10 from chenglulu --- (In reply to Xi Ruoyao from comment #9) > Created attachment 53214 [details] > patch removing r13 from SIBCALL_REGS > > I'm testing this patch now. > > I suggest to apply this for trunk and gcc-12 branch

[Bug target/106097] undefined behaviors regarding integer shifts in loongarch_build_integer

2022-06-26 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106097 --- Comment #1 from chenglulu --- How can I reproduce the problem? Thanks! Lulu Cheng

[Bug c/105514] New: rv64 qsort gets wrong result when '-O2 -DDEBUG'.

2022-05-07 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105514 Bug ID: 105514 Summary: rv64 qsort gets wrong result when '-O2 -DDEBUG'. Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/105514] rv64 qsort gets wrong result when '-O2 -DDEBUG'.

2022-05-08 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105514 --- Comment #2 from chenglulu --- (In reply to Andrew Pinski from comment #1) > Just looking at the code, there seems to be some aliasing violations going > on which is causing the problem. > > Sometimes accessing via unsigned long and others

[Bug target/107713] Wrong implementation atomic_exchange on LoongArch

2022-11-18 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107713 --- Comment #7 from chenglulu --- (In reply to Xi Ruoyao from comment #6) > Fixed for trunk. Should we backport it to gcc-12 branch too? I don't know what the problem is, I always fail when I backport. If it is convenient for you, could you

[Bug target/107713] Wrong implementation atomic_exchange on LoongArch

2022-11-19 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107713 --- Comment #10 from chenglulu --- (In reply to Xi Ruoyao from comment #9) > Fixed for gcc-12 too. Thanks! ^v^

[Bug target/107731] loongarch Operand Modifiers are not documented

2022-11-16 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107731 --- Comment #7 from chenglulu --- (In reply to Andrew Pinski from comment #3) > MIPS nor RISCV does not define a %c either. These two architectures can also fail under the following conditions: void test(void) { asm (".long %c0"

[Bug target/107731] loongarch Operand Modifiers are not documented

2022-11-16 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107731 --- Comment #6 from chenglulu --- (In reply to Andrew Pinski from comment #1) > %c does not mean anything in loongarch. > > The codes are not documented in the documentation for loonarch though but > they currently only documented in

[Bug target/107731] New: error: invalid 'asm': invalid use of '%c'

2022-11-16 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107731 Bug ID: 107731 Summary: error: invalid 'asm': invalid use of '%c' Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/107731] loongarch Operand Modifiers are not documented

2023-01-23 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107731 chenglulu changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug target/107453] [13 Regression] New stdarg tests in r13-3549-g4fe34cdcc80ac2 fail

2022-11-07 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107453 chenglulu changed: What|Removed |Added CC||chenglulu at loongson dot cn --- Comment

[Bug rtl-optimization/109035] meaningless memory store on RISC-V and LoongArch

2023-03-07 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109035 chenglulu changed: What|Removed |Added CC||chenglulu at loongson dot cn --- Comment

[Bug rtl-optimization/109035] meaningless memory store on RISC-V and LoongArch

2023-03-07 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109035 --- Comment #4 from chenglulu --- (In reply to Xi Ruoyao from comment #3) > I don't really understand why we should prefer the memory if there is a > REG_EQUIV note, nor why this does not happen with -fPIE. I didn't understand the optimization

[Bug rtl-optimization/109035] meaningless memory store on RISC-V and LoongArch

2023-03-10 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109035 --- Comment #5 from chenglulu --- On AARCH64: $cat t.c int test(int x) { char buf[128 << 10]; return buf[x]; } $cat t-1.c int test(int x) { char buf[0xfff]; return buf[x]; } The generated assemblies are as

[Bug rtl-optimization/109035] meaningless memory store on RISC-V and LoongArch

2023-03-10 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109035 --- Comment #6 from chenglulu --- I tried changing the code, diff --git a/gcc/lra-eliminations.cc b/gcc/lra-eliminations.cc index 4220639..efaea6922b5 100644 --- a/gcc/lra-eliminations.cc +++ b/gcc/lra-eliminations.cc @@ -914,6 +914,11 @@

[Bug tree-optimization/108357] [13 Regression] Dead Code Elimination Regression at -O2 since r13-4607-g2dc5d6b1e7ec88

2023-04-14 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108357 --- Comment #16 from chenglulu --- (In reply to rguent...@suse.de from comment #15) > On Thu, 13 Apr 2023, xry111 at gcc dot gnu.org wrote: > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108357 > > > > --- Comment #14 from Xi Ruoyao ---

[Bug tree-optimization/108357] [13 Regression] Dead Code Elimination Regression at -O2 since r13-4607-g2dc5d6b1e7ec88

2023-04-14 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108357 --- Comment #19 from chenglulu --- (In reply to Xi Ruoyao from comment #18) > (In reply to Richard Biener from comment #17) > > Isn't this the same issue as seen in another bug, most targets defining > > TARGET_PROMOTE_PROTOTYPES to

[Bug tree-optimization/109192] [13 Regression] timeout with -O3 since r13-5579

2023-03-29 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109192 --- Comment #15 from chenglulu --- (In reply to Andrew Macleod from comment #14) > The upcoming patch for 109274 should resolve this. The problem has been solved. Thanks!

[Bug tree-optimization/109192] [13 Regression] timeout with -O3 since r13-5579

2023-03-28 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109192 --- Comment #13 from chenglulu --- (In reply to CVS Commits from comment #9) > The master branch has been updated by Andrew Macleod : > > https://gcc.gnu.org/g:0963cb5fde158cce986523a90fa9edc51c881f31 > > commit

[Bug tree-optimization/109192] [13 Regression] timeout with -O3 since r13-5579

2023-03-28 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109192 chenglulu changed: What|Removed |Added CC||chenglulu at loongson dot cn --- Comment

[Bug tree-optimization/108357] [13 Regression] Dead Code Elimination Regression at -O2 since r13-4607-g2dc5d6b1e7ec88

2023-04-13 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108357 --- Comment #12 from chenglulu --- (In reply to Xi Ruoyao from comment #11) > (In reply to chenglulu from comment #10) > > (In reply to Xi Ruoyao from comment #5) > > > The test fails on loongarch64-linux-gnu. foo is kept in 114t.threadfull1,

[Bug tree-optimization/108357] [13 Regression] Dead Code Elimination Regression at -O2 since r13-4607-g2dc5d6b1e7ec88

2023-04-13 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108357 --- Comment #10 from chenglulu --- (In reply to Xi Ruoyao from comment #5) > The test fails on loongarch64-linux-gnu. foo is kept in 114t.threadfull1, > but removed in 135t.forwprop3. > > Does this mean something is wrong for LoongArch, or we

[Bug target/110136] After optimization, the $r1 register will be broken when jumping to the jump table, resulting in a significant increase in the false prediction rate of branch prediction.

2023-06-15 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110136 chenglulu changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug lto/110136] New: After optimization, the $r1 register will be broken when jumping to the jump table, resulting in a significant increase in the false prediction rate of branch prediction.

2023-06-06 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110136 Bug ID: 110136 Summary: After optimization, the $r1 register will be broken when jumping to the jump table, resulting in a significant increase in the false prediction rate of

[Bug target/110136] After optimization, the $r1 register will be broken when jumping to the jump table, resulting in a significant increase in the false prediction rate of branch prediction.

2023-06-06 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110136 --- Comment #3 from chenglulu --- (In reply to Andrew Pinski from comment #1) > >In the regrename passover optimization > > I am trying to understand the issue. > > 5912 ldx.d $r20,$r16,$r19 > 5913 add.d $r1,$r16,$r20 >

[Bug target/110136] After optimization, the $r1 register will be broken when jumping to the jump table, resulting in a significant increase in the false prediction rate of branch prediction.

2023-06-06 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110136 --- Comment #4 from chenglulu --- (In reply to Andrew Pinski from comment #2) > (In reply to Andrew Pinski from comment #1) > > >In the regrename passover optimization > > > > I am trying to understand the issue. > > > > 5912 ldx.d

[Bug c++/110484] Spec2017 541 after adding the '-flto-fomit-frame-pointer' optimization, after optimizing the rnreg, directly replaced other registers with the $r22 register, so that the value of the

2023-06-29 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110484 --- Comment #1 from chenglulu --- The following code modification problem can be solved: --- a/gcc/config/loongarch/loongarch.cc +++ b/gcc/config/loongarch/loongarch.cc @@ -1112,7 +1112,9 @@ loongarch_first_stack_step (struct

[Bug c++/110484] New: Spec2017 541 after adding the '-flto-fomit-frame-pointer' optimization, after optimizing the rnreg, directly replaced other registers with the $r22 register, so that the value of

2023-06-29 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110484 Bug ID: 110484 Summary: Spec2017 541 after adding the '-flto-fomit-frame-pointer' optimization, after optimizing the rnreg, directly replaced other registers with

[Bug middle-end/112985] LOGICAL_OP_NON_SHORT_CIRCUIT unconditionally execute comparison even if it's very expensive

2023-12-12 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112985 --- Comment #1 from chenglulu --- (In reply to Xi Ruoyao from comment #0) > /* { dg-do compile } */ > /* { dg-options "-O2 -ffast-math -fdump-tree-gimple" } */ > > int > short_circuit (float *a) > { > float t1x = a[0]; > float t2x = a[1];

[Bug target/112919] LoongArch: Alignments in tune parameters are not precise and they regress performance

2023-12-11 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112919 --- Comment #5 from chenglulu --- (In reply to Xi Ruoyao from comment #4) > Lulu: can you help to run some other benchmarks like SPEC (I don't have an > access to it) and update these values for LA464 and LA664? No problem, this is what I

[Bug target/112919] LoongArch: Alignments in tune parameters are not precise and they regress performance

2024-01-15 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112919 --- Comment #6 from chenglulu --- Hi,Ruoyao: I am testing the spec2006 scores when the parameters 'align-loops', 'align-jumps', 'align-functions', and 'align-labels' are '1', '8', '16', and '32' respectively. However, the test was suspended due

[Bug c/113626] New: The r14-8450 commit causes the loongarch [x]vfcmp-{d/f}.c test case to fail

2024-01-26 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113626 Bug ID: 113626 Summary: The r14-8450 commit causes the loongarch [x]vfcmp-{d/f}.c test case to fail Product: gcc Version: 14.0 Status: UNCONFIRMED Severity:

[Bug target/112919] LoongArch: Alignments in tune parameters are not precise and they regress performance

2024-02-01 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112919 --- Comment #8 from chenglulu --- (In reply to Xi Ruoyao from comment #7) > Any update? :) Well, I haven't run it yet. Since this does not have a big impact on the spec score, I am currently testing it on a single-channel machine, so the test

[Bug target/112578] LoongArch: Wrong code -with -mlsx -fno-fp-int-builtin-inexact

2023-11-17 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112578 --- Comment #2 from chenglulu --- (In reply to Xi Ruoyao from comment #1) > I've made a patch and it's under testing. > > I've seen some "random" gcc.dg/torture/builtin-fp-int-inexact.c failures > recently but maybe it's not related, we don't

[Bug target/112919] LoongArch: Alignments in tune parameters are not precise and they regress performance

2024-03-01 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112919 --- Comment #10 from chenglulu --- (In reply to Xi Ruoyao from comment #9) > (In reply to chenglulu from comment #8) > > (In reply to Xi Ruoyao from comment #7) > > > Any update? :) > > > > Well, I haven't run it yet. Since this does not have

[Bug target/112919] LoongArch: Alignments in tune parameters are not precise and they regress performance

2024-03-01 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112919 --- Comment #12 from chenglulu --- (In reply to Xi Ruoyao from comment #11) > (In reply to chenglulu from comment #10) > > (In reply to Xi Ruoyao from comment #9) > > > (In reply to chenglulu from comment #8) > > > > (In reply to Xi Ruoyao from

[Bug target/112919] LoongArch: Alignments in tune parameters are not precise and they regress performance

2024-03-07 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112919 --- Comment #16 from chenglulu --- (In reply to Xi Ruoyao from comment #15) > > Hi,Ruoyao: > > > > The results of spec2006 on 3A6000 were obtained, I removed the more > > volatile > > test items, '-falign-loops=8 -falign-functions=8

[Bug target/112919] LoongArch: Alignments in tune parameters are not precise and they regress performance

2024-03-06 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112919 --- Comment #13 from chenglulu --- (In reply to Xi Ruoyao from comment #9) > (In reply to chenglulu from comment #8) > > (In reply to Xi Ruoyao from comment #7) > > > Any update? :) > > > > Well, I haven't run it yet. Since this does not have

[Bug target/112919] LoongArch: Alignments in tune parameters are not precise and they regress performance

2024-03-06 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112919 --- Comment #14 from chenglulu --- (In reply to chenglulu from comment #13) > (In reply to Xi Ruoyao from comment #9) > > (In reply to chenglulu from comment #8) > > > (In reply to Xi Ruoyao from comment #7) > > > > Any update? :) > > > > > >

[Bug target/112919] LoongArch: Alignments in tune parameters are not precise and they regress performance

2024-03-25 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112919 --- Comment #17 from chenglulu --- (In reply to Xi Ruoyao from comment #15) > > Hi,Ruoyao: > > > > The results of spec2006 on 3A6000 were obtained, I removed the more > > volatile > > test items, '-falign-loops=8 -falign-functions=8

[Bug tree-optimization/114027] [11/12 Regression] miscompile at `-O3 -fno-vect-cost-model -msse4.2`

2024-03-26 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114027 chenglulu changed: What|Removed |Added CC||chenglulu at loongson dot cn --- Comment

[Bug target/112919] LoongArch: Alignments in tune parameters are not precise and they regress performance

2024-04-01 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112919 --- Comment #21 from chenglulu --- (In reply to Xi Ruoyao from comment #20) > (In reply to chenglulu from comment #19) > > (In reply to Xi Ruoyao from comment #18) > > > (In reply to chenglulu from comment #17) > > > > > > > The results of

[Bug target/112919] LoongArch: Alignments in tune parameters are not precise and they regress performance

2024-03-27 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112919 --- Comment #19 from chenglulu --- (In reply to Xi Ruoyao from comment #18) > (In reply to chenglulu from comment #17) > > > The results of spec2006 on LA464 are: > > -falign-labels=4 -falign-functions=32 -falign-loops=16 -falign-jumps=16 > >

[Bug libfortran/114304] [13/14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-04-08 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 chenglulu changed: What|Removed |Added CC||chenglulu at loongson dot cn --- Comment

[Bug target/114848] loongarch: epilogue in _Unwind_RaiseException corrupts return value due to __builtin_eh_return

2024-04-27 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114848 --- Comment #5 from chenglulu --- (In reply to Xi Ruoyao from comment #3) > (In reply to Andrew Pinski from comment #2) > > (In reply to Xi Ruoyao from comment #1) > > > Hmm, AFAIK this should be already fixed with r14-6440? > > > > > > I

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2024-05-08 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 --- Comment #10 from chenglulu --- (In reply to Xi Ruoyao from comment #9) > (In reply to chenglulu from comment #8) > > > diff --git a/gcc/config/loongarch/loongarch-def.cc > > b/gcc/config/loongarch/loongarch-def.cc > > index

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2024-05-08 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 --- Comment #8 from chenglulu --- (In reply to Chen Chen from comment #0) > We tested Loongarch64 CPU Loongson 3A6000 with "LA664" architecture in Linux > operating system AOSC OS 11.4.0 (default gcc version is 13.2.0). And we > found the

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2024-05-09 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 --- Comment #11 from chenglulu --- (In reply to Chen Chen from comment #0) > We tested Loongarch64 CPU Loongson 3A6000 with "LA664" architecture in Linux > operating system AOSC OS 11.4.0 (default gcc version is 13.2.0). And we > found the

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2024-05-09 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 --- Comment #15 from chenglulu --- (In reply to Chen Chen from comment #14) > (In reply to Xi Ruoyao from comment #13) > > (In reply to Chen Chen from comment #12) > > > > > No. I used system default gcc. > > > > AOSC backports *many* changes

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2024-05-07 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 --- Comment #5 from chenglulu --- I will verify it on multiple machines to see if the problem can be reproduced.

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2024-05-14 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 --- Comment #16 from chenglulu --- The performance degradation on LoongArch is caused by one commit: commit e0e9499aeffdaca88f0f29334384aa5f710a81a4 (HEAD -> trunk) Author: Richard Biener Date: Tue Mar 19 12:24:08 2024 +0100

[Bug target/114978] [14/15 regression] 548.exchange2_r 14%-28% regressions on Loongarch64 after gcc 14 snapshot 20240317

2024-05-14 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114978 --- Comment #18 from chenglulu --- (In reply to Xi Ruoyao from comment #17) > Strangely PR114074 is a wrong-code (instead of missed-optimization) and > reverting its fix seems improving performance for other targets... This is very strange. I