diff options
author | Craig Topper <craig.topper@gmail.com> | 2011-10-16 07:55:05 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2011-10-16 07:55:05 +0000 |
commit | b53fa8bf19a51f0c49a9f8b6ede3e2ff3bdfb961 (patch) | |
tree | b1e46ae4478216cfe10014153b5825026f99d329 /test/MC/X86 | |
parent | dc479c4a897bb7cc756370cc2051da79b65e7d16 (diff) |
Add X86 BZHI instruction as well as BMI2 feature detection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142122 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 ac08260b11..ba931d53d0 100644 --- a/test/MC/X86/x86_64-bmi-encoding.s +++ b/test/MC/X86/x86_64-bmi-encoding.s @@ -71,3 +71,19 @@ // CHECK: bextrq %r12, %r11, %r10 // CHECK: encoding: [0xc4,0x42,0x98,0xf7,0xd3] bextrq %r12, %r11, %r10 + +// CHECK: bzhil %r12d, (%rax), %r10d +// CHECK: encoding: [0xc4,0x62,0x18,0xf5,0x10] + bzhil %r12d, (%rax), %r10d + +// CHECK: bzhil %r12d, %r11d, %r10d +// CHECK: encoding: [0xc4,0x42,0x18,0xf5,0xd3] + bzhil %r12d, %r11d, %r10d + +// CHECK: bzhiq %r12, (%rax), %r10 +// CHECK: encoding: [0xc4,0x62,0x98,0xf5,0x10] + bzhiq %r12, (%rax), %r10 + +// CHECK: bzhiq %r12, %r11, %r10 +// CHECK: encoding: [0xc4,0x42,0x98,0xf5,0xd3] + bzhiq %r12, %r11, %r10 |