Skip to content

Commit 85c386c

Browse files
committed
CHB:ARM: add conditional expression for CMN
1 parent 0a72636 commit 85c386c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CodeHawk/CHB/bchlibarm32/bCHARMConditionalExpr.ml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,10 @@ let cc_expr
295295
| (CompareNegative (ACCAlways, x, y), ACCUnsignedHigher) ->
296296
(XOp (XGt, [XOp (XPlus, [vu x; vu y]); max32_constant_expr]), [x; y])
297297

298+
| (CompareNegative (ACCAlways, x, y), ACCCarryClear) ->
299+
(XOp (XLOr, [XOp (XLt, [XOp (XPlus, [v x; v y]); zero_constant_expr]);
300+
XOp (XGe, [v x; zero_constant_expr])]), [x; y])
301+
298302
(* --------------------------------------------------------- Subtract --- *)
299303

300304
| (Subtract (true, ACCAlways, _, x, y, _, _), ACCEqual) ->

0 commit comments

Comments
 (0)