From: Luke Kenneth Casson Leighton Date: Sun, 12 Mar 2023 15:03:04 +0000 (+0000) Subject: change target registers in test_caller_svp64_chacha20.py to match X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98b48c470523c5dd0c4981a25b843658d0ea704d;p=openpower-isa.git change target registers in test_caller_svp64_chacha20.py to match those in xchacha20_svp64.s --- diff --git a/src/openpower/decoder/isa/test_caller_svp64_chacha20.py b/src/openpower/decoder/isa/test_caller_svp64_chacha20.py index b576a75c..4d563628 100644 --- a/src/openpower/decoder/isa/test_caller_svp64_chacha20.py +++ b/src/openpower/decoder/isa/test_caller_svp64_chacha20.py @@ -107,13 +107,14 @@ class SVSTATETestCase(FHDLTestCase): """ nrounds = 2 # should be 10 for full algorithm - block = 64 # register for block of 16 - vl = 17 # copy of VL placed in here - SHAPE0 = 22 - SHAPE1 = 30 - SHAPE2 = 38 - shifts = 18 # registers for 4 32-bit shift amounts - ctr = 16 # register for CTR + + block = 24 # register for block of 16 + vl = 22 # copy of VL placed in here + SHAPE0 = 8 + SHAPE1 = 12 + SHAPE2 = 16 + shifts = 20 # registers for 4 32-bit shift amounts + ctr = 7 # register for CTR isa = SVP64Asm([ # set up VL=32 vertical-first, and SVSHAPEs 0-2 @@ -224,8 +225,8 @@ class SVSTATETestCase(FHDLTestCase): self.assertEqual(sim.svstate.mi2, 2) self.assertEqual(sim.svstate.mo0, 2) self.assertEqual(sim.svstate.mo1, 0) - self.assertEqual(SVSHAPE0.svgpr, 22) - self.assertEqual(SVSHAPE1.svgpr, 30) + #self.assertEqual(SVSHAPE0.svgpr, 22) + #self.assertEqual(SVSHAPE1.svgpr, 30) def run_tst_program(self, prog, initial_regs=None, svstate=None):