https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113009
Bug ID: 113009
Summary: [14] RISC-V: gcc.c-torture/unsorted/dump-noaddr.c
flakey tests
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: ewlu at rivosinc dot com
Target Milestone: ---
The following tests are flakey on newlib/linux for 32-bit and 64-bit vector
targets
FAIL: gcc.c-torture/unsorted/dump-noaddr.c.*r.avlprop, -O3
-fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions
comparison
FAIL: gcc.c-torture/unsorted/dump-noaddr.c.*r.avlprop, -O3 -g comparison
FAIL: gcc.c-torture/unsorted/dump-noaddr.c.*r.reload, -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions comparison
FAIL: gcc.c-torture/unsorted/dump-noaddr.c.*r.reload, -O3 -g comparison
With logs along the lines of
line #8
< rescanning insn with uid = 213.
> rescanning insn with uid = 215.
line #9
< verify found no changes in insn with uid = 213.
> verify found no changes in insn with uid = 215.
line #10
< rescanning insn with uid = 215.
> rescanning insn with uid = 213.
line #11
< verify found no changes in insn with uid = 215.
> verify found no changes in insn with uid = 213.
FAIL: gcc.c-torture/unsorted/dump-noaddr.c.*r.avlprop, -O3 -g comparison
line #694
< changing reg in insn 215
> changing reg in insn 213
line #695
< changing reg in insn 213
> changing reg in insn 215
FAIL: gcc.c-torture/unsorted/dump-noaddr.c.*r.reload, -O3 -g comparison
Flakey tests bisected to r14-5744-gae098dfeeef though this is a rough estimate.
I only compiled and diffed the output 20 times for each hash during the
bisection so I might have just gotten lucky (or unlucky) when searching for the
"good" hash.
Command used:
./build-gcc-linux-stage2/gcc/xgcc -B./build-gcc-linux-stage2/gcc/
-march=rv64gcv -mabi=lp64d -mcmodel=medlow -fdiagnostics-plain-output -w
-O3 -g -dumpbase dump1/dump-noaddr.c -DMASK=1 -x c --param ggc-min-heapsize=1
-fdump-ipa-all -fdump-rtl-all -fdump-tree-all -fdump-noaddr
-gno-record-gcc-switches -c -o
./build-gcc-linux-stage2/gcc/testsuite/gcc/dump-noaddr.o
../gcc/gcc/testsuite/gcc.c-torture/unsorted/dump-noaddr.c && diff -d
dump1/dump-noaddr.c.*r.avlprop
../../baseline/build-flakey/dump1/dump-noaddr.c.302r.avlprop
All recorded instances can be found here:
https://github.com/patrick-rivos/gcc-postcommit-ci/issues?q=FAIL%3A+gcc.c-torture%2Funsorted%2Fdump-noaddr.c.*r.avlprop%2C+-O3+-g+comparison+