projects
/
riscv-tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
fb9e416
)
Merge pull request #8 from riscv/sqrt-171
author
Colin Schmidt
<colins@berkeley.edu>
Tue, 1 Mar 2016 00:55:12 +0000
(16:55 -0800)
committer
Colin Schmidt
<colins@berkeley.edu>
Tue, 1 Mar 2016 00:55:12 +0000
(16:55 -0800)
What is the square root of 171?
isa/rv64uf/fdiv.S
patch
|
blob
|
history
diff --git
a/isa/rv64uf/fdiv.S
b/isa/rv64uf/fdiv.S
index 4002e448e0cc62f385844e8c6422230c1d38acc8..688f6355d72326f7477e87f26d877495b1043427 100644
(file)
--- 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