
Sun Microelectronics
218
UltraSPARC User’s Manual
Description:
Four 16-bit or two 32-bit fixed-point values in rs1 and rs2 are compared. The 4-bit
or 2-bit results are stored in the corresponding least significant bits of the integer
rd register. Bit zero of rd corresponds to the least significant 16-bit or 32-bit graph-
ics compare result.
For FCMPGT, each bit in the result is set if the corresponding value in rs1 is
greater than the value in rs2. Less-than comparisons are made by swapping the
operands.
For FCMPLE, each bit in the result is set if the corresponding value in rs1 is less
than or equal to the value in rs2. Greater-than-or-equal comparisons are made by
swapping the operands.
For FCMPEQ, each bit in the result is set if the corresponding value in rs1 is equal
to the value in rs2.
For FCMPNE, each bit in the result is set if the corresponding value in rs1 is not
equal to the value in rs2.
Traps:
fp_disabled
fcmple32
freg
rs1
,
freg
rs2
,
reg
r
d
fcmpne16
freg
rs1
,
freg
rs2
,
reg
r
d
fcmpne32
freg
rs1
,
freg
rs2
,
reg
r
d
fcmpeq16
freg
rs1
,
freg
rs2
,
reg
r
d
fcmpeq32
freg
rs1
,
freg
rs2
,
reg
r
d
Suggested Assembly Language Syntax
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com