projects
/
riscv-tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0c58c7f
)
Use new NaN handling for conversions to integer
author
Andrew Waterman
<waterman@cs.berkeley.edu>
Wed, 13 Jan 2016 00:16:58 +0000
(16:16 -0800)
committer
Andrew Waterman
<waterman@cs.berkeley.edu>
Wed, 13 Jan 2016 00:16:58 +0000
(16:16 -0800)
isa/rv64uf/fcvt_w.S
patch
|
blob
|
history
diff --git
a/isa/rv64uf/fcvt_w.S
b/isa/rv64uf/fcvt_w.S
index 7382188dbbf6170fcc030be49d43cdc497279c1c..e9744b22acdd6739af241b276972e8faa24fbd3b 100644
(file)
--- 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_FP_INT_OP_D(79, fcvt.lu.d, 0x00, 3000000000, 3e9, rtz);
# test negative NaN, negative infinity conversion
- TEST_CASE( 80, x1, 0x
ffffffff80000000
, la x1, tdat ; flw f1, 0(x1); fcvt.w.s x1, f1)
- TEST_CASE( 81, x1, 0x
8000000000000000
, la x1, tdat ; flw f1, 0(x1); fcvt.l.s x1, f1)
+ TEST_CASE( 80, x1, 0x
000000007fffffff
, la x1, tdat ; flw f1, 0(x1); fcvt.w.s x1, f1)
+ TEST_CASE( 81, x1, 0x
7fffffffffffffff
, 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( 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, 0x
ffffffff80000000
, la x1, tdat_d; fld f1, 0(x1); fcvt.w.d x1, f1)
- TEST_CASE( 85, x1, 0x
8000000000000000
, la x1, tdat_d; fld f1, 0(x1); fcvt.l.d x1, f1)
+ TEST_CASE( 84, x1, 0x
000000007fffffff
, la x1, tdat_d; fld f1, 0(x1); fcvt.w.d x1, f1)
+ TEST_CASE( 85, x1, 0x
7fffffffffffffff
, 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)
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)