diff options
author | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2015-05-22 16:44:10 +0000 |
---|---|---|
committer | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2015-05-22 16:44:10 +0000 |
commit | e26236eed9107e28d1b31a3de58c168202181a41 (patch) | |
tree | 0b086a0aa28294aa198be6fdff1e45e64bbf8471 /llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp | |
parent | e0d289efbdbd918a9fd3e685b14ef48f0c8f28bd (diff) | |
download | llvm-e26236eed9107e28d1b31a3de58c168202181a41.zip llvm-e26236eed9107e28d1b31a3de58c168202181a41.tar.gz llvm-e26236eed9107e28d1b31a3de58c168202181a41.tar.bz2 |
[PPC64] Add support for clrbhrb, mfbhrbe, rfebb.
This patch adds support for the ISA 2.07 additions involving the
branch history rolling buffer and event-based branching. These will
not be used by typical applications, so built-in support is not
required. They will only be available via inline assembly.
Assembly/disassembly tests are included in the patch.
llvm-svn: 238032
Diffstat (limited to 'llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp b/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp index 3aeb6f6..1522504 100644 --- a/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp +++ b/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp @@ -460,6 +460,8 @@ public: bool isU8ImmX8() const { return Kind == Immediate && isUInt<8>(getImm()) && (getImm() & 7) == 0; } + + bool isU10Imm() const { return Kind == Immediate && isUInt<10>(getImm()); } bool isU12Imm() const { return Kind == Immediate && isUInt<12>(getImm()); } bool isU16Imm() const { switch (Kind) { |