OSDN Git Service

tcg/tci: Move call-return regs to end of tcg_target_reg_alloc_order
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 1 Feb 2021 09:23:07 +0000 (23:23 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 19 Jun 2021 15:51:11 +0000 (08:51 -0700)
As the only call-clobbered regs for TCI, these should
receive the least priority.

Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tci/tcg-target.c.inc

index 8f3f9ef..d54c01b 100644 (file)
@@ -170,8 +170,6 @@ static TCGConstraintSetIndex tcg_target_op_def(TCGOpcode op)
 }
 
 static const int tcg_target_reg_alloc_order[] = {
-    TCG_REG_R0,
-    TCG_REG_R1,
     TCG_REG_R2,
     TCG_REG_R3,
     TCG_REG_R4,
@@ -186,6 +184,8 @@ static const int tcg_target_reg_alloc_order[] = {
     TCG_REG_R13,
     TCG_REG_R14,
     TCG_REG_R15,
+    TCG_REG_R1,
+    TCG_REG_R0,
 };
 
 #if MAX_OPC_PARAM_IARGS != 6