From 436114fce4fd0ba6b27adae2c583ae2f259fcfe2 Mon Sep 17 00:00:00 2001 From: George Koehler Date: Fri, 9 Dec 2016 18:40:14 -0500 Subject: [PATCH] Add a move from CONST smalls(%val) to GPR. This allows 'move {CONST, $1}, R3' with a small enough $1 to emit one instruction (addi) instead of two instructions (addis, ori). The CONST token confusingly isn't in the CONST_ALL set. --- mach/powerpc/ncg/table | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mach/powerpc/ncg/table b/mach/powerpc/ncg/table index cf3de92fd..d8b8082c7 100644 --- a/mach/powerpc/ncg/table +++ b/mach/powerpc/ncg/table @@ -389,7 +389,7 @@ MOVES /* Constants */ - from CONST_ALL smalls(%val) to GPR + from CONST_ALL + CONST smalls(%val) to GPR gen COMMENT("move CONST_ALL->GPR smalls") addi %2, R0, {CONST, %1.val} -- 2.34.1