aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Schmidt <colins@berkeley.edu>2016-02-29 16:55:12 -0800
committerColin Schmidt <colins@berkeley.edu>2016-02-29 16:55:12 -0800
commitf4f57d572fb547e6202e16079afcec51208f3085 (patch)
treefdc5a7cacc6b07b362c4ccda9797f3c7002d4270
parentfb9e416be46e8018c8333553136b91401bdd74a6 (diff)
parent5634d6ce8a5d7023b14da86bdaab6a5f10a5440c (diff)
downloadriscv-tests-f4f57d572fb547e6202e16079afcec51208f3085.zip
riscv-tests-f4f57d572fb547e6202e16079afcec51208f3085.tar.gz
riscv-tests-f4f57d572fb547e6202e16079afcec51208f3085.tar.bz2
Merge pull request #8 from riscv/sqrt-171
What is the square root of 171?
-rw-r--r--isa/rv64uf/fdiv.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/isa/rv64uf/fdiv.S b/isa/rv64uf/fdiv.S
index 4002e44..688f635 100644
--- a/isa/rv64uf/fdiv.S
+++ b/isa/rv64uf/fdiv.S
@@ -34,6 +34,11 @@ RVTEST_CODE_BEGIN
TEST_FP_OP1_S_DWORD_RESULT(15, fsqrt.s, 0x10, 0x7FC00000, -1.0 );
TEST_FP_OP1_D_DWORD_RESULT(16, fsqrt.d, 0x10, 0x7FF8000000000000, -1.0 );
+ TEST_FP_OP1_S(17, fsqrt.s, 1, 13.076696, 171.0);
+ TEST_FP_OP1_D(18, fsqrt.d, 1, 13.076696830622021, 171.0);
+
+ TEST_FP_OP1_D(19, fsqrt.d, 1,0.00040099251863345283320230749702, 1.60795e-7);
+
TEST_PASSFAIL
RVTEST_CODE_END