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

            Bug ID: 118595
           Summary: [15 regression] RISC-V: gfortran/c-interop test
                    execution failures on RVV zvl > 128b
           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 has been seeing the following errors on linux rvv 32/64 bit targets. 

FAIL: gfortran.dg/c-interop/cf-descriptor-1.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
FAIL: gfortran.dg/c-interop/cf-descriptor-1.f90   -O3 -g  execution test
FAIL: gfortran.dg/c-interop/cf-descriptor-2.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
FAIL: gfortran.dg/c-interop/cf-descriptor-2.f90   -O3 -g  execution test
FAIL: gfortran.dg/c-interop/cf-descriptor-6.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
FAIL: gfortran.dg/c-interop/cf-descriptor-6.f90   -O3 -g  execution test
FAIL: gfortran.dg/c-interop/cf-descriptor-7.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
FAIL: gfortran.dg/c-interop/cf-descriptor-7.f90   -O3 -g  execution test
FAIL: gfortran.dg/c-interop/cf-descriptor-8.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
FAIL: gfortran.dg/c-interop/cf-descriptor-8.f90   -O3 -g  execution test
FAIL: gfortran.dg/c-interop/fc-out-descriptor-7.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
FAIL: gfortran.dg/c-interop/fc-out-descriptor-7.f90   -O3 -g  execution test
FAIL: gfortran.dg/c-interop/ff-descriptor-1.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
FAIL: gfortran.dg/c-interop/ff-descriptor-1.f90   -O3 -g  execution test
FAIL: gfortran.dg/c-interop/section-2.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
FAIL: gfortran.dg/c-interop/section-2.f90   -O3 -g  execution test
FAIL: gfortran.dg/c-interop/section-2p.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
FAIL: gfortran.dg/c-interop/section-2p.f90   -O3 -g  execution test
FAIL: gfortran.dg/c-interop/section-3.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
FAIL: gfortran.dg/c-interop/section-3.f90   -O3 -g  execution test
FAIL: gfortran.dg/c-interop/section-3p.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
FAIL: gfortran.dg/c-interop/section-3p.f90   -O3 -g  execution test

first instance our postcommit found
https://github.com/patrick-rivos/gcc-postcommit-ci/issues/1625. Apparently it's
been going on for a while but I just didn't notice. I don't see these fail on
our regularly run rvv targets which suggests zvl128b is likely alright.

Testsuite log from one of the rv32 outputs:
spawn -ignore SIGHUP
/data-disk-1/github/rise-postcommit-13/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-linux-stage2/gcc/testsuite/gfortran1/../../gfortran
-B/data-disk-1/github/rise-postcommit-13/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-linux-stage2/gcc/testsuite/gfortran1/../../
-B/data-disk-1/github/rise-postcommit-13/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-linux-stage2/riscv64-unknown-linux-gnu/lib32/ilp32d/libgfortran/
/data-disk-1/github/rise-postcommit-13/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/gfortran.dg/c-interop/cf-descriptor-1.f90
-march=rv32gcv_zvl256b -mabi=ilp32d -mcmodel=medlow -fdiagnostics-plain-output
-fdiagnostics-plain-output -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops
-ftracer -finline-functions -Werror
/data-disk-1/github/rise-postcommit-13/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/gfortran.dg/c-interop/cf-descriptor-1-c.c
/data-disk-1/github/rise-postcommit-13/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/gfortran.dg/c-interop/dump-descriptors.c
-dumpbase 
-L/data-disk-1/github/rise-postcommit-13/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-linux-stage2/riscv64-unknown-linux-gnu/lib32/ilp32d/libgfortran/.libs
-L/data-disk-1/github/rise-postcommit-13/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-linux-stage2/riscv64-unknown-linux-gnu/lib32/ilp32d/libatomic/.libs
-lm -o ./cf-descriptor-1.exe
PASS: gfortran.dg/c-interop/cf-descriptor-1.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  (test for excess
errors)
spawn riscv64-unknown-linux-gnu-run ./cf-descriptor-1.exe
<CFI_cdesc_t base_addr=0x2b2a7170 elem_len=8 version=1
  rank=2 type=CFI_type_struct attribute=CFI_attribute_other
  dim=[<CFI_dim_t lower_bound=0 extent=10 sm=8>,
       <CFI_dim_t lower_bound=0 extent=5 sm=80>]>

Program received signal SIGABRT: Process abort signal.

Backtrace for this error:
#0  0x2b2f0873 in ???
#1  0x2b2efdb9 in ???
#2  0x2b2ce57f in ???
#3  0x2b51de40 in ???
#4  0x2b4e4265 in ???
#5  0x2b4d35ed in ???
#6  0x10b5f in ???
#7  0x1092f in ???
#8  0x10681 in ???
#9  0x2b4d38ef in ???
#10  0x2b4d3985 in ???
#11  0x106a7 in ???
#12  0xffffffff in ???
/data-disk-1/github/rise-postcommit-13/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/../scripts/wrapper/qemu/riscv64-unknown-linux-gnu-run:
line 17: 2731887 Aborted                 (core dumped) QEMU_CPU="${qemu_cpu}"
qemu-riscv${xlen} -r 5.10 "${qemu_args[@]}" -L ${RISC_V_SYSROOT} "$@"
FAIL: gfortran.dg/c-interop/cf-descriptor-1.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test


Another testsuite log from the rv32 target:
spawn -ignore SIGHUP
/data-disk-1/github/rise-postcommit-13/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-linux-stage2/gcc/testsuite/gfortran3/../../gfortran
-B/data-disk-1/github/rise-postcommit-13/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-linux-stage2/gcc/testsuite/gfortran3/../../
-B/data-disk-1/github/rise-postcommit-13/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-linux-stage2/riscv64-unknown-linux-gnu/lib32/ilp32d/libgfortran/
/data-disk-1/github/rise-postcommit-13/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/gfortran.dg/c-interop/ff-descriptor-1.f90
-march=rv32gcv_zvl256b -mabi=ilp32d -mcmodel=medlow -fdiagnostics-plain-output
-fdiagnostics-plain-output -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops
-ftracer -finline-functions -Werror
-L/data-disk-1/github/rise-postcommit-13/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-linux-stage2/riscv64-unknown-linux-gnu/lib32/ilp32d/libgfortran/.libs
-L/data-disk-1/github/rise-postcommit-13/_work/gcc-postcommit-ci/gcc-postcommit-ci/riscv-gnu-toolchain/build/build-gcc-linux-stage2/riscv64-unknown-linux-gnu/lib32/ilp32d/libatomic/.libs
-lm -o ./ff-descriptor-1.exe
PASS: gfortran.dg/c-interop/ff-descriptor-1.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  (test for excess
errors)
spawn riscv64-unknown-linux-gnu-run ./ff-descriptor-1.exe
STOP 105
FAIL: gfortran.dg/c-interop/ff-descriptor-1.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test

Reply via email to