https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115766
Bug ID: 115766 Summary: [12/13/14 Regression] wrong code at optimization levels -O2, -O3 Product: gcc Version: 12.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: bic60176 at gmail dot com Target Milestone: --- Created attachment 58579 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58579&action=edit testcase OS: Ubuntu 22.04.3 LTS We found that there are discrepancies when compiling with gcc-14.1.0, gcc-13.2.0, gcc-12.3.0 at optimization levels -O2 and -O3. $ ../compiler-builds/gcc-12.3.0_build/bin/gcc -fsanitize=undefined -fsanitize=address -g -lgcc_s -I/home/csmith/include/csmith-2.3.0 -O2 testcase.c -o exec $ timeout 1s ./exec 2>exec.err checksum = 3BA9B585 $ ../compiler-builds/gcc-12.3.0_build/bin/gcc -fsanitize=undefined -fsanitize=address -g -lgcc_s -I/home/csmith/include/csmith-2.3.0 -O0 testcase.c -o exec $ timeout 1s ./exec 2>exec.err checksum = 8861541D