# |
# dest r3=0b10 N Y
- isa = SVP64Asm(['sv.extsb/sm=~r3/m=r3 5.v, 9.v'
+ isa = SVP64Asm(['sv.extsb/sm=~r3/dm=r3 5.v, 9.v'
])
lst = list(isa)
print ("listing", lst)
def test_sv_extsw_intpred_dz(self):
# extsb, integer twin-pred mask: dest is r3 (0b01), zeroing on dest
- isa = SVP64Asm(['sv.extsb/m=r3/dz 5.v, 9.v'
+ isa = SVP64Asm(['sv.extsb/dm=r3/dz 5.v, 9.v'
])
lst = list(isa)
print ("listing", lst)
# adds, integer predicated mask r3=0b10
# 1 = 5 + 9 => not to be touched (skipped)
# 2 = 6 + 10 => 0x3334 = 0x2223+0x1111
- isa = SVP64Asm(['sv.add/m=r3 1.v, 5.v, 9.v'
+ isa = SVP64Asm(['sv.add/dm=r3 1.v, 5.v, 9.v'
])
lst = list(isa)
print ("listing", lst)
# adds, CR predicated mask CR4.eq = 1, CR5.eq = 0, invert (ne)
# 1 = 5 + 9 => not to be touched (skipped)
# 2 = 6 + 10 => 0x3334 = 0x2223+0x1111
- isa = SVP64Asm(['sv.add/m=ne 1.v, 5.v, 9.v'
+ isa = SVP64Asm(['sv.add/dm=ne 1.v, 5.v, 9.v'
])
lst = list(isa)
print ("listing", lst)
has_pmask = True
has_smask = True
# predicate mask (dest)
- if encmode.startswith("dm="):
+ elif encmode.startswith("dm="):
pme = encmode
- pmmode, pmask = decode_predicate(encmode[2:])
+ pmmode, pmask = decode_predicate(encmode[3:])
mmode = pmmode
has_pmask = True
# predicate mask (src, twin-pred)