From: Palmer Dabbelt Date: Thu, 18 Feb 2016 08:29:02 +0000 (-0800) Subject: What is the square root of 171? X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5731f746dd653e6eb629f8acf4d2f63dbdf1d08;p=riscv-tests.git What is the square root of 171? I get differnt answers on Rocket and Spike. The Spike answer matches my Intel machine. This fails when I compute both the single precision and double precision answer. --- diff --git a/isa/rv64uf/fdiv.S b/isa/rv64uf/fdiv.S index 4002e44..ddc7290 100644 --- a/isa/rv64uf/fdiv.S +++ b/isa/rv64uf/fdiv.S @@ -34,6 +34,10 @@ 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_S(17,, fsqrt.s, 1, 13.025515, 171.0); + TEST_FP_OP1_D(18, fsqrt.d, 1, 13.076696830622021, 171.0); + TEST_PASSFAIL RVTEST_CODE_END