ps_madd
Paired Single Multiply-Add
ps_madd FRT, FRA, FRC, FRB
Multiply-Add on paired singles.
Encoding
Binary Layout
4
0:5
FRT
6:10
FRA
11:15
FRB
16:20
FRC
21:25
29
26:30
Rc
31
Operands
-
FRT
Target -
FRA
Src A -
FRC
Src C -
FRB
Src B
Example
ps_madd f1, f2, f4, f3
Related
More in Paired-Single Floating-Point
Reference
Not in Power ISA v3.1C
Description
Not in Power ISA v3.1C: this is a PowerPC paired-single instruction (binutils' PPCPS group), and the encoding shown is binutils' (opcodes/ppc-opc.c), not the manual's. Performs multiply-add on two pairs of single-precision floating-point values element-wise, computing FRA × FRC + FRB and storing the result in FRT. All three source registers contribute to the operation, with each element pair computed independently. May set FPSCR status flags if exceptions occur.
Operation
FPR[FRT].upper ← FPR[FRA].upper × FPR[FRC].upper + FPR[FRB].upper
FPR[FRT].lower ← FPR[FRA].lower × FPR[FRC].lower + FPR[FRB].lower