projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Sparc] Emit 'restore' instead of 'restore %g0, %g0, %g0'. This improves the readabil...
[oota-llvm.git]
/
lib
/
Target
/
Sparc
/
SparcInstrAliases.td
diff --git
a/lib/Target/Sparc/SparcInstrAliases.td
b/lib/Target/Sparc/SparcInstrAliases.td
index 7242c59059ab68eacdf4373b82cea1eeb2e5cc46..efa792438473c504214aa891d4242c1af77573db 100644
(file)
--- a/
lib/Target/Sparc/SparcInstrAliases.td
+++ b/
lib/Target/Sparc/SparcInstrAliases.td
@@
-140,3
+140,6
@@
def : InstAlias<"mov $rs2, $rd", (ORrr IntRegs:$rd, G0, IntRegs:$rs2)>;
// mov simm13, rd -> or %g0, simm13, rd
def : InstAlias<"mov $simm13, $rd", (ORri IntRegs:$rd, G0, i32imm:$simm13)>;
+
+// restore -> restore %g0, %g0, %g0
+def : InstAlias<"restore", (RESTORErr G0, G0, G0)>;