diff options
author | Pan Li <pan2.li@intel.com> | 2023-10-07 13:17:41 +0800 |
---|---|---|
committer | Pan Li <pan2.li@intel.com> | 2023-10-07 15:59:34 +0800 |
commit | 7866984ba427dc56a12ee1b8d99feb4927b834b1 (patch) | |
tree | 1a9ac196c06696e0dd043f86272d59892f2a5a2b /gcc/addresses.h | |
parent | 537d7a445ca0ed677751afd3cdcf8465ccd5fb7e (diff) | |
download | gcc-7866984ba427dc56a12ee1b8d99feb4927b834b1.zip gcc-7866984ba427dc56a12ee1b8d99feb4927b834b1.tar.gz gcc-7866984ba427dc56a12ee1b8d99feb4927b834b1.tar.bz2 |
RISC-V: Add more run test for FP rounding autovec
For _Float16 types, add run test for:
* ceil
* floor
* nearbyint
* rint
* round
* roundeven
* trunc
For float and double, add run test for:
* roundeven
The zfa extension is required for these run test cases, the simulation
target_board may look like below for rv64.
target_board="riscv-sim/-march=rv64gcv_zfa_zfh/-mabi=lp64d/-mcmodel=medlow"
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/rvv.exp: Add zfa for building.
* gcc.target/riscv/rvv/autovec/unop/math-ceil-run-0.c: New test.
* gcc.target/riscv/rvv/autovec/unop/math-floor-run-0.c: New test.
* gcc.target/riscv/rvv/autovec/unop/math-nearbyint-run-0.c: New test.
* gcc.target/riscv/rvv/autovec/unop/math-rint-run-0.c: New test.
* gcc.target/riscv/rvv/autovec/unop/math-round-run-0.c: New test.
* gcc.target/riscv/rvv/autovec/unop/math-roundeven-run-0.c: New test.
* gcc.target/riscv/rvv/autovec/unop/math-roundeven-run-1.c: New test.
* gcc.target/riscv/rvv/autovec/unop/math-roundeven-run-2.c: New test.
* gcc.target/riscv/rvv/autovec/unop/math-trunc-run-0.c: New test.
Signed-off-by: Pan Li <pan2.li@intel.com>
Diffstat (limited to 'gcc/addresses.h')
0 files changed, 0 insertions, 0 deletions