https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118119
Bug ID: 118119
Summary: [15 regression] RISC-V:
gcc.c-torture/execute/va-arg-24.c zvl256b failure
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: ewlu at rivosinc dot com
Target Milestone: ---
postcommit is finding the following failure on the linux rv64gcv_zvl256b target
FAIL: gcc.c-torture/execute/va-arg-24.c -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions execution test
FAIL: gcc.c-torture/execute/va-arg-24.c -O3 -g execution test
https://github.com/patrick-rivos/gcc-postcommit-ci/issues/2285
testsuite log:
Executing on host:
/data-disk-1/github/rise-postcommit-7/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-linux-stage2/gcc/xgcc
-B/data-disk-1/github/rise-postcommit-7/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-linux-stage2/gcc/
/data-disk-1/github/rise-postcommit-7/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.c-torture/execute/va-arg-24.c
-march=rv64gcv_zvl256b -mabi=lp64d -mcmodel=medlow
-fdiagnostics-plain-output -O3 -fomit-frame-pointer -funroll-loops
-fpeel-loops -ftracer -finline-functions -w -lm -o ./va-arg-24.exe
(timeout = 600)
spawn -ignore SIGHUP
/data-disk-1/github/rise-postcommit-7/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-linux-stage2/gcc/xgcc
-B/data-disk-1/github/rise-postcommit-7/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-linux-stage2/gcc/
/data-disk-1/github/rise-postcommit-7/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.c-torture/execute/va-arg-24.c
-march=rv64gcv_zvl256b -mabi=lp64d -mcmodel=medlow -fdiagnostics-plain-output
-O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer
-finline-functions -w -lm -o ./va-arg-24.exe
PASS: gcc.c-torture/execute/va-arg-24.c -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions (test for excess
errors)
spawn riscv64-unknown-linux-gnu-run ./va-arg-24.exe
varargs0: n[3] = -1 expected 3
varargs0: n[4] = -1 expected 4
varargs0: n[7] = 0 expected 7
varargs0: n[8] = 0 expected 8
varargs1: n[4] = 78496 expected 4
varargs1: n[5] = 0 expected 5
varargs1: n[8] = 3 expected 8
varargs1: n[9] = 3 expected 9
/data-disk-1/github/rise-postcommit-7/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/../scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run:
line 17: 1251304 Aborted (core dumped) QEMU_CPU="${qemu_cpu}"
qemu-riscv${xlen} -r 5.10 "${qemu_args[@]}" -L ${RISC_V_SYSROOT} "$@"
FAIL: gcc.c-torture/execute/va-arg-24.c -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions execution test