SUB(U)
Signed or Unsigned Integer Subtraction Without Saturation
3-128
Syntax
SUB (.unit)
src1, src2, dst
or
SUBU (.unit)
src1, src2, dst
or
SUB (.D1 or .D2)
src2, src1, dst
.unit = .L1, .L2, .S1, .S2
Opcode map field used... For operand type...
Unit
Opfield
Mnemonic
src1
src2
dst
sint
xsint
sint
.L1, .L2
0000111
SUB
src1
src2
dst
xsint
sint
sint
.L1, .L2
0010111
SUB
src1
src2
dst
sint
xsint
slong
.L1, .L2
0100111
SUB
src1
src2
dst
xsint
sint
slong
.L1, .L2
0110111
SUB
src1
src2
dst
uint
xuint
ulong
.L1, .L2
0101111
SUBU
src1
src2
dst
xuint
uint
ulong
.L1, .L2
0111111
SUBU
src1
src2
dst
scst5
xsint
sint
.L1, .L2
0000110
SUB
src1
src2
dst
scst5
slong
slong
.L1, .L2
010010
0
SUB
src1
src2
dst
sint
xsint
sint
.S1, .S2
010111
SUB
src1
src2
dst
scst5
xsint
sint
.S1, .S2
010110
SUB