ps_sub

Paired Single Subtract

ps_sub FRT, FRA, FRB

Subtracts two paired singles.

Encoding

Binary Layout
4
0:5
FRT
6:10
FRA
11:15
FRB
16:20
00000
21:25
20
26:30
Rc
31
 
Format A-form
Opcode 0x10000028

Operands

  • FRT
    Target
  • FRA
    Src A
  • FRB
    Src B

Example

ps_sub f1, f2, f3

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. Subtracts two pairs of single-precision floating-point values element-wise, storing the result in FRT. Each of the two single-precision elements in FRB is subtracted from FRA independently. May set FPSCR status flags if exceptions occur.

Operation

FPR[FRT].upper ← FPR[FRA].upper - FPR[FRB].upper
FPR[FRT].lower ← FPR[FRA].lower - FPR[FRB].lower