Fix JIT encoding of trap/ud2 instruction

llvm-svn: 46012
This commit is contained in:
Anton Korobeynikov 2008-01-15 21:40:02 +00:00
parent d21d90cf98
commit 59e6d533bd
1 changed files with 1 additions and 2 deletions

View File

@ -490,8 +490,7 @@ def RDTSC : I<0x31, RawFrm, (outs), (ins), "rdtsc", [(X86rdtsc)]>,
TB;
let isBarrier = 1, hasCtrlDep = 1 in {
// FIXME: Should use 0x0F0B opcode
def TRAP : I<0, RawFrm, (outs), (ins), "ud2", [(X86trap)]>;
def TRAP : I<0x0B, RawFrm, (outs), (ins), "ud2", [(X86trap)]>, TB;
}
//===----------------------------------------------------------------------===//