aboutsummaryrefslogtreecommitdiffstats
path: root/mppa_k1c/Conventions1.v
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-02-18 12:26:34 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-02-18 12:26:34 +0100
commit05d822afbf41b11fe7937bb14d101f2bb7814651 (patch)
tree5f5bc834d6edc8daa99a3cd7595e308e560f873f /mppa_k1c/Conventions1.v
parent18540b654ac649d56bfd7261bdc99c7506aaf602 (diff)
downloadcompcert-kvx-05d822afbf41b11fe7937bb14d101f2bb7814651.tar.gz
compcert-kvx-05d822afbf41b11fe7937bb14d101f2bb7814651.zip
reversed the register allocation ordering between float and int registers, to avoid contention
Diffstat (limited to 'mppa_k1c/Conventions1.v')
-rw-r--r--mppa_k1c/Conventions1.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/mppa_k1c/Conventions1.v b/mppa_k1c/Conventions1.v
index b401c43f..59159f61 100644
--- a/mppa_k1c/Conventions1.v
+++ b/mppa_k1c/Conventions1.v
@@ -47,13 +47,13 @@ Definition int_caller_save_regs :=
:: R52 :: R53 :: R54 :: R55 :: R56 :: R57 :: R58 :: R59 :: R60 :: R61
:: R62 :: R63 :: nil.
-Definition float_caller_save_regs := int_caller_save_regs.
+Definition float_caller_save_regs := rev int_caller_save_regs.
Definition int_callee_save_regs :=
(* R15 :: R16 :: R17 :: *)R18 :: R19 :: R20 :: R21 :: R22
:: R23 :: R24 :: R25 :: R26 :: R27 :: R28 :: R29 :: R30 :: R31 :: nil.
-Definition float_callee_save_regs := int_callee_save_regs.
+Definition float_callee_save_regs := rev int_callee_save_regs.
Definition destroyed_at_call :=
List.filter (fun r => negb (is_callee_save r)) all_mregs.