@@ -886,9 +886,9 @@ module ToIR = struct
886
886
(* undefined for SHL and SHR instructions where the count is greater than
887
887
or equal to the size (in bits) of the destination operand *)
888
888
match st with
889
- | LSHIFT -> Bil. (Cast (LOW , !! bool_t, var old lsr size - count))
889
+ | LSHIFT -> Bil. (Cast (LOW , !! bool_t, var old lsr ( size - count) ))
890
890
| RSHIFT | ARSHIFT ->
891
- Bil. (Cast (HIGH , !! bool_t, var old lsl size - count))
891
+ Bil. (Cast (HIGH , !! bool_t, var old lsl ( size - count) ))
892
892
| _ -> failwith " impossible"
893
893
in
894
894
Bil. [
@@ -917,8 +917,8 @@ module ToIR = struct
917
917
let count_mask = Bil. (size - int_exp 1 s') in
918
918
let e_count = Bil. (op2e s count land count_mask) in
919
919
let new_cf = match st with
920
- | LSHIFT -> Bil. (Cast (LOW , !! bool_t, var was lsr size - e_count))
921
- | RSHIFT -> Bil. (Cast (HIGH , !! bool_t, var was lsl size - e_count))
920
+ | LSHIFT -> Bil. (Cast (LOW , !! bool_t, var was lsr ( size - e_count) ))
921
+ | RSHIFT -> Bil. (Cast (HIGH , !! bool_t, var was lsl ( size - e_count) ))
922
922
| _ -> disfailwith " impossible" in
923
923
let new_of = Bil. (Cast (HIGH , !! bool_t, (var was lxor e_dst))) in
924
924
let unk_of =
0 commit comments