From: George Koehler Date: Fri, 9 Dec 2016 23:40:14 +0000 (-0500) Subject: Add a move from CONST smalls(%val) to GPR. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=436114fce4fd0ba6b27adae2c583ae2f259fcfe2;p=ack.git 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. --- 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}