aboutsummaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-08 05:38:31 +0000
committerChris Lattner <sabre@nondot.org>2010-09-08 05:38:31 +0000
commitba8cea450f330145cc7764e23e5d8b1aadd5e131 (patch)
tree632008abcacc901e68ab22a5515bcb05d799d726 /test/MC
parent2544f426927aa6dbac8d52bd9d5e12629099da82 (diff)
implement the iret suite of instructions properly,
fixing rdar://8403974 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/AsmParser/X86/x86_32-new-encoder.s10
-rw-r--r--test/MC/AsmParser/X86/x86_64-new-encoder.s17
2 files changed, 27 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 e4674b7b98..e99af15a1d 100644
--- a/test/MC/AsmParser/X86/x86_32-new-encoder.s
+++ b/test/MC/AsmParser/X86/x86_32-new-encoder.s
@@ -434,3 +434,13 @@ L1:
// CHECK: jecxz L1
// CHECK: encoding: [0xe3,A]
+// rdar://8403974
+iret
+// CHECK: iretl
+// CHECK: encoding: [0xcf]
+iretw
+// CHECK: iretw
+// CHECK: encoding: [0x66,0xcf]
+iretl
+// CHECK: iretl
+// CHECK: encoding: [0xcf]
diff --git a/test/MC/AsmParser/X86/x86_64-new-encoder.s b/test/MC/AsmParser/X86/x86_64-new-encoder.s
index 5fc29f11f9..75a424322b 100644
--- a/test/MC/AsmParser/X86/x86_64-new-encoder.s
+++ b/test/MC/AsmParser/X86/x86_64-new-encoder.s
@@ -185,3 +185,20 @@ rep movsl
// CHECK: encoding: [0xf3]
// CHECK: movsl
// CHECK: encoding: [0xa5]
+
+
+// rdar://8403974
+iret
+// CHECK: iretl
+// CHECK: encoding: [0xcf]
+iretw
+// CHECK: iretw
+// CHECK: encoding: [0x66,0xcf]
+iretl
+// CHECK: iretl
+// CHECK: encoding: [0xcf]
+iretq
+// CHECK: iretq
+// CHECK: encoding: [0x48,0xcf]
+
+