diff options
author | Craig Topper <craig.topper@gmail.com> | 2011-11-19 22:34:59 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2011-11-19 22:34:59 +0000 |
commit | 745a86bac9684f9617aeb0e1566194ca797a64d4 (patch) | |
tree | 5b47c10204eff8b7f14ee21c289b08bacd060a61 /test | |
parent | ba798c5e51893efd042b757c658db7ebdbdab2c1 (diff) | |
download | external_llvm-745a86bac9684f9617aeb0e1566194ca797a64d4.zip external_llvm-745a86bac9684f9617aeb0e1566194ca797a64d4.tar.gz external_llvm-745a86bac9684f9617aeb0e1566194ca797a64d4.tar.bz2 |
Use 256-bit vcmpeqd for creating an all ones vector when AVX2 is enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145004 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/avx2-logic.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx2-logic.ll b/test/CodeGen/X86/avx2-logic.ll index aa3d37d..13ebaa6 100644 --- a/test/CodeGen/X86/avx2-logic.ll +++ b/test/CodeGen/X86/avx2-logic.ll @@ -82,3 +82,15 @@ entry: %cond = or <8 x i32> %1, %2 ret <8 x i32> %cond } + +define <8 x i32> @allOnes() nounwind { +; CHECK: vpcmpeqd +; CHECK-NOT: vinsert + ret <8 x i32> <i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1> +} + +define <16 x i16> @allOnes2() nounwind { +; CHECK: vpcmpeqd +; CHECK-NOT: vinsert + ret <16 x i16> <i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1, i16 -1> +} |