summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/avx2-logic.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/avx2-logic.ll')
-rw-r--r--test/CodeGen/X86/avx2-logic.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx2-logic.ll b/test/CodeGen/X86/avx2-logic.ll
index aa3d37d553..13ebaa6f87 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>
+}