From ba8cea450f330145cc7764e23e5d8b1aadd5e131 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 8 Sep 2010 05:38:31 +0000 Subject: 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 --- test/MC/AsmParser/X86/x86_32-new-encoder.s | 10 ++++++++++ test/MC/AsmParser/X86/x86_64-new-encoder.s | 17 +++++++++++++++++ 2 files changed, 27 insertions(+) (limited to 'test') 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] + + -- cgit v1.2.3