diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 |
commit | 71d5a2540a98c81f5bcaeb48805e0e2881f530ef (patch) | |
tree | 5343938942df402b49ec7300a1c25a2d4ccd5821 /test/CodeGen/X86/vec_logical.ll | |
parent | 31bbf64f3a4974a2d6c8b3b27ad2f519caf74057 (diff) |
Diffstat (limited to 'test/CodeGen/X86/vec_logical.ll')
-rw-r--r-- | test/CodeGen/X86/vec_logical.ll | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/test/CodeGen/X86/vec_logical.ll b/test/CodeGen/X86/vec_logical.ll index b632616cde88..92ec76009f6a 100644 --- a/test/CodeGen/X86/vec_logical.ll +++ b/test/CodeGen/X86/vec_logical.ll @@ -5,13 +5,13 @@ define void @t(<4 x float> %A) { ; SSE-LABEL: t: ; SSE: # BB#0: -; SSE-NEXT: xorps .LCPI0_0, %xmm0 +; SSE-NEXT: xorps {{\.LCPI.*}}, %xmm0 ; SSE-NEXT: movaps %xmm0, 0 ; SSE-NEXT: retl ; ; AVX-LABEL: t: ; AVX: # BB#0: -; AVX-NEXT: vxorps .LCPI0_0, %xmm0, %xmm0 +; AVX-NEXT: vxorps {{\.LCPI.*}}, %xmm0, %xmm0 ; AVX-NEXT: vmovaps %xmm0, 0 ; AVX-NEXT: retl %tmp1277 = fsub <4 x float> < float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00 >, %A @@ -85,3 +85,22 @@ entry: store <4 x float> %tmp30, <4 x float>* %d ret void } + +define <2 x i64> @andn_double_xor(<2 x i64> %a, <2 x i64> %b, <2 x i64> %c) { +; SSE-LABEL: andn_double_xor: +; SSE: # BB#0: +; SSE-NEXT: xorps %xmm2, %xmm1 +; SSE-NEXT: andnps %xmm1, %xmm0 +; SSE-NEXT: retl +; +; AVX-LABEL: andn_double_xor: +; AVX: # BB#0: +; AVX-NEXT: vxorps %xmm2, %xmm1, %xmm1 +; AVX-NEXT: vandnps %xmm1, %xmm0, %xmm0 +; AVX-NEXT: retl + %1 = xor <2 x i64> %a, <i64 -1, i64 -1> + %2 = xor <2 x i64> %b, %c + %3 = and <2 x i64> %1, %2 + ret <2 x i64> %3 +} + |