[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
6.56.11.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 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
.
This document was generated on October 19, 2013 using texi2html 5.0.