pysvp64asm: support shadd/shadduw instructions
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 25 Oct 2022 18:34:51 +0000 (21:34 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:15 +0000 (19:51 +0100)
src/openpower/sv/trans/svp64.py

index 6326683823db2455e2e56de290c9c8c544e34b5f..7587d85625c524fed1941cccceeff92376233ce1 100644 (file)
@@ -591,6 +591,10 @@ def va_form(fields, XO):
     _insn("dsld.", PO=31, XO=0b00111001, Rc=1),
     _insn("dsrd",  PO=31, XO=0b10111001, Rc=0),
     _insn("dsrd.", PO=31, XO=0b10111001, Rc=1),
+    _insn("shadd",  PO=22, XO=0b01101110, Rc=0),
+    _insn("shadd.", PO=22, XO=0b01101110, Rc=1),
+    _insn("shadduw",  PO=22, XO=0b11101110, Rc=0),
+    _insn("shadduw.", PO=22, XO=0b11101110, Rc=1),
 )
 def Z23(fields, PO, XO, Rc):
     # XXX WARNING THESE ARE NOT APPROVED BY OPF ISA WG