summaryrefslogtreecommitdiff
path: root/arm/extractionMachdep.v
diff options
context:
space:
mode:
Diffstat (limited to 'arm/extractionMachdep.v')
-rw-r--r--arm/extractionMachdep.v8
1 files changed, 8 insertions, 0 deletions
diff --git a/arm/extractionMachdep.v b/arm/extractionMachdep.v
index f6e17ba..0c9b705 100644
--- a/arm/extractionMachdep.v
+++ b/arm/extractionMachdep.v
@@ -16,3 +16,11 @@
Extract Constant Asm.ireg_eq => "fun (x: ireg) (y: ireg) -> x = y".
Extract Constant Asm.freg_eq => "fun (x: freg) (y: freg) -> x = y".
Extract Constant Asm.preg_eq => "fun (x: preg) (y: preg) -> x = y".
+
+(* Choice of calling conventions *)
+Extract Constant Archi.abi =>
+ "begin match Configuration.variant with
+ | ""eabi"" -> Softfloat
+ | ""hardfloat"" -> Hardfloat
+ | _ -> assert false
+ end".