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 code | MIPS instruction |
a + b |
add.ps |
a - b |
sub.ps |
-a |
neg.ps |
a * b |
mul.ps |
a * b + c |
madd.ps |
a * b - c |
msub.ps |
-(a * b + c) |
nmadd.ps |
-(a * b - c) |
nmsub.ps |
x ? a : b |
movn.ps /movz.ps |
Note that the multiply-accumulate instructions can be disabled using the command-line option -mno-fused-madd
.
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gcc/Paired_002dSingle-Arithmetic.html