aboutsummaryrefslogtreecommitdiff
path: root/test/MC/X86/x86_64-fma4-encoding.s
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-03-14 07:40:52 +0000
committerCraig Topper <craig.topper@gmail.com>2013-03-14 07:40:52 +0000
commit9d3f3c5f400578855f6f7b71670cb8514b4fac0f (patch)
tree6287e25763d71a4761cf532a02e5764266ffe912 /test/MC/X86/x86_64-fma4-encoding.s
parent599521f1671d720a2c786058810537287920f44a (diff)
Fix a bug in the calculation of the VEX.B bit for FMA4 rr with the VEX.W bit set. The VEX.B was being calculated from the wrong operand. Fixes at least some portion of PR14185.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177014 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/X86/x86_64-fma4-encoding.s')
-rw-r--r--test/MC/X86/x86_64-fma4-encoding.s4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/MC/X86/x86_64-fma4-encoding.s b/test/MC/X86/x86_64-fma4-encoding.s
index f7ee351ab5..c9bd954e90 100644
--- a/test/MC/X86/x86_64-fma4-encoding.s
+++ b/test/MC/X86/x86_64-fma4-encoding.s
@@ -25,6 +25,10 @@
// CHECK: encoding: [0xc4,0xe3,0xf9,0x6b,0xc2,0x10]
vfmaddsd %xmm2, %xmm1, %xmm0, %xmm0
+// CHECK: vfmaddsd %xmm10, %xmm1, %xmm0, %xmm0
+// CHECK: encoding: [0xc4,0xc3,0xf9,0x6b,0xc2,0x10]
+ vfmaddsd %xmm10, %xmm1, %xmm0, %xmm0
+
// CHECK: vfmaddps (%rcx), %xmm1, %xmm0, %xmm0
// CHECK: encoding: [0xc4,0xe3,0xf9,0x68,0x01,0x10]
vfmaddps (%rcx), %xmm1, %xmm0, %xmm0