[llvm] r355699 - Fix typo in constant vector
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 8 07:17:26 PST 2019
Author: rksimon
Date: Fri Mar 8 07:17:26 2019
New Revision: 355699
URL: http://llvm.org/viewvc/llvm-project?rev=355699&view=rev
Log:
Fix typo in constant vector
Modified:
llvm/trunk/test/CodeGen/X86/combine-add.ll
Modified: llvm/trunk/test/CodeGen/X86/combine-add.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/combine-add.ll?rev=355699&r1=355698&r2=355699&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/combine-add.ll (original)
+++ llvm/trunk/test/CodeGen/X86/combine-add.ll Fri Mar 8 07:17:26 2019
@@ -379,7 +379,7 @@ define <4 x i32> @combine_vec_add_add_no
; 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_no
; 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, <i32 -1, i32 -1, i32 -1, i32 -1>
%add = add <4 x i32> %nota, %b
- %r = add <4 x i32> %add, <i32 1, i32 1, i32 1, i32 -1>
+ %r = add <4 x i32> %add, <i32 1, i32 1, i32 1, i32 1>
ret <4 x i32> %r
}
More information about the llvm-commits
mailing list