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/InstPrinter/PPCInstPrinter.cpp | |
parent | e0d289efbdbd918a9fd3e685b14ef48f0c8f28bd (diff) | |
download | bcm5719-llvm-e26236eed9107e28d1b31a3de58c168202181a41.tar.gz bcm5719-llvm-e26236eed9107e28d1b31a3de58c168202181a41.zip |
[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/InstPrinter/PPCInstPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp b/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp index d5b90f2bd5c..53223ed50fa 100644 --- a/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp +++ b/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp @@ -299,6 +299,13 @@ void PPCInstPrinter::printU6ImmOperand(const MCInst *MI, unsigned OpNo, O << (unsigned int)Value; } +void PPCInstPrinter::printU10ImmOperand(const MCInst *MI, unsigned OpNo, + raw_ostream &O) { + unsigned short Value = MI->getOperand(OpNo).getImm(); + assert(Value <= 1023 && "Invalid u10imm argument!"); + O << (unsigned short)Value; +} + void PPCInstPrinter::printU12ImmOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O) { unsigned short Value = MI->getOperand(OpNo).getImm(); |