diff options
author | Craig Topper <craig.topper@gmail.com> | 2011-10-16 03:51:13 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2011-10-16 03:51:13 +0000 |
commit | 17730847d59c919d97f097d46a3fcba1888e5300 (patch) | |
tree | e953de771db6fdc42842e707c1124c6d462265b9 /test/MC/X86 | |
parent | 4025061b8a31e612af17bd9548b35e1918135291 (diff) | |
download | external_llvm-17730847d59c919d97f097d46a3fcba1888e5300.zip external_llvm-17730847d59c919d97f097d46a3fcba1888e5300.tar.gz external_llvm-17730847d59c919d97f097d46a3fcba1888e5300.tar.bz2 |
Add X86 BEXTR instruction. This instruction uses VEX.vvvv to encode Operand 3 instead of Operand 2 so needs special casing in the disassembler and code emitter. Ultimately, should pass this information from tablegen
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/X86')
-rw-r--r-- | test/MC/X86/x86_64-bmi-encoding.s | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/MC/X86/x86_64-bmi-encoding.s b/test/MC/X86/x86_64-bmi-encoding.s index f02bc0e..ac08260 100644 --- a/test/MC/X86/x86_64-bmi-encoding.s +++ b/test/MC/X86/x86_64-bmi-encoding.s @@ -55,3 +55,19 @@ // CHECK: andnq (%rax), %r11, %r10 // CHECK: encoding: [0xc4,0x62,0xa0,0xf2,0x10] andnq (%rax), %r11, %r10 + +// CHECK: bextrl %r12d, (%rax), %r10d +// CHECK: encoding: [0xc4,0x62,0x18,0xf7,0x10] + bextrl %r12d, (%rax), %r10d + +// CHECK: bextrl %r12d, %r11d, %r10d +// CHECK: encoding: [0xc4,0x42,0x18,0xf7,0xd3] + bextrl %r12d, %r11d, %r10d + +// CHECK: bextrq %r12, (%rax), %r10 +// CHECK: encoding: [0xc4,0x62,0x98,0xf7,0x10] + bextrq %r12, (%rax), %r10 + +// CHECK: bextrq %r12, %r11, %r10 +// CHECK: encoding: [0xc4,0x42,0x98,0xf7,0xd3] + bextrq %r12, %r11, %r10 |