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.
This commit is contained in:
George Koehler 2016-12-09 18:40:14 -05:00
parent 17211eef47
commit 436114fce4

View file

@ -389,7 +389,7 @@ MOVES
/* Constants */ /* Constants */
from CONST_ALL smalls(%val) to GPR from CONST_ALL + CONST smalls(%val) to GPR
gen gen
COMMENT("move CONST_ALL->GPR smalls") COMMENT("move CONST_ALL->GPR smalls")
addi %2, R0, {CONST, %1.val} addi %2, R0, {CONST, %1.val}