From 969d82eb165a446ca71b427dca2d8229ba9f0e1f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 23 Jul 2021 14:16:59 +0100 Subject: [PATCH] add DCT variant of twin MUL-ADD. actually an add and a MUL-SUB --- openpower/isa/svfparith.mdwn | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/openpower/isa/svfparith.mdwn b/openpower/isa/svfparith.mdwn index 46591332..bebb3be4 100644 --- a/openpower/isa/svfparith.mdwn +++ b/openpower/isa/svfparith.mdwn @@ -159,7 +159,26 @@ Special Registers Altered: VXSNAN VXISI CR1 (if Rc=1) -# Floating Multiply-Add FFT/DCT [Single] +# Floating Twin Multiply-Add DCT [Single] + +A-Form + +* fdmadds FRT,FRA,FRC,FRB (Rc=0) +* fdmadds. FRT,FRA,FRC,FRB (Rc=1) + +Pseudo-code: + + FRT <- FPADD32(FRA, FRB) + FRS <- FPMULADD32(FRA, FRC, FRB, -1, 1) + +Special Registers Altered: + + FPRF FR FI + FX OX UX XX + VXSNAN VXISI VXIMZ + CR1 (if Rc=1) + +# Floating Multiply-Add FFT [Single] A-Form @@ -178,7 +197,7 @@ Special Registers Altered: VXSNAN VXISI VXIMZ CR1 (if Rc=1) -# Floating Multiply-Sub FFT/DCT [Single] +# Floating Multiply-Sub FFT [Single] A-Form @@ -197,7 +216,7 @@ Special Registers Altered: VXSNAN VXISI VXIMZ CR1 (if Rc=1) -# Floating Negative Multiply-Add FFT/DCT [Single] +# Floating Negative Multiply-Add FFT [Single] A-Form @@ -216,7 +235,7 @@ Special Registers Altered: VXSNAN VXISI VXIMZ CR1 (if Rc=1) -# Floating Negative Multiply-Sub FFT/DCT [Single] +# Floating Negative Multiply-Sub FFT [Single] A-Form -- 2.30.2