summaryrefslogtreecommitdiff
path: root/arch/arm64/il.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/il.cpp')
-rw-r--r--arch/arm64/il.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm64/il.cpp b/arch/arm64/il.cpp
index d3c3e943..13ff0d2a 100644
--- a/arch/arm64/il.cpp
+++ b/arch/arm64/il.cpp
@@ -1447,9 +1447,9 @@ bool GetLowLevelILForInstruction(
ILSETREG_O(operand1, il.Neg(REGSZ_O(operand1), ILREG_O(operand3))));
break;
case ARM64_CSET:
- GenIfElse(il, GetCondition(il, operand2.cond),
- ILSETREG_O(operand1, il.Const(REGSZ_O(operand1), 1)),
- ILSETREG_O(operand1, il.Const(REGSZ_O(operand1), 0)));
+ il.AddInstruction(
+ ILSETREG_O(operand1,
+ il.BoolToInt(REGSZ_O(operand1), GetCondition(il, operand2.cond))));
break;
case ARM64_CSETM:
GenIfElse(il, GetCondition(il, operand2.cond),