aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-04-25 17:45:44 +0200
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-04-25 17:45:44 +0200
commitbeb1cf4f6b56ee739e3a763de93663a875224402 (patch)
treee5ba1c623394df93e070becc088749306c8dffb4 /common
parentff1e531a3f2a58b6fbdc4a5a29f2520d5367c01c (diff)
downloadcompcert-kvx-beb1cf4f6b56ee739e3a763de93663a875224402.tar.gz
compcert-kvx-beb1cf4f6b56ee739e3a763de93663a875224402.zip
added code for extfzl/extfsl (not very useful since bitfields are limited to 32 bits)
Diffstat (limited to 'common')
-rw-r--r--common/Values.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/Values.v b/common/Values.v
index 45774913..ecc1c458 100644
--- a/common/Values.v
+++ b/common/Values.v
@@ -802,7 +802,7 @@ Definition extfzl stop start v :=
let stop' := Z.add stop Z.one in
match v with
| Vlong w =>
- Vlong (Int64.shru (Int64.shl w (Int64.repr (Z.sub Int64.zwordsize stop'))) (Int64.repr (Z.sub Int64.zwordsize (Z.sub stop' start))))
+ Vlong (Int64.shru' (Int64.shl' w (Int.repr (Z.sub Int64.zwordsize stop'))) (Int.repr (Z.sub Int64.zwordsize (Z.sub stop' start))))
| _ => Vundef
end
else Vundef.
@@ -816,7 +816,7 @@ Definition extfsl stop start v :=
let stop' := Z.add stop Z.one in
match v with
| Vlong w =>
- Vlong (Int64.shr (Int64.shl w (Int64.repr (Z.sub Int64.zwordsize stop'))) (Int64.repr (Z.sub Int64.zwordsize (Z.sub stop' start))))
+ Vlong (Int64.shr' (Int64.shl' w (Int.repr (Z.sub Int64.zwordsize stop'))) (Int.repr (Z.sub Int64.zwordsize (Z.sub stop' start))))
| _ => Vundef
end
else Vundef.