From 00ab0339ed75ed41fb900494da45990891dc51a6 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 8 Mar 2019 15:17:26 +0000 Subject: [PATCH] Fix typo in constant vector llvm-svn: 355699 --- llvm/test/CodeGen/X86/combine-add.ll | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/test/CodeGen/X86/combine-add.ll b/llvm/test/CodeGen/X86/combine-add.ll index 212f4aaefee1..afa5aa364b87 100644 --- a/llvm/test/CodeGen/X86/combine-add.ll +++ b/llvm/test/CodeGen/X86/combine-add.ll @@ -379,7 +379,7 @@ define <4 x i32> @combine_vec_add_add_not(<4 x i32> %a, <4 x i32> %b) { ; SSE-NEXT: pcmpeqd %xmm2, %xmm2 ; SSE-NEXT: pxor %xmm2, %xmm0 ; SSE-NEXT: paddd %xmm1, %xmm0 -; SSE-NEXT: paddd {{.*}}(%rip), %xmm0 +; SSE-NEXT: psubd %xmm2, %xmm0 ; SSE-NEXT: retq ; ; AVX-LABEL: combine_vec_add_add_not: @@ -387,10 +387,10 @@ define <4 x i32> @combine_vec_add_add_not(<4 x i32> %a, <4 x i32> %b) { ; AVX-NEXT: vpcmpeqd %xmm2, %xmm2, %xmm2 ; AVX-NEXT: vpxor %xmm2, %xmm0, %xmm0 ; AVX-NEXT: vpaddd %xmm1, %xmm0, %xmm0 -; AVX-NEXT: vpaddd {{.*}}(%rip), %xmm0, %xmm0 +; AVX-NEXT: vpsubd %xmm2, %xmm0, %xmm0 ; AVX-NEXT: retq %nota = xor <4 x i32> %a, %add = add <4 x i32> %nota, %b - %r = add <4 x i32> %add, + %r = add <4 x i32> %add, ret <4 x i32> %r }