diff options
author | Andrew Waterman <andrew@sifive.com> | 2017-02-01 23:18:00 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2017-02-01 23:18:00 -0800 |
commit | e9951fc39dff4f4030cdfaaf479b936ae37799e2 (patch) | |
tree | 9a2f71ca521b703eccaad42eaf500c0aa1414b67 /isa/rv64uf/fcmp.S | |
parent | 367a13f0c2bd8d6e5a5ed71dbd3c9d46c6e21c3c (diff) | |
download | riscv-tests-e9951fc39dff4f4030cdfaaf479b936ae37799e2.zip riscv-tests-e9951fc39dff4f4030cdfaaf479b936ae37799e2.tar.gz riscv-tests-e9951fc39dff4f4030cdfaaf479b936ae37799e2.tar.bz2 |
Use NaN macros
Diffstat (limited to 'isa/rv64uf/fcmp.S')
-rw-r--r-- | isa/rv64uf/fcmp.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/isa/rv64uf/fcmp.S b/isa/rv64uf/fcmp.S index e77ca52..2d7fcc2 100644 --- a/isa/rv64uf/fcmp.S +++ b/isa/rv64uf/fcmp.S @@ -28,15 +28,15 @@ RVTEST_CODE_BEGIN # Only sNaN should signal invalid for feq. TEST_FP_CMP_OP_S( 8, feq.s, 0x00, 0, NaN, 0) TEST_FP_CMP_OP_S( 9, feq.s, 0x00, 0, NaN, NaN) - TEST_FP_CMP_OP_S(10, feq.s, 0x10, 0, 0f:7f800001, 0) + TEST_FP_CMP_OP_S(10, feq.s, 0x10, 0, sNaNf, 0) # qNaN should signal invalid for fle/flt. TEST_FP_CMP_OP_S(11, flt.s, 0x10, 0, NaN, 0) TEST_FP_CMP_OP_S(12, flt.s, 0x10, 0, NaN, NaN) - TEST_FP_CMP_OP_S(13, flt.s, 0x10, 0, 0f:7f800001, 0) + TEST_FP_CMP_OP_S(13, flt.s, 0x10, 0, sNaNf, 0) TEST_FP_CMP_OP_S(14, fle.s, 0x10, 0, NaN, 0) TEST_FP_CMP_OP_S(15, fle.s, 0x10, 0, NaN, NaN) - TEST_FP_CMP_OP_S(16, fle.s, 0x10, 0, 0f:7f800001, 0) + TEST_FP_CMP_OP_S(16, fle.s, 0x10, 0, sNaNf, 0) TEST_PASSFAIL |