enhance new encoder to support prefixes + RawFrm

instructions with no operands.  It can now handle

define void @test2() nounwind { ret void }



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95261 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2010-02-03 21:57:59 +00:00
parent 92b1dfe5d8
commit 1e80f403e2
3 changed files with 133 additions and 7 deletions
+1 -1
View File
@@ -559,7 +559,7 @@ void Emitter<CodeEmitter>::emitInstruction(const MachineInstr &MI,
// Skip the last source operand that is tied_to the dest reg. e.g. LXADD32
--NumOps;
unsigned char BaseOpcode = II->getBaseOpcodeFor(Desc);
unsigned char BaseOpcode = X86InstrInfo::getBaseOpcodeFor(*Desc);
switch (Desc->TSFlags & X86II::FormMask) {
default:
llvm_unreachable("Unknown FormMask value in X86 MachineCodeEmitter!");