Add a move from CONST smalls(%val) to GPR.
authorGeorge Koehler <xkernigh@netscape.net>
Fri, 9 Dec 2016 23:40:14 +0000 (18:40 -0500)
committerGeorge Koehler <xkernigh@netscape.net>
Fri, 9 Dec 2016 23:40:14 +0000 (18:40 -0500)
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

index cf3de92..d8b8082 100644 (file)
@@ -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}