From: Luke Kenneth Casson Leighton Date: Thu, 8 Jul 2021 20:46:56 +0000 (+0100) Subject: whoops sv.lfs registers must be even numbers (match SVP6 EXTRA2 encoding) X-Git-Tag: xlen-bcd~325 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=992b26f716ab21a39f72e4be463cd2031152a07e;p=openpower-isa.git whoops sv.lfs registers must be even numbers (match SVP6 EXTRA2 encoding) --- diff --git a/src/openpower/decoder/isa/test_caller_svp64_fp.py b/src/openpower/decoder/isa/test_caller_svp64_fp.py index 830d472e..96b0199d 100644 --- a/src/openpower/decoder/isa/test_caller_svp64_fp.py +++ b/src/openpower/decoder/isa/test_caller_svp64_fp.py @@ -60,7 +60,7 @@ class DecoderTestCase(FHDLTestCase): def test_fp_single_ldst(self): """>>> lst = ["sv.lfsx 0.v, 0, 4.v", # load fp 1/2 from mem 0/8 "sv.stfsu 0.v, 16(4.v)", # store fp 1/2, update RA *twice* - "sv.lfs 3.v, 0(4.v)", # re-load from UPDATED r4/r5 + "sv.lfs 2.v, 0(4.v)", # re-load from UPDATED r4/r5 ] This is quite an involved (deceptively simple looking) test. @@ -93,7 +93,7 @@ class DecoderTestCase(FHDLTestCase): """ lst = SVP64Asm(["sv.lfsx 0.v, 0, 4.v", "sv.stfsu 0.v, 16(4.v)", - "sv.lfs 3.v, 0(4.v)", + "sv.lfs 2.v, 0(4.v)", ]) lst = list(lst) @@ -128,8 +128,8 @@ class DecoderTestCase(FHDLTestCase): self.assertEqual(sim.gpr(5), SelectableInt(0x18, 64)) self.assertEqual(sim.fpr(0), SelectableInt(0x4040266660000000, 64)) self.assertEqual(sim.fpr(1), SelectableInt(0xC004000000000000, 64)) - self.assertEqual(sim.fpr(3), SelectableInt(0x4040266660000000, 64)) - self.assertEqual(sim.fpr(4), SelectableInt(0xC004000000000000, 64)) + self.assertEqual(sim.fpr(2), SelectableInt(0x4040266660000000, 64)) + self.assertEqual(sim.fpr(3), SelectableInt(0xC004000000000000, 64)) def test_sv_fpadd(self): """>>> lst = ["sv.fadds 6.v, 2.v, 4.v"