diff options
| author | Valery Pykhtin <Valery.Pykhtin@amd.com> | 2016-08-11 14:22:05 +0000 |
|---|---|---|
| committer | Valery Pykhtin <Valery.Pykhtin@amd.com> | 2016-08-11 14:22:05 +0000 |
| commit | 82c73bee2b7e11dc9105d47ef61957fbea383f80 (patch) | |
| tree | 0cd0b254e9c9b71b9293ac08e5a29638d2207c6f /llvm | |
| parent | 9ba9dfdd02f04c91db04f553a445d4c00686a8b9 (diff) | |
| download | bcm5719-llvm-82c73bee2b7e11dc9105d47ef61957fbea383f80.tar.gz bcm5719-llvm-82c73bee2b7e11dc9105d47ef61957fbea383f80.zip | |
Revert "[AMDGPU] fix failure on printing of non-existing instruction operands."
This reverts revision 278333, newly added test failed.
llvm-svn: 278336
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp | 5 | ||||
| -rw-r--r-- | llvm/test/MC/Disassembler/AMDGPU/missing_op.txt | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp b/llvm/lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp index 7dd0f009533..2932d3bb158 100644 --- a/llvm/lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp +++ b/llvm/lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp @@ -370,11 +370,6 @@ void AMDGPUInstPrinter::printImmediate64(uint64_t Imm, raw_ostream &O) { void AMDGPUInstPrinter::printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O) { - if (OpNo >= MI->getNumOperands()) { - O << "/*Missing OP" << OpNo << "*/"; - return; - } - const MCOperand &Op = MI->getOperand(OpNo); if (Op.isReg()) { switch (Op.getReg()) { diff --git a/llvm/test/MC/Disassembler/AMDGPU/missing_op.txt b/llvm/test/MC/Disassembler/AMDGPU/missing_op.txt deleted file mode 100644 index a731f200cab..00000000000 --- a/llvm/test/MC/Disassembler/AMDGPU/missing_op.txt +++ /dev/null @@ -1,5 +0,0 @@ -# RUN: llvm-mc -arch=amdgcn -mcpu=fiji -disassemble -show-encoding < %s | FileCheck %s -check-prefix=VI - -#TODO: this test will fail when we fix v_interp_p2_f32 signature, remove it then -#VI: v_interp_p2_f32 16, [/*Missing OP1*/], /*Missing OP2*/, /*Missing OP3*/, /*Missing OP4*/ -0xd4 0x41 0x1d 0xd4 |

