CMPLTSP
Single-Precision Floating-Point Compare for Less Than
4-38
Syntax
CMPLTSP (.unit)
src1, src2, dst
.unit = .S1 or .S2
Opcode map field used...
For operand type...
Unit
src1
src2
dst
sp
xsp
sint
.S1, .S2
Opcode
31
29 28 27
23 22
18 17
creg
z
dst
13 12
5
4
3
2
1
0
1 1 1 0 1 0
0
0
0
s
p
3
5
5
5
6
6
1
11
x
src1
src2
Description
This instruction compares
src1 to src2. If src1 is less than src2, 1 is written to
dst. Otherwise, 0 is written to dst.
Execution
if (cond)
{
if (
src1
t
src2) 1
→
dst
else 0
→
dst
}
else
nop
Special cases of inputs:
Input
Configuration Register
src1
src2
Output
UNORD
INVAL
NaN
don’t care
0
1
1
don’t care
NaN
0
1
1
NaN
NaN
0
1
1
+/–denormalized
+/–0
0
0
0
+/–0
+/–denormalized
0
0
0
+/–0
+/–0
0
0
0
+/–denormalized
+/–denormalized
0
0
0
+infinity
+infinity
0
0
0
+infinity
other
0
0
0
–infinity
–infinity
0
0
0
–infinity
other
1
0
0