aboutsummaryrefslogtreecommitdiffstats
path: root/aarch64
diff options
context:
space:
mode:
authorLéo Gourdin <leo.gourdin@univ-grenoble-alpes.fr>2021-09-19 11:41:43 +0200
committerLéo Gourdin <leo.gourdin@univ-grenoble-alpes.fr>2021-09-19 11:41:43 +0200
commit4a17125ee3f6766710e6e6e47d551cf0cf29cb47 (patch)
treefc7585cb72928e6eef36b62909fe2cf4d09db246 /aarch64
parent68995e0afca237658728b2c82fff04133a5aae72 (diff)
downloadcompcert-kvx-4a17125ee3f6766710e6e6e47d551cf0cf29cb47.tar.gz
compcert-kvx-4a17125ee3f6766710e6e6e47d551cf0cf29cb47.zip
fix issue 244
Diffstat (limited to 'aarch64')
-rw-r--r--aarch64/Asmexpand.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/aarch64/Asmexpand.ml b/aarch64/Asmexpand.ml
index 828c96d6..68884550 100644
--- a/aarch64/Asmexpand.ml
+++ b/aarch64/Asmexpand.ml
@@ -185,6 +185,7 @@ let memcpy_small_arg sz arg tmp =
| BA_addrstack ofs ->
if offset_in_range ofs
&& offset_in_range (Ptrofs.add ofs (Ptrofs.repr (Z.of_uint sz)))
+ && (Z.to_int ofs) mod 8 = 0
then (XSP, ofs)
else begin expand_addimm64 (RR1 tmp) XSP ofs; (RR1 tmp, _0) end
| _ ->