]> gcc.gnu.org Git - gcc.git/commit
RISC-V/testsuite: constraint some of tests to hard_float
authorVineet Gupta <vineetg@rivosinc.com>
Fri, 27 May 2022 02:36:36 +0000 (19:36 -0700)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 30 May 2022 02:09:04 +0000 (10:09 +0800)
commit7915f6551343e0868784c2a7945fdac42ed498d3
tree3a10fb05c6647b7041415c05637a641a35b1f608
parent05f220c205b7e4182b17d8747c80a288af515d4e
RISC-V/testsuite: constraint some of tests to hard_float

Commit 9ddd44b58649d1d ("RISC-V: Provide `fmin'/`fmax' RTL pattern") added
tests which check for hard float instructions which obviously fails on
soft-float ABI builds.

And my recent commit b646d7d279ae ("RISC-V: Inhibit FP <--> int register
moves via tune param") is guilty of same crime.

So constraint with "dg-require-effective-target hard_float"

This reduces bunch of new RV failures.

|               ========= Summary of gcc testsuite =========
|                            | # of unexpected case / # of unique unexpected case
|                            |          gcc |          g++ |     gfortran |
|   rv64imac/   lp64/ medlow |  134 /    22 |    0 /     0 |            - |  BEFORE
|   rv64imac/   lp64/ medlow |   22 /     9 |    0 /     0 |            - |  AFTER
|

gcc/testsuite/Changelog:
* gcc.target/riscv/fmax.c: Add dg-require-effective-target hard_float.
* gcc.target/riscv/fmaxf.c: Ditto.
* gcc.target/riscv/fmin.c: Ditto.
* gcc.target/riscv/fminf.c: Ditto.
* gcc.target/riscv/smax-ieee.c: Ditto.
* gcc.target/riscv/smax.c: Ditto.
* gcc.target/riscv/smaxf-ieee.c: Ditto.
* gcc.target/riscv/smaxf.c: Ditto.
* gcc.target/riscv/smin-ieee.c: Ditto.
* gcc.target/riscv/smin.c: Ditto.
* gcc.target/riscv/sminf-ieee.c: Ditto.
* gcc.target/riscv/sminf.c: Ditto.
* gcc.target/riscv/pr105666.c: Ditto.

Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>
13 files changed:
gcc/testsuite/gcc.target/riscv/fmax.c
gcc/testsuite/gcc.target/riscv/fmaxf.c
gcc/testsuite/gcc.target/riscv/fmin.c
gcc/testsuite/gcc.target/riscv/fminf.c
gcc/testsuite/gcc.target/riscv/pr105666.c
gcc/testsuite/gcc.target/riscv/smax-ieee.c
gcc/testsuite/gcc.target/riscv/smax.c
gcc/testsuite/gcc.target/riscv/smaxf-ieee.c
gcc/testsuite/gcc.target/riscv/smaxf.c
gcc/testsuite/gcc.target/riscv/smin-ieee.c
gcc/testsuite/gcc.target/riscv/smin.c
gcc/testsuite/gcc.target/riscv/sminf-ieee.c
gcc/testsuite/gcc.target/riscv/sminf.c
This page took 0.06188 seconds and 5 git commands to generate.