Index: src/arm/simulator-arm.cc |
diff --git a/src/arm/simulator-arm.cc b/src/arm/simulator-arm.cc |
index f94c3948e40ae3df99498def6f2578e0e56bcbb4..a057de58ccf843da9f38ae581673063b71ed3af4 100644 |
--- a/src/arm/simulator-arm.cc |
+++ b/src/arm/simulator-arm.cc |
@@ -2366,7 +2366,7 @@ void Simulator::DecodeType01(Instruction* instr) { |
// Format(instr, "cmn'cond 'rn, 'imm"); |
alu_out = rn_val + shifter_operand; |
SetNZFlags(alu_out); |
- SetCFlag(!CarryFrom(rn_val, shifter_operand)); |
+ SetCFlag(CarryFrom(rn_val, shifter_operand)); |
SetVFlag(OverflowFrom(alu_out, rn_val, shifter_operand, true)); |
} else { |
// Other instructions matching this pattern are handled in the |