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

            Bug ID: 121612
           Summary: RISC-V: r16-2451-g4b62bd519a852a makes tests
                    unresolved
           Product: gcc
           Version: 15.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: parras at gcc dot gnu.org
  Target Milestone: ---

4b62bd519a8 RISC-V: testsuite: Fix vx_vf_*run-1-f16.c run tests.

The CI output log [1] shows:

UNSUPPORTED: gcc.target/riscv/rvv/autovec/vx_vf/vf_vfmacc-run-1-f16.c
-ftree-vectorize -O3 -mrvv-vector-bits=scalable -mrvv-max-lmul=m4 -ffast-math
Executing on host:
/home/ewlu/precommit-02/_work/gcc-precommit-ci/gcc-precommit-ci/riscv-gnu-toolchain/build/build-gcc-linux-stage2/gcc/xgcc
-B/home/ewlu/precommit-02/_work/gcc-precommit-ci/gcc-precommit-ci/riscv-gnu-toolchain/build/build-gcc-linux-stage2/gcc/

/home/ewlu/precommit-02/_work/gcc-precommit-ci/gcc-precommit-ci/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.target/riscv/rvv/autovec/vx_vf/vf_vfmacc-run-1-f32.c
 -march=rv64gcv -mabi=lp64d -mcmodel=medlow   -fdiagnostics-plain-output 
-ftree-vectorize -O3 -mrvv-vector-bits=scalable -mrvv-max-lmul=m4 -ffast-math
--param=fpr2vr-cost=0       -lm  -o ./vf_vfmacc-run-1-f32.exe

and similar for all tests affected by this patch.
The CI summary [2] lists those tests as "resolved failures" because they are
not failing any more, but they actually never run.

The root cause is likely the combination of:

/* { dg-require-effective-target riscv_zvfh } */

in each testcase, and the definition of:

proc check_effective_target_riscv_zvfh_ok

in target-supports.exp [3].

The log shows that check_effective_target_riscv_zvfh fails but the
check_runtime part seems to never run.

Also, probably unrelated, but these lines appear twice:

proc remove_options_for_riscv_zvfh { flags } {
    return [add_options_for_riscv_z_ext zvfh $flags]
}


[1]
https://github.com/ewlu/gcc-precommit-ci/actions/runs/16440471190/artifacts/3586756653
[2] https://github.com/ewlu/gcc-precommit-ci/issues/3684
[3]
https://github.com/gcc-mirror/gcc/blob/fc23b539caa16a108bd16bcfcb86fe261a9aa174/gcc/testsuite/lib/target-supports.exp#L2334

Reply via email to