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

            Bug ID: 124343
           Summary: FAIL: gcc.dg/match-shift-cmp-3.c scan-tree-dump-times
                    optimized
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: azoff at gcc dot gnu.org
  Target Milestone: ---

In r16-5648-g862d4309dcb342, the test case was updated to check for "return 0;"
and "return 1;". Both of these tests are checking that there are 6 occurrences.

For all arm-none-eabi targets that I've tested, both patterns always have 4
occurrences.
For x86_64-pc-linux-gnu, the checks passes.


Testing gcc.dg/match-shift-cmp-3.c
doing compile
Executing on host: /build/r16-7849-g1f9879e17466f5/bin/arm-none-eabi-gcc 
/build/gcc_src/gcc/testsuite/gcc.dg/match-shift-cmp-3.c  -mthumb
-march=armv6s-m -mtune=cortex-m0 -mfloat-abi=soft -mfpu=auto  
-fdiagnostics-plain-output   -O2 -fdump-tree-optimized -S     -o
match-shift-cmp-3.s    (timeout = 800)
spawn -ignore SIGHUP /build/r16-7849-g1f9879e17466f5/bin/arm-none-eabi-gcc
/build/gcc_src/gcc/testsuite/gcc.dg/match-shift-cmp-3.c -mthumb -march=armv6s-m
-mtune=cortex-m0 -mfloat-abi=soft -mfpu=auto -fdiagnostics-plain-output -O2
-fdump-tree-optimized -S -o match-shift-cmp-3.s
pid is 69719 -69719
pid is -1
output is  status 0
PASS: gcc.dg/match-shift-cmp-3.c (test for excess errors)
gcc.dg/match-shift-cmp-3.c: pattern found 4 times
FAIL: gcc.dg/match-shift-cmp-3.c scan-tree-dump-times optimized "return 0;" 6
gcc.dg/match-shift-cmp-3.c: pattern found 4 times
FAIL: gcc.dg/match-shift-cmp-3.c scan-tree-dump-times optimized "return 1;" 6

Reply via email to