[Bug c/116690] Miscompile with different optimization flags

2024-09-11 Thread yunboni at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116690 --- Comment #4 from Yunbo Ni --- (In reply to Andrew Pinski from comment #3) > Note in C++, it is undefined at the point of return in a rather than > afterwards. > > Also note PR 104690 is filed about catching this with -fsanitize=undefined. >

[Bug target/55212] [SH] Switch to LRA

2024-09-11 Thread kkojima at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #248 from Kazumoto Kojima --- Created attachment 59102 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59102&action=edit a reduced C test case for the wrong code problem c#192 typedef struct { int c[64]; } obj; extern void bar

[Bug c/116690] Miscompile with different optimization flags

2024-09-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116690 --- Comment #5 from Andrew Pinski --- (In reply to Yunbo Ni from comment #4) > Thanks for your kind and detailed explanation! BTW, when I change the value > of b to 1 in line 3 and compiled this code with -O0 flag, it gets killed > with with pro

[Bug c/116690] Miscompile with different optimization flags

2024-09-11 Thread yunboni at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116690 --- Comment #6 from Yunbo Ni --- (In reply to Andrew Pinski from comment #5) > (In reply to Yunbo Ni from comment #4) > > Thanks for your kind and detailed explanation! BTW, when I change the value > > of b to 1 in line 3 and compiled this code

[Bug target/55212] [SH] Switch to LRA

2024-09-11 Thread olegendo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #249 from Oleg Endo --- (In reply to Kazumoto Kojima from comment #248) > Created attachment 59102 [details] > a reduced C test case for the wrong code problem c#192 > > typedef struct { int c[64]; } obj; > > extern void bar (int, i

[Bug c/116691] New: RISC-V: Unexpected auto-vectorization codegen in simple vectorization

2024-09-11 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116691 Bug ID: 116691 Summary: RISC-V: Unexpected auto-vectorization codegen in simple vectorization Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug target/116691] RISC-V: Unexpected auto-vectorization codegen in simple vectorization

2024-09-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116691 --- Comment #1 from Andrew Pinski --- `-march=rv64gcv_zba_zbb_zbc_zbs -mabi=lp64d -O3`

[Bug target/116691] RISC-V: Unexpected auto-vectorization codegen in simple vectorization

2024-09-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116691 --- Comment #2 from Andrew Pinski --- The difference is: _39 = .SELECT_VL (ivtmp_37, POLY_INT_CST [4, 4]); vs loop_len_29 = MIN_EXPR ;

[Bug target/55212] [SH] Switch to LRA

2024-09-11 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #250 from John Paul Adrian Glaubitz --- (In reply to John Paul Adrian Glaubitz from comment #247) > Applying all necessary patches except 59000 makes the stack overflow with > reload go away. > > Will try an LRA build now with the fo

[Bug c/116690] Miscompile with different optimization flags

2024-09-11 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116690 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #7 fr

[Bug target/55212] [SH] Switch to LRA

2024-09-11 Thread kkojima at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #251 from Kazumoto Kojima --- (In reply to Oleg Endo from comment #249) > Very nice. Can you please add it as a test case under > gcc/testsuite/gcc.target/sh/torture on your github repo? I've just add it as testsuite/gcc.target/sh/p

<    1   2