diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-08-18 02:11:34 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-08-18 02:11:34 +0000 |
commit | 24b90e2287289d1756dafb8d935f0252738594ba (patch) | |
tree | 866f08a953976ad51b6e3763d269ced54465fa8d /test/CodeGen/X86/avx-logic.ll | |
parent | 3f0e2377609e916d77e192fff2badc7f6c05be4f (diff) | |
download | llvm-24b90e2287289d1756dafb8d935f0252738594ba.tar.gz llvm-24b90e2287289d1756dafb8d935f0252738594ba.tar.bz2 llvm-24b90e2287289d1756dafb8d935f0252738594ba.tar.xz |
Cleanup vector logical ops in AVX and add use int versions for simple
v2i64
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avx-logic.ll')
-rw-r--r-- | test/CodeGen/X86/avx-logic.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx-logic.ll b/test/CodeGen/X86/avx-logic.ll index d9e5d081fb..518c09c869 100644 --- a/test/CodeGen/X86/avx-logic.ll +++ b/test/CodeGen/X86/avx-logic.ll @@ -159,3 +159,21 @@ entry: %2 = bitcast <8 x i32> %and.i to <8 x float> ret <8 x float> %2 } + +;;; Test that basic 2 x i64 logic use the integer version on AVX + +; CHECK: vpandn %xmm +define <2 x i64> @vpandn(<2 x i64> %a, <2 x i64> %b) nounwind uwtable readnone ssp { +entry: + %y = xor <2 x i64> %a, <i64 -1, i64 -1> + %x = and <2 x i64> %a, %y + ret <2 x i64> %x +} + +; CHECK: vpand %xmm +define <2 x i64> @vpand(<2 x i64> %a, <2 x i64> %b) nounwind uwtable readnone ssp { +entry: + %x = and <2 x i64> %a, %b + ret <2 x i64> %x +} + |