bug 676: use dest-mask on sv.addi to get scalar max into vector
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 10 Jan 2024 16:40:52 +0000 (16:40 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 10 Jan 2024 16:40:52 +0000 (16:40 +0000)
src/openpower/decoder/isa/caller.py
src/openpower/decoder/isa/test_caller_svp64_maxloc.py

index 57c8fea39fd77d4572fd8a9c1581ee4aa81286f0..8816cbd50cb4c1e57b6bf43b022d52f352dcbd32 100644 (file)
@@ -248,7 +248,7 @@ class GPR(dict):
         log("GPR getitem", attr, rnum)
         return self.regfile[rnum]
 
-    def dump(self, printout=True, heading="log"):
+    def dump(self, printout=True, heading="reg"):
         res = []
         for i in range(len(self)):
             res.append(self[i].value)
index e5d231894d3f1bd53b33f99147e89fa9985d6dc2..2206477f83b161f06452bc5d6374ecc7b77f11a4 100644 (file)
@@ -93,7 +93,7 @@ class DDFFirstTestCase(FHDLTestCase):
                 "mtcrf 128, 0",       # clear CR0
                 "sv.minmax./ff=lt/m=ge 4, *10, 4, 1", # uses r4 as accumulator
                 "sv.svstep/mr 3, 0, 6, 1",  # svstep: get vector dststep
-                "sv.addi/m=1<<r3 *10, 4, 0", # put r4 into vector at r10
+                "sv.addi/dm=1<<r3 *4, 4, 0", # put r4 into vector at r4
                 "sv.creqv *16,*16,*16", # set mask on already-tested
                 "bc 12,0, -0x44"            # CR0 lt bit clear, branch back
                 #"setvl 3,0,4,0,1,1",        # set MVL=4, VL=MIN(MVL,CTR)