[llvm] r336066 - [X86][Disassembler] Remove TYPE_BNDR from translateImmediate.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 1 10:50:29 PDT 2018
Author: ctopper
Date: Sun Jul 1 10:50:29 2018
New Revision: 336066
URL: http://llvm.org/viewvc/llvm-project?rev=336066&view=rev
Log:
[X86][Disassembler] Remove TYPE_BNDR from translateImmediate.
I've check the disassembler tables and this shouldn't be reachable. Which is good since if it was reachable there should have been a 'return' after the addOperand line.
Modified:
llvm/trunk/lib/Target/X86/Disassembler/X86Disassembler.cpp
Modified: llvm/trunk/lib/Target/X86/Disassembler/X86Disassembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/Disassembler/X86Disassembler.cpp?rev=336066&r1=336065&r2=336066&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/Disassembler/X86Disassembler.cpp (original)
+++ llvm/trunk/lib/Target/X86/Disassembler/X86Disassembler.cpp Sun Jul 1 10:50:29 2018
@@ -661,8 +661,6 @@ static void translateImmediate(MCInst &m
case TYPE_ZMM:
mcInst.addOperand(MCOperand::createReg(X86::ZMM0 + (immediate >> 4)));
return;
- case TYPE_BNDR:
- mcInst.addOperand(MCOperand::createReg(X86::BND0 + (immediate >> 4)));
default:
// operand is 64 bits wide. Do nothing.
break;
More information about the llvm-commits
mailing list