diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-06-24 18:08:03 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-06-24 18:08:03 +0000 |
commit | 6ca71579db758e6f7cf4f2c359b6857432a6b55e (patch) | |
tree | 4b7d1e2e8b36eb9d3010184baa7678094455b7c0 /llvm/lib/Target/PowerPC/PPCInstrInfo.td | |
parent | 03bc68268f1c61ed0251669252cdaf68cde60979 (diff) | |
download | bcm5719-llvm-6ca71579db758e6f7cf4f2c359b6857432a6b55e.tar.gz bcm5719-llvm-6ca71579db758e6f7cf4f2c359b6857432a6b55e.zip |
[PowerPC] Support some miscellaneous mnemonics in the asm parser
This adds support for the following extended mnemonics:
xnop
mr.
not
not.
la
llvm-svn: 184767
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.td')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstrInfo.td | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td index 34336964066..ee992c03cb9 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td +++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.td @@ -2266,7 +2266,15 @@ class PPCAsmPseudo<string asm, dag iops> def : InstAlias<"sc", (SC 0)>; +def : InstAlias<"xnop", (XORI R0, R0, 0)>; + def : InstAlias<"mr $rA, $rB", (OR8 g8rc:$rA, g8rc:$rB, g8rc:$rB)>; +def : InstAlias<"mr. $rA, $rB", (OR8o g8rc:$rA, g8rc:$rB, g8rc:$rB)>; + +def : InstAlias<"not $rA, $rB", (NOR8 g8rc:$rA, g8rc:$rB, g8rc:$rB)>; +def : InstAlias<"not. $rA, $rB", (NOR8o g8rc:$rA, g8rc:$rB, g8rc:$rB)>; + +def LAx : PPCAsmPseudo<"la $rA, $addr", (ins gprc:$rA, memri:$addr)>; def SLWI : PPCAsmPseudo<"slwi $rA, $rS, $n", (ins gprc:$rA, gprc:$rS, u5imm:$n)>; |