From 6d7ddfe3085beb19cffe5d9c279642b2ac7960ed Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 13 Jan 2024 21:33:48 +0000 Subject: [PATCH] bug 676: closer to working maxloc. a lot of cr ops --- .../decoder/isa/test_caller_svp64_maxloc.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/openpower/decoder/isa/test_caller_svp64_maxloc.py b/src/openpower/decoder/isa/test_caller_svp64_maxloc.py index f0bdca6b..831472cf 100644 --- a/src/openpower/decoder/isa/test_caller_svp64_maxloc.py +++ b/src/openpower/decoder/isa/test_caller_svp64_maxloc.py @@ -55,7 +55,7 @@ class DDFFirstTestCase(FHDLTestCase): self.assertEqual(sim.gpr(i), SelectableInt(expected[i], 64)) def test_sv_maxloc_1(self): - self.sv_maxloc([0,6,7,8]) + self.sv_maxloc([2,3,0,7]) def tst_sv_maxloc_2(self): self.sv_maxloc([3,4,1,5]) @@ -86,19 +86,21 @@ class DDFFirstTestCase(FHDLTestCase): #"addi 6, 0, 0", # initialise r6 to zero #"sv.lbzu/pi/dw=8 *6, 1(4)", # should be /lf here as well # while (ir4 (and dec CTR) + "bc 12,0, -0x48" # CR0 lt bit clear, branch back + #"setvl 3,0,4,0,1,1", # set MVL=4, VL=MIN(MVL,CTR) + #"sv.bc/m=ge 16, 19, -0x3c", # until r10[i]>r4 (and dec CTR) ]) lst = list(lst) -- 2.30.2