Added the x86 instruction ud2b (2nd official undefined instruction).
authorKevin Enderby <enderby@apple.com>
Wed, 27 Oct 2010 20:46:49 +0000 (20:46 +0000)
committerKevin Enderby <enderby@apple.com>
Wed, 27 Oct 2010 20:46:49 +0000 (20:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117485 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrSystem.td
test/MC/X86/x86-32.s
utils/TableGen/X86RecognizableInstr.cpp

index 48b6d6ecf0721dc0b52d22aaaa56c4e2d8b39d0a..1a58ba0f96ef722c478ac3d9faa475cacfb69bef 100644 (file)
@@ -21,8 +21,10 @@ let Defs = [RAX, RCX, RDX] in
 
 // CPU flow control instructions
 
-let isTerminator = 1, isBarrier = 1, hasCtrlDep = 1 in
+let isTerminator = 1, isBarrier = 1, hasCtrlDep = 1 in {
   def TRAP    : I<0x0B, RawFrm, (outs), (ins), "ud2", [(trap)]>, TB;
+  def UD2B    : I<0xB9, RawFrm, (outs), (ins), "ud2b", []>, TB;
+}
 
 def HLT : I<0xF4, RawFrm, (outs), (ins), "hlt", []>;
 def RSM : I<0xAA, RawFrm, (outs), (ins), "rsm", []>, TB;
index 588a43a32387f3dfb5ac99b05e4f81ad6dfb31a8..c104f45a406ee5dce5fa452c11df568022429ca1 100644 (file)
@@ -786,3 +786,7 @@ pshufw $90, %mm4, %mm0
 // CHECK: ud2
 // CHECK:  encoding: [0x0f,0x0b]
                ud2a
+
+// CHECK: ud2b
+// CHECK:  encoding: [0x0f,0xb9]
+               ud2b
index dcbce4d88e11888aa0176770526019aeb0241afa..1343fcf5ad2129bc93560b3e83dd430e12a9502e 100644 (file)
@@ -114,7 +114,6 @@ namespace X86Local {
   EXTENSION_TABLE(72)             \
   EXTENSION_TABLE(73)             \
   EXTENSION_TABLE(ae)             \
-  EXTENSION_TABLE(b9)             \
   EXTENSION_TABLE(ba)             \
   EXTENSION_TABLE(c7)