Next: , Up: MIPS Loongson Built-in Functions   [Contents][Index]


6.59.15.1 Paired-Single Arithmetic

The table below lists the v2sf operations for which hardware support exists. a, b and c are v2sf values and x is an integral value.

C codeMIPS instruction
a + badd.ps
a - bsub.ps
-aneg.ps
a * bmul.ps
a * b + cmadd.ps
a * b - cmsub.ps
-(a * b + c)nmadd.ps
-(a * b - c)nmsub.ps
x ? a : bmovn.ps/movz.ps

Note that the multiply-accumulate instructions can be disabled using the command-line option -mno-fused-madd.