public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17211ee
)
Add a move from CONST smalls(%val) to GPR.
author
George Koehler
<xkernigh@netscape.net>
Fri, 9 Dec 2016 23:40:14 +0000
(18:40 -0500)
committer
George 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
patch
|
blob
|
history
diff --git
a/mach/powerpc/ncg/table
b/mach/powerpc/ncg/table
index
cf3de92
..
d8b8082
100644
(file)
--- 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}