FCMP : FP32 Compare to Zero and Select Source

Format:

SPA 5.0:
        {@{!}Pg}   FCMP{.cmp}{.FTZ}   Rd,Ra,Sb,Sc   {&req_6}   {?sched}   ;   

  .cmp:   { .F,   .LT,  .EQ,  .LE,  .GT*,  .NE,  .GE,  .NUM,    FP32 numeric comparisons
            .NAN, .LTU, .EQU, .LEU, .GTU,  .NEU, .GEU, .T   }   FP32 numeric or Unordered comparisons

 .FTZ:       Denorm Sc value is flushed to sign preserving 0.0.

The following Sb,Sc combinations are allowed:
    Sb(register),                         Sc(register)
    Sb(constant with immediate address),  Sc(register)
    Sb(#Imm20<<12),                       Sc(register)
    Sb(register),                         Sc(constant with immediate address)

Description:

Compare Sc with 0.0 using the specified FP32 comparison operation. Write Ra into destination if the comparison is true, or Sb if the comparison yields false.

In the comparison, -0.0 is equal to +0.0. This rule is unrelated to .FTZ.

Examples:

FCMP R0,R1,R2,R4;

Back to Index of Instructions