From 1df36c9a672845ad397b337eccefc6a74ca448cc Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 24 Jun 2021 16:09:25 +0100 Subject: [PATCH] whoops fix rounding error in mapreduce unit test --- src/openpower/decoder/isa/test_caller_svp64_mapreduce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpower/decoder/isa/test_caller_svp64_mapreduce.py b/src/openpower/decoder/isa/test_caller_svp64_mapreduce.py index c5b57877..c30e41be 100644 --- a/src/openpower/decoder/isa/test_caller_svp64_mapreduce.py +++ b/src/openpower/decoder/isa/test_caller_svp64_mapreduce.py @@ -166,7 +166,7 @@ class DecoderTestCase(FHDLTestCase): sim = self.run_tst_program(program, svstate=svstate, initial_fprs=fprs) # answer should be 7.0 * -9.8 * -9.8 * 2.0 = 1344.56 - self.assertEqual(sim.fpr(1), SelectableInt(0x4095023d60000000, 64)) + self.assertEqual(sim.fpr(1), SelectableInt(0x4095023d20000000, 64)) # these should not have been changed self.assertEqual(sim.fpr(2), SelectableInt(0xC02399999999999A, 64)) self.assertEqual(sim.fpr(3), SelectableInt(0xC02399999999999A, 64)) -- 2.30.2