SPA 5.0:
{@{!}Pg}
ICMP.cmp{.fmt}
Rd,Ra,Sb,Sc
{&req_6}
{?sched}
;
.cmp: { .F, .LT, .EQ, .LE, .GT, .NE, .GE, .T } Unsigned and signed comparisons
{ .LO, .LS, .HI, .HS, } Unsigned comparisons only
.fmt: { .U32, .S32* } Default compare format is signed .S32, except unsigned .LO, .LS, .HI, .HS
The following source combinations are allowed:
Sb(register), Sc(register)
Sb(constant with immediate address), Sc(register)
Sb(#ImmS20), Sc(register)
Sb(register), Sc(constant with immediate address)
Compare Sc with 0 with integer comparison operation and write Ra into destination if the comparison is true, otherwise write Sb into destination.
ICMP.LT R0,R1,R2,R4; ICMP.EQ R0,R1,R2,R4;