aboutsummaryrefslogtreecommitdiff
path: root/isa/rv64uf
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2016-01-12 16:16:58 -0800
committerAndrew Waterman <waterman@cs.berkeley.edu>2016-01-12 16:16:58 -0800
commitfc000796c11f84a5e1997c67fcfac751aa64a916 (patch)
tree6670c513cde5ae2e4f9da650f7b9d816c3a40176 /isa/rv64uf
parent0c58c7f906ddedf91a5f204df77321ebde0b9837 (diff)
downloadriscv-tests-fc000796c11f84a5e1997c67fcfac751aa64a916.zip
riscv-tests-fc000796c11f84a5e1997c67fcfac751aa64a916.tar.gz
riscv-tests-fc000796c11f84a5e1997c67fcfac751aa64a916.tar.bz2
Use new NaN handling for conversions to integer
Diffstat (limited to 'isa/rv64uf')
-rw-r--r--isa/rv64uf/fcvt_w.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/isa/rv64uf/fcvt_w.S b/isa/rv64uf/fcvt_w.S
index 7382188..e9744b2 100644
--- a/isa/rv64uf/fcvt_w.S
+++ b/isa/rv64uf/fcvt_w.S
@@ -89,13 +89,13 @@ RVTEST_CODE_BEGIN
TEST_FP_INT_OP_D(79, fcvt.lu.d, 0x00, 3000000000, 3e9, rtz);
# test negative NaN, negative infinity conversion
- TEST_CASE( 80, x1, 0xffffffff80000000, la x1, tdat ; flw f1, 0(x1); fcvt.w.s x1, f1)
- TEST_CASE( 81, x1, 0x8000000000000000, la x1, tdat ; flw f1, 0(x1); fcvt.l.s x1, f1)
+ TEST_CASE( 80, x1, 0x000000007fffffff, la x1, tdat ; flw f1, 0(x1); fcvt.w.s x1, f1)
+ TEST_CASE( 81, x1, 0x7fffffffffffffff, la x1, tdat ; flw f1, 0(x1); fcvt.l.s x1, f1)
TEST_CASE( 82, x1, 0xffffffff80000000, la x1, tdat ; flw f1, 8(x1); fcvt.w.s x1, f1)
TEST_CASE( 83, x1, 0x8000000000000000, la x1, tdat ; flw f1, 8(x1); fcvt.l.s x1, f1)
- TEST_CASE( 84, x1, 0xffffffff80000000, la x1, tdat_d; fld f1, 0(x1); fcvt.w.d x1, f1)
- TEST_CASE( 85, x1, 0x8000000000000000, la x1, tdat_d; fld f1, 0(x1); fcvt.l.d x1, f1)
+ TEST_CASE( 84, x1, 0x000000007fffffff, la x1, tdat_d; fld f1, 0(x1); fcvt.w.d x1, f1)
+ TEST_CASE( 85, x1, 0x7fffffffffffffff, la x1, tdat_d; fld f1, 0(x1); fcvt.l.d x1, f1)
TEST_CASE( 86, x1, 0xffffffff80000000, la x1, tdat_d; fld f1, 16(x1); fcvt.w.d x1, f1)
TEST_CASE( 87, x1, 0x8000000000000000, la x1, tdat_d; fld f1, 16(x1); fcvt.l.d x1, f1)