https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124345
Bug ID: 124345
Summary: FAIL: gcc.dg/tree-ssa/abs-4.c scan-tree-dump-times
optimized
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: azoff at gcc dot gnu.org
Target Milestone: ---
This test appears to fail for all arm-none-eabi targets.
I'm unable to find any GCC version that produces the expected number of pattern
matches in the optimized file for arm-none-eabi.
The test passes on x86_64-pc-linux-gnu.
Log for thumb/arch=armv7ve+neon/tune=cortex-a7/float-abi=hard/fpu=auto:
Testing tree-ssa/abs-4.c
doing compile
Executing on host: /build/r16-7849-g1f9879e17466f5/bin/arm-none-eabi-gcc
/build/gcc_src/gcc/testsuite/gcc.dg/tree-ssa/abs-4.c -mthumb
-march=armv7ve+neon -mtune=cortex-a7 -mfloat-abi=hard -mfpu=auto
-fdiagnostics-plain-output -O1 -fdump-tree-optimized -S -o abs-4.s
(timeout = 800)
spawn -ignore SIGHUP /build/r16-7849-g1f9879e17466f5/bin/arm-none-eabi-gcc
/build/gcc_src/gcc/testsuite/gcc.dg/tree-ssa/abs-4.c -mthumb
-march=armv7ve+neon -mtune=cortex-a7 -mfloat-abi=hard -mfpu=auto
-fdiagnostics-plain-output -O1 -fdump-tree-optimized -S -o abs-4.s
pid is 1751323 -1751323
pid is -1
output is status 0
PASS: gcc.dg/tree-ssa/abs-4.c (test for excess errors)
PASS: gcc.dg/tree-ssa/abs-4.c scan-tree-dump-not optimized "signbit"
check_compile tool: gcc for arm_neon
doing compile
Executing on host: /build/r16-7849-g1f9879e17466f5/bin/arm-none-eabi-gcc
-mthumb -march=armv7ve+neon -mtune=cortex-a7 -mfloat-abi=hard -mfpu=auto
-fdiagnostics-plain-output -Wno-complain-wrong-lang -c -o arm_neon725262.o
arm_neon725262.c (timeout = 800)
spawn -ignore SIGHUP /build/r16-7849-g1f9879e17466f5/bin/arm-none-eabi-gcc
-mthumb -march=armv7ve+neon -mtune=cortex-a7 -mfloat-abi=hard -mfpu=auto
-fdiagnostics-plain-output -Wno-complain-wrong-lang -c -o arm_neon725262.o
arm_neon725262.c
pid is 1751336 -1751336
pid is -1
output is status 0
gcc.dg/tree-ssa/abs-4.c: pattern found 3 times
FAIL: gcc.dg/tree-ssa/abs-4.c scan-tree-dump-times optimized "= ABS_EXPR" 1
gcc.dg/tree-ssa/abs-4.c: pattern found 3 times
FAIL: gcc.dg/tree-ssa/abs-4.c scan-tree-dump-times optimized "= -" 1
gcc.dg/tree-ssa/abs-4.c: pattern found 0 times
FAIL: gcc.dg/tree-ssa/abs-4.c scan-tree-dump-times optimized "= .COPYSIGN" 2
Log for thumb/arch=armv7-m/tune=cortex-m3/float-abi=soft/fpu=auto:
Testing tree-ssa/abs-4.c
doing compile
Executing on host: /build/r16-7849-g1f9879e17466f5/bin/arm-none-eabi-gcc
/build/gcc_src/gcc/testsuite/gcc.dg/tree-ssa/abs-4.c -mthumb -march=armv7-m
-mtune=cortex-m3 -mfloat-abi=soft -mfpu=auto -fdiagnostics-plain-output -O1
-fdump-tree-optimized -S -o abs-4.s (timeout = 800)
spawn -ignore SIGHUP /build/r16-7849-g1f9879e17466f5/bin/arm-none-eabi-gcc
/build/gcc_src/gcc/testsuite/gcc.dg/tree-ssa/abs-4.c -mthumb -march=armv7-m
-mtune=cortex-m3 -mfloat-abi=soft -mfpu=auto -fdiagnostics-plain-output -O1
-fdump-tree-optimized -S -o abs-4.s
pid is 2818484 -2818484
pid is -1
output is status 0
PASS: gcc.dg/tree-ssa/abs-4.c (test for excess errors)
PASS: gcc.dg/tree-ssa/abs-4.c scan-tree-dump-not optimized "signbit"
check_compile tool: gcc for arm_neon
doing compile
Executing on host: /build/r16-7849-g1f9879e17466f5/bin/arm-none-eabi-gcc
-mthumb -march=armv7-m -mtune=cortex-m3 -mfloat-abi=soft -mfpu=auto
-fdiagnostics-plain-output -Wno-complain-wrong-lang -c -o arm_neon101.o
arm_neon101.c (timeout = 800)
spawn -ignore SIGHUP /build/r16-7849-g1f9879e17466f5/bin/arm-none-eabi-gcc
-mthumb -march=armv7-m -mtune=cortex-m3 -mfloat-abi=soft -mfpu=auto
-fdiagnostics-plain-output -Wno-complain-wrong-lang -c -o arm_neon101.o
arm_neon101.c
pid is 2818518 -2818518
arm_neon101.c:3:14: error: #error not NEON
pid is -1
close result is 2818518 exp5 0 1
output is arm_neon101.c:3:14: error: #error not NEON
status 1
compiler exited with status 1
gcc.dg/tree-ssa/abs-4.c: pattern found 0 times
FAIL: gcc.dg/tree-ssa/abs-4.c scan-tree-dump-times optimized "= ABS_EXPR" 3
gcc.dg/tree-ssa/abs-4.c: pattern found 0 times
FAIL: gcc.dg/tree-ssa/abs-4.c scan-tree-dump-times optimized "= -" 3