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>
Tue, 30 Jan 2024 20:56:36 +0000 (20:56 +0000)
src/openpower/decoder/isa/caller.py
src/openpower/decoder/isa/test_caller_svp64_maxloc.py

index 35376505ef4acee276bc28a66d6a3985fdb5566f..589ad634d133e1476b86fad176cf324b6c663371 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)