From 4e34084c76d57931e865b54f244cfc12878778ac Mon Sep 17 00:00:00 2001
From: clc5q <clc5q@git.zephyr-software.com>
Date: Wed, 28 Feb 2018 19:43:20 +0000
Subject: [PATCH] Handle 4-operand AMD Fused-multiply-add opcodes.

Former-commit-id: e766acacc41e9aa5182d85ae1024d337934c5107
---
 include/interfaces/STARSTypes.h | 2 +-
 src/base/SMPInstr.cpp           | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/interfaces/STARSTypes.h b/include/interfaces/STARSTypes.h
index 8b3ee948..7c0de7e4 100644
--- a/include/interfaces/STARSTypes.h
+++ b/include/interfaces/STARSTypes.h
@@ -45,7 +45,7 @@
 #include <cstdint>
 
 #ifndef IDA_SDK_VERSION
-#define IDA_SDK_VERSION 700
+#define IDA_SDK_VERSION 710
 #endif
 
 // Mimic the MAXSTR constant from IDA Pro.
diff --git a/src/base/SMPInstr.cpp b/src/base/SMPInstr.cpp
index 56ba7550..3bb14320 100644
--- a/src/base/SMPInstr.cpp
+++ b/src/base/SMPInstr.cpp
@@ -18181,6 +18181,7 @@ bool SMPInstr::BuildMultAddOrSub4OpndRTL(SMPoperator BinaryOp1, SMPoperator Bina
 				RightRT->SetOperator(BinaryOp2);
 				TempRT->SetRightTree(RightRT);
 				RightRightRT->SetOperator(BinaryOp1);
+				RightRT->SetRightTree(RightRightRT);
 			}
 			else if (DestFound) {
 				;
-- 
GitLab