aboutsummaryrefslogtreecommitdiffstats
path: root/arm/Asmexpand.ml
diff options
context:
space:
mode:
Diffstat (limited to 'arm/Asmexpand.ml')
-rw-r--r--arm/Asmexpand.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/arm/Asmexpand.ml b/arm/Asmexpand.ml
index 65bb19ee..a64645ca 100644
--- a/arm/Asmexpand.ml
+++ b/arm/Asmexpand.ml
@@ -292,7 +292,7 @@ let expand_builtin_inline name args res =
| "__builtin_clzll", [BA_splitlong(BA (IR ah), BA (IR al))], BR(IR res) ->
emit (Pclz (IR14, al));
emit (Pcmp (ah, SOimm _0));
- emit (Pmovite (TCeq, IR14, SOimm _0, SOreg IR14));
+ emit (Pmovite (TCeq, IR14, SOreg IR14, SOimm _0));
emit (Pclz (res, ah));
emit (Padd (res, res, SOreg IR14))
(* Float arithmetic *)