summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/haddsub-broadcast.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/X86/haddsub-broadcast.ll')
-rw-r--r--llvm/test/CodeGen/X86/haddsub-broadcast.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/haddsub-broadcast.ll b/llvm/test/CodeGen/X86/haddsub-broadcast.ll
index a37cf80ff79..ec617bb2b03 100644
--- a/llvm/test/CodeGen/X86/haddsub-broadcast.ll
+++ b/llvm/test/CodeGen/X86/haddsub-broadcast.ll
@@ -9,7 +9,8 @@ define <4 x double> @PR43402(i64 %x) {
; CHECK-NEXT: vmovsd {{.*#+}} xmm0 = mem[0],zero
; CHECK-NEXT: vunpcklps {{.*#+}} xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
; CHECK-NEXT: vsubpd {{\.LCPI.*}}, %xmm0, %xmm0
-; CHECK-NEXT: vhaddpd %xmm0, %xmm0, %xmm0
+; CHECK-NEXT: vpermilpd {{.*#+}} xmm1 = xmm0[1,0]
+; CHECK-NEXT: vaddsd %xmm0, %xmm1, %xmm0
; CHECK-NEXT: vbroadcastsd %xmm0, %ymm0
; CHECK-NEXT: retl
%conv = uitofp i64 %x to double
OpenPOWER on IntegriCloud