From 253c885deb5564d9772b2a698842e47cd482abe6 Mon Sep 17 00:00:00 2001 From: "Paramjot (PJ) Oberoi" <60081609+pjsoberoi@users.noreply.github.com> Date: Fri, 22 Jul 2022 21:44:41 -0400 Subject: [PATCH] V850: fmaf.s, fnmfs.s Instructions Added support for the fmaf.s and fnmfs.s instructions. --- .../V850/data/languages/Instructions/Float.sinc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Ghidra/Processors/V850/data/languages/Instructions/Float.sinc b/Ghidra/Processors/V850/data/languages/Instructions/Float.sinc index 60f3b2bc15..9aa95a5b7b 100644 --- a/Ghidra/Processors/V850/data/languages/Instructions/Float.sinc +++ b/Ghidra/Processors/V850/data/languages/Instructions/Float.sinc @@ -294,6 +294,18 @@ R2731 = trunc(floor(R1115)); } +# FMAF.S reg1, reg2, reg3 - rrrrr111111RRRRR|wwwww10011100000 +:fmaf.s R0004, R1115, R2731 is R0004 & op0510=0x3F & R1115; R2731 & op1626=0b10011100000 +{ + R2731 = (R1115 f* R0004) f+ R2731; +} + +# FNMSF.S reg1, reg2, reg3 - rrrrr111111RRRRR|wwwww10011100110 +:fnmfs.s R0004, R1115, R2731 is R0004 & op0510=0x3F & R1115; R2731 & op1626=0b10011100110 +{ + R2731 = -1 f* ((R1115 f* R0004) f- R2731); +} + # MADDF.S reg1, reg2, reg3, reg4 - rrrrr111111RRRRR|wwwww101W00WWWW0 :maddf.s R0004, R1115, R2731, reg4 is R0004 & op0510=0x3F & R1115; R2731 & op2426=0b101 & op2122=0b00 & op1616=0 & reg4 {