summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCInstrInfo.td
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2013-06-10 17:19:43 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2013-06-10 17:19:43 +0000
commit278916500a2d7c735e3ed6b0f57cd757815b9867 (patch)
tree100001c678ca4c6c236a05a1bb50b69fdce1a898 /lib/Target/PowerPC/PPCInstrInfo.td
parent7c6f90d486911076da01ec0f37af4760fdd7041f (diff)
downloadllvm-278916500a2d7c735e3ed6b0f57cd757815b9867.tar.gz
llvm-278916500a2d7c735e3ed6b0f57cd757815b9867.tar.bz2
llvm-278916500a2d7c735e3ed6b0f57cd757815b9867.tar.xz
[PowerPC] Support extended sc mnemonic
A plain "sc" without argument is supposed to be treated like "sc 0" by the assembler. This patch adds a corresponding alias. Problem reported by Joerg Sonnenberger. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstrInfo.td')
-rw-r--r--lib/Target/PowerPC/PPCInstrInfo.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td
index e5daafe072..1b7ea93c45 100644
--- a/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/lib/Target/PowerPC/PPCInstrInfo.td
@@ -2154,6 +2154,8 @@ class PPCAsmPseudo<string asm, dag iops>
let isPseudo = 1;
}
+def : InstAlias<"sc", (SC 0)>;
+
def : InstAlias<"mr $rA, $rB", (OR8 g8rc:$rA, g8rc:$rB, g8rc:$rB)>;
def SLWI : PPCAsmPseudo<"slwi $rA, $rS, $n",