0001001110-,ALU,OP_MINMAX,RA,RB,NONE,RT,NONE,CR0,0,0,ZERO,0,NONE,0,0,0,0,0,0,RC,0,0,minu,X,,1,unofficial until submitted and approved/renumbered by the opf isa wg
1101001110-,ALU,OP_AVGADD,RA,RB,NONE,RT,NONE,CR0,0,0,ZERO,0,NONE,0,0,0,0,0,0,RC,0,0,avgadd,X,,1,unofficial until submitted and approved/renumbered by the opf isa wg
1011110110-,ALU,OP_ABSDIFF,RA,RB,NONE,RT,NONE,CR0,0,0,ZERO,0,NONE,0,0,0,0,0,0,RC,0,0,absdu,X,,1,unofficial until submitted and approved/renumbered by the opf isa wg
+1001110110-,ALU,OP_ABSDIFF,RA,RB,NONE,RT,NONE,CR0,0,0,ZERO,0,NONE,0,0,0,0,0,0,RC,0,0,absds,X,,1,unofficial until submitted and approved/renumbered by the opf isa wg
1111110110-,ALU,OP_ABSADD,RA,RB,RT,RT,NONE,CR0,0,0,ZERO,0,NONE,0,0,0,0,0,0,RC,0,0,absdacu,X,,1,unofficial until submitted and approved/renumbered by the opf isa wg
0111110110-,ALU,OP_ABSADD,RA,RB,RT,RT,NONE,CR0,0,0,ZERO,0,NONE,0,0,0,0,0,0,RC,0,0,absdacs,X,,1,unofficial until submitted and approved/renumbered by the opf isa wg
e.intregs[3] = 0xffffffffffffffff
self.add_case(Program(lst, bigendian), initial_regs, expected=e)
+ def case_0_absds(self):
+ lst = ["absds 3, 1, 2"]
+ lst = list(SVP64Asm(lst, bigendian))
+
+ initial_regs = [0] * 32
+ initial_regs[1] = 0x1
+ initial_regs[2] = 0x2
+ e = ExpectedState(pc=4)
+ e.intregs[1] = 0x1
+ e.intregs[2] = 0x2
+ e.intregs[3] = 0x1
+ self.add_case(Program(lst, bigendian), initial_regs, expected=e)
+
+ def case_1_absds(self):
+ lst = ["absds 3, 1, 2"]
+ lst = list(SVP64Asm(lst, bigendian))
+
+ initial_regs = [0] * 32
+ initial_regs[1] = 0xffffffffffffffff
+ initial_regs[2] = 0x2
+ e = ExpectedState(pc=4)
+ e.intregs[1] = 0xffffffffffffffff
+ e.intregs[2] = 0x2
+ e.intregs[3] = 0x3
+ self.add_case(Program(lst, bigendian), initial_regs, expected=e)
+
def case_0_absdu(self):
lst = ["absdu 3, 1, 2"]
lst = list(SVP64Asm(lst, bigendian))
e = ExpectedState(pc=4)
e.intregs[1] = 0xffffffffffffffff
e.intregs[2] = 0x2
- e.intregs[3] = 0x3
+ e.intregs[3] = 0xfffffffffffffffd
self.add_case(Program(lst, bigendian), initial_regs, expected=e)
def case_2_absdu(self):
e = ExpectedState(pc=4)
e.intregs[1] = 0x2
e.intregs[2] = 0xffffffffffffffff
- e.intregs[3] = 0x3
+ e.intregs[3] = 0xfffffffffffffffd
self.add_case(Program(lst, bigendian), initial_regs, expected=e)
def case_0_absdacu(self):