Skip to content

Commit

Permalink
tiny change
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanburen committed Dec 23, 2024
1 parent 31b1e9d commit 3bb4134
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/cmm_helpers.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1337,6 +1337,7 @@ let zero_extend ~bits e dbg =
| (Sixteen_signed | Sixteen_unsigned), 16 -> load Sixteen_unsigned
| (Thirtytwo_signed | Thirtytwo_unsigned), 32 ->
load Thirtytwo_unsigned
| Sixtyfour, 64 -> e
| _ -> zero_extend_via_mask e)
| e -> (
match get_const_bitmask e with
Expand Down Expand Up @@ -1370,6 +1371,7 @@ let sign_extend ~bits e dbg =
| (Byte_signed | Byte_unsigned), 8 -> load Byte_signed
| (Sixteen_signed | Sixteen_unsigned), 16 -> load Sixteen_signed
| (Thirtytwo_signed | Thirtytwo_unsigned), 32 -> load Thirtytwo_signed
| Sixtyfour, 64 -> e
| _ -> sign_extend_via_shift e)
| e -> sign_extend_via_shift e)
(low_bits ~bits e dbg)
Expand Down

0 comments on commit 3bb4134

Please sign in to comment.