aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp
diff options
context:
space:
mode:
authorChristian Konig <christian.koenig@amd.com>2013-02-21 15:17:22 +0000
committerChristian Konig <christian.koenig@amd.com>2013-02-21 15:17:22 +0000
commit53f22df199542f6fc4e0edc5b7cecbeacea11ada (patch)
treee34a9505b873ea809cf8305bc1ac8a6df848cd42 /lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp
parentee44118ef7a917b2fd94f40e5a07d8b5f420acf2 (diff)
downloadexternal_llvm-53f22df199542f6fc4e0edc5b7cecbeacea11ada.zip
external_llvm-53f22df199542f6fc4e0edc5b7cecbeacea11ada.tar.gz
external_llvm-53f22df199542f6fc4e0edc5b7cecbeacea11ada.tar.bz2
R600/SI: add all the other missing asm operands v2
v2: put implicit parameters in [] Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175754 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp')
-rw-r--r--lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp b/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp
index d6450a0..10547a5 100644
--- a/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp
+++ b/lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp
@@ -11,6 +11,7 @@
#include "AMDGPUInstPrinter.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
#include "llvm/MC/MCInst.h"
+#include "llvm/MC/MCExpr.h"
using namespace llvm;
@@ -35,6 +36,9 @@ void AMDGPUInstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
O << Op.getImm();
} else if (Op.isFPImm()) {
O << Op.getFPImm();
+ } else if (Op.isExpr()) {
+ const MCExpr *Exp = Op.getExpr();
+ Exp->print(O);
} else {
assert(!"unknown operand type in printOperand");
}