x86 Assembly Language Reference Manual

Exit Print View

Updated: December 2014
 
 

3.3.2 Basic Arithmetic Instructions (Floating-Point)

The basic arithmetic instructions perform basic arithmetic operations on floating-point and integer operands.

Table 3-15  Basic Arithmetic Instructions (Floating-Point)
Oracle Solaris Mnemonic
Intel/AMD Mnemonic
Description
Notes
fabs
FABS
absolute value
fadd
FADD
add floating-point
faddp
FADDP
add floating-point and pop
fchs
FCHS
change sign
fdiv
FDIV
divide floating-point
fdivp
FDIVP
divide floating-point and pop
fdivr
FDIVR
divide floating-point reverse
fdivrp
FDIVRP
divide floating-point reverse and pop
fiadd
FIADD
add integer
fidiv
FIDIV
divide integer
fidivr
FIDIVR
divide integer reverse
fimul
FIMUL
multiply integer
fisub
FISUB
subtract integer
fisubr
FISUBR
subtract integer reverse
fmul
FMUL
multiply floating-point
fmulp
FMULP
multiply floating-point and pop
fprem
FPREM
partial remainder
fprem1
FPREM1
IEEE partial remainder
frndint
FRNDINT
round to integer
fscale
FSCALE
scale by power of two
fsqrt
FSQRT
square root
fsub
FSUB
subtract floating-point
fsubp
FSUBP
subtract floating-point and pop
fsubr
FSUBR
subtract floating-point reverse
fsubrp
FSUBRP
subtract floating-point reverse and pop
fxtract
FXTRACT
extract exponent and significand