[Bug tree-optimization/97760] New: GCC outputs wrong values when compiling the testcase with -O3

yangyang305 at huawei dot com gcc-bugzilla@gcc.gnu.org
Mon Nov 9 02:58:48 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97760

            Bug ID: 97760
           Summary: GCC outputs wrong values when compiling the testcase
                    with -O3
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: yangyang305 at huawei dot com
  Target Milestone: ---

Hi, gcc-trunk outputs wrong values when compiling the attached testcase with
-O3.


gcc -O0 test.c -w && ./a.out

159,150,150
150

gcc -O3 test.c -w && ./a.out

159,123,123
123

GCC version: 11.0.0 20201106 (experimental)


More information about the Gcc-bugs mailing list