From: Luke Kenneth Casson Leighton Date: Fri, 12 Jan 2024 16:54:33 +0000 (+0000) Subject: bug 676: more experimenting with maxloc assembler X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3635db0ba5821f894c048e288b35ad7ec7baafaf;p=openpower-isa.git bug 676: more experimenting with maxloc assembler --- diff --git a/src/openpower/decoder/isa/test_caller_svp64_maxloc.py b/src/openpower/decoder/isa/test_caller_svp64_maxloc.py index 2206477f..f0bdca6b 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,1,2]) + self.sv_maxloc([0,6,7,8]) def tst_sv_maxloc_2(self): self.sv_maxloc([3,4,1,5]) @@ -86,18 +86,19 @@ 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, -0x34" # 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)