summaryrefslogtreecommitdiff
path: root/riscv
diff options
context:
space:
mode:
authorBrian Campbell2018-04-20 10:55:56 +0100
committerBrian Campbell2018-04-20 10:56:28 +0100
commit83b7f7065c638ed3b0e0c40a5c4b64257bae4975 (patch)
tree1770aeda7c9f19ece0edd52625284f443485741c /riscv
parentcf3283f176797f9209e3a8b1d5cc76e38f67d471 (diff)
Have sign_extend in common Sail Lem library, use it and zero_extend in
mono rewrites
Diffstat (limited to 'riscv')
-rw-r--r--riscv/riscv_extras.lem5
1 files changed, 0 insertions, 5 deletions
diff --git a/riscv/riscv_extras.lem b/riscv/riscv_extras.lem
index fb4f7f31..491dd56d 100644
--- a/riscv/riscv_extras.lem
+++ b/riscv/riscv_extras.lem
@@ -51,11 +51,6 @@ let get_slice_int len n lo =
let bits = bits_of_int (hi + 1) n in
of_bits_failwith (subrange_list false bits hi lo)
-val sign_extend : forall 'a 'b. Size 'a, Size 'b => bitvector 'a -> integer -> bitvector 'b
-let sign_extend v len = exts_vec len v
-val zero_extend : forall 'a 'b. Size 'a, Size 'b => bitvector 'a -> integer -> bitvector 'b
-let zero_extend v len = extz_vec len v
-
val shift_bits_right : forall 'a 'b. Size 'a, Size 'b => bitvector 'a -> bitvector 'b -> bitvector 'a
let shift_bits_right v m = shiftr v (uint m)
val shift_bits_left : forall 'a 'b. Size 'a, Size 'b => bitvector 'a -> bitvector 'b -> bitvector 'a