summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2010-05-14 19:16:02 +0000
committerKevin Enderby <enderby@apple.com>2010-05-14 19:16:02 +0000
commitc3ce05c594ded5c2ad20410719bd9e586aeff180 (patch)
treeafe36c2e15b00509049740d76bef4dca52406e76 /test/MC
parent5c6aba2e3ac2239a3de85a77f09cdac9eef68467 (diff)
downloadllvm-c3ce05c594ded5c2ad20410719bd9e586aeff180.tar.gz
llvm-c3ce05c594ded5c2ad20410719bd9e586aeff180.tar.bz2
llvm-c3ce05c594ded5c2ad20410719bd9e586aeff180.tar.xz
Fix so "int3" is correctly accepted, added "into" and fixed "int" with an
argument, like "int $4", to not get an Assertion error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/AsmParser/X86/x86_32-new-encoder.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/MC/AsmParser/X86/x86_32-new-encoder.s b/test/MC/AsmParser/X86/x86_32-new-encoder.s
index 136d6f51b8..bc716da829 100644
--- a/test/MC/AsmParser/X86/x86_32-new-encoder.s
+++ b/test/MC/AsmParser/X86/x86_32-new-encoder.s
@@ -56,3 +56,16 @@ movb 0, %al // CHECK: movb 0, %al # encoding: [0xa0,A,A,A,A]
movw 0, %ax // CHECK: movw 0, %ax # encoding: [0x66,0xa1,A,A,A,A]
movl 0, %eax // CHECK: movl 0, %eax # encoding: [0xa1,A,A,A,A]
+// rdar://7973775
+into
+// CHECK: into
+// CHECK: encoding: [0xce]
+int3
+// CHECK: int3
+// CHECK: encoding: [0xcc]
+int $4
+// CHECK: int $4
+// CHECK: encoding: [0xcd,0x04]
+int $255
+// CHECK: int $255
+// CHECK: encoding: [0xcd,0xff]