The basic arithmetic instructions perform basic arithmetic operations on floating-point and integer operands.
Table 3–14 Basic Arithmetic Instructions (Floating-Point)
Solaris Mnemonic |
Intel/AMD Mnemonic |
Description |
Notes |
---|---|---|---|
FABS |
absolute value | ||
FADD |
add floating-point | ||
FADDP |
add floating-point and pop | ||
FCHS |
change sign | ||
FDIV |
divide floating-point | ||
FDIVP |
divide floating-point and pop | ||
FDIVR |
divide floating-point reverse | ||
FDIVRP |
divide floating-point reverse and pop | ||
FIADD |
add integer | ||
FIDIV |
divide integer | ||
FIDIVR |
divide integer reverse | ||
FIMUL |
multiply integer | ||
FISUB |
subtract integer | ||
FISUBR |
subtract integer reverse | ||
FMUL |
multiply floating-point | ||
FMULP |
multiply floating-point and pop | ||
FPREM |
partial remainder | ||
FPREM1 |
IEEE partial remainder | ||
FRNDINT |
round to integer | ||
FSCALE |
scale by power of two | ||
FSQRT |
square root | ||
FSUB |
subtract floating-point | ||
FSUBP |
subtract floating-point and pop | ||
FSUBR |
subtract floating-point reverse | ||
FSUBRP |
subtract floating-point reverse and pop | ||
FXTRACT |
extract exponent and significand |