aboutsummaryrefslogtreecommitdiffstats
path: root/ia32/Asm.v
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2016-10-11 11:51:16 +0200
committerXavier Leroy <xavier.leroy@inria.fr>2016-10-11 11:51:16 +0200
commite73d255ec045983787ed935ad02d31d45353a2b1 (patch)
tree7a935f55c4c037863e607802c8f557ad13e8ed0b /ia32/Asm.v
parent3c605199ab0d096cd66ba671a4e23eac9e79bbc2 (diff)
downloadcompcert-e73d255ec045983787ed935ad02d31d45353a2b1.tar.gz
compcert-e73d255ec045983787ed935ad02d31d45353a2b1.zip
x86-64 MacOS X support
- Avoid absolute addressing for labels, use RIP-relative addressing - Different, RIP-relative implementation of jump tables
Diffstat (limited to 'ia32/Asm.v')
-rw-r--r--ia32/Asm.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/ia32/Asm.v b/ia32/Asm.v
index 9d4036ff..304cb8e4 100644
--- a/ia32/Asm.v
+++ b/ia32/Asm.v
@@ -913,7 +913,7 @@ Definition exec_instr (f: function) (i: instruction) (rs: regset) (m: mem) : out
| Vint n =>
match list_nth_z tbl (Int.unsigned n) with
| None => Stuck
- | Some lbl => goto_label f lbl rs m
+ | Some lbl => goto_label f lbl (rs #RAX <- Vundef #RDX <- Vundef) m
end
| _ => Stuck
end