https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111428
Bug ID: 111428 Summary: RISC-V vector: Flaky segfault in {min|max}val_char_{1|2}.f90 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: patrick at rivosinc dot com Target Milestone: --- Created attachment 55906 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55906&action=edit Excerpt from the debug log Failures: FAIL: gfortran.dg/minval_char_1.f90 -O3 -g execution test FAIL: gfortran.dg/minval_char_1.f90 -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions execution test FAIL: gfortran.dg/minval_char_2.f90 -O3 -g execution test FAIL: gfortran.dg/minval_char_2.f90 -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions execution test FAIL: gfortran.dg/maxval_char_1.f90 -O3 -g execution test FAIL: gfortran.dg/maxval_char_1.f90 -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions execution test FAIL: gfortran.dg/maxval_char_2.f90 -O3 -g execution test FAIL: gfortran.dg/maxval_char_2.f90 -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions execution test Observed on: rv64gcv_zvbb_zvbc_zvkg_zvkn_zvknc_zvkned_zvkng_zvknha_zvknhb_zvks_zvksc_zvksed_zvksg_zvksh_zvkt-lp64d rv64gcv-lp64d rv64imafdcv_zicond_zawrs_zbc_zvkng_zvksg_zvbb_zvbc_zicsr_zba_zbb_zbs_zicbom_zicbop_zicboz_zfhmin_zkt-lp64d Seems to only occur on rv64 glibc targets with the v extension enabled. Known to pass: r14-3834-gd05aac047e0 Known to fail: r14-3840-g88a0a883960 Replicated locally using https://github.com/patrick-rivos/riscv-gnu-toolchain/tree/29d071a8eec4603ff5fe4fe21d7e4ffa24f705f0 git submodule update --init gcc cd gcc && git checkout 316d57da5bb9205b946afc56d78582fee874e4b5 cd .. && mkdir build && cd build ../configure --prefix=$(pwd) --with-arch=rv64gcv --with-abi=lp64 make report-linux -j32 There was previously flaky behavior with these testcases, but it's been resolved for other targets: https://gcc.gnu.org/legacy-ml/gcc-patches/2017-12/msg00807.html https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83379