Skip to content

Commit 6102ba5

Browse files
committed
ARM:add conditional expr for RSB-PL
1 parent d347cdd commit 6102ba5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CodeHawk/CHB/bchlibarm32/bCHARMConditionalExpr.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,11 @@ let cc_expr
313313
| (Move (true, ACCAlways, _, y, _, _), ACCNotEqual) ->
314314
(XOp (XNe, [v y; zero_constant_expr]), [y])
315315

316+
(* ------------------------------------------------- Reverse Subtract --- *)
317+
318+
| (ReverseSubtract (true, ACCAlways, _, x, y, _), ACCNonNegative) ->
319+
(XOp (XGe, [XOp (XMinus, [v y; v x]); zero_constant_expr]), [x; y])
320+
316321
(* --------------------------------------------------------- Subtract --- *)
317322

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

0 commit comments

Comments
 (0)