summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-01-23 08:00:59 +0000
committerCraig Topper <craig.topper@gmail.com>2015-01-23 08:00:59 +0000
commit0271d10d35fcb227290256cca7b353868d7f1b67 (patch)
tree35b361644c73bebb7c6e7c298e9f64d0ed5920ee /llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp
parent5059813c2d5edc64e6d3427a5fd0625b853e1b35 (diff)
downloadbcm5719-llvm-0271d10d35fcb227290256cca7b353868d7f1b67.tar.gz
bcm5719-llvm-0271d10d35fcb227290256cca7b353868d7f1b67.zip
[x86] Change u8imm operands to always print as unsigned. This makes shuffle masks and the like make way more sense.
llvm-svn: 226902
Diffstat (limited to 'llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp')
-rw-r--r--llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp b/llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp
index 449445df7d2..cd1aca05dfe 100644
--- a/llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp
+++ b/llvm/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp
@@ -245,3 +245,8 @@ void X86IntelInstPrinter::printMemOffset(const MCInst *MI, unsigned Op,
O << ']';
}
+
+void X86IntelInstPrinter::printU8Imm(const MCInst *MI, unsigned Op,
+ raw_ostream &O) {
+ O << formatImm(MI->getOperand(Op).getImm() & 0xff);
+}
OpenPOWER on IntegriCloud