diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-05-03 19:51:09 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-05-03 19:51:09 +0000 |
commit | 8e4ba8f7b19615907e5874b3aa661d52c21fff74 (patch) | |
tree | 13e58b96c5cd9b7df1d16398445cdf6924b1253f /lib/Target/PowerPC/PPCInstrInfo.td | |
parent | 16adfdb2e666f46e058b603a8a7aa75758819fd5 (diff) | |
download | llvm-8e4ba8f7b19615907e5874b3aa661d52c21fff74.tar.gz llvm-8e4ba8f7b19615907e5874b3aa661d52c21fff74.tar.bz2 llvm-8e4ba8f7b19615907e5874b3aa661d52c21fff74.tar.xz |
[PowerPC] Add some Book II instructions to AsmParser
This patch adds a couple of Book II instructions (isync, icbi) to the
PowerPC assembler parser. These are needed when bootstrapping clang
with the integrated assembler forced on, because they are used in
inline asm statements in the code base.
The test case adds the full list of Book II storage control instructions,
including associated extended mnemonics. Again, those that are not yet
supported as marked as FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181052 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstrInfo.td')
-rw-r--r-- | lib/Target/PowerPC/PPCInstrInfo.td | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td index 74b7aacf56..4763069f25 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.td +++ b/lib/Target/PowerPC/PPCInstrInfo.td @@ -2112,6 +2112,17 @@ def : Pat<(fma f32:$A, (fneg f32:$C), f32:$B), include "PPCInstrAltivec.td" include "PPCInstr64Bit.td" + +//===----------------------------------------------------------------------===// +// PowerPC Instructions used for assembler/disassembler only +// + +def ISYNC : XLForm_2_ext<19, 150, 0, 0, 0, (outs), (ins), + "isync", SprISYNC, []>; + +def ICBI : XForm_1a<31, 982, (outs), (ins memrr:$src), + "icbi $src", LdStICBI, []>; + //===----------------------------------------------------------------------===// // PowerPC Assembler Instruction Aliases // |