summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadav Rotem <nadav.rotem@intel.com>2011-09-13 19:59:18 +0000
committerNadav Rotem <nadav.rotem@intel.com>2011-09-13 19:59:18 +0000
commite1490d1e433bd57883241c42391ee98878f0ddd8 (patch)
treedf25c7308771a3989857e71dd4a00d8941c412a3
parentdfb5935c76598cd19608e58bab55b9b611dab0b7 (diff)
downloadllvm-e1490d1e433bd57883241c42391ee98878f0ddd8.tar.gz
llvm-e1490d1e433bd57883241c42391ee98878f0ddd8.tar.bz2
llvm-e1490d1e433bd57883241c42391ee98878f0ddd8.tar.xz
update checked pattern
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139631 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/X86/sse2-blend.ll20
1 files changed, 19 insertions, 1 deletions
diff --git a/test/CodeGen/X86/sse2-blend.ll b/test/CodeGen/X86/sse2-blend.ll
index 20b732508a..1c86b31a8b 100644
--- a/test/CodeGen/X86/sse2-blend.ll
+++ b/test/CodeGen/X86/sse2-blend.ll
@@ -1,4 +1,7 @@
-; RUN: llc < %s -march=x86 -mcpu=yonah -promote-elements -mattr=+sse2,-sse41
+; RUN: llc < %s -march=x86 -mcpu=yonah -promote-elements -mattr=+sse2,-sse41 | FileCheck %s
+
+
+; currently (xor v4i32) is defined as illegal, so we scalarize the code.
define void@vsel_float(<4 x float>* %v1, <4 x float>* %v2) {
%A = load <4 x float>* %v1
@@ -8,6 +11,8 @@ define void@vsel_float(<4 x float>* %v1, <4 x float>* %v2) {
ret void
}
+; currently (xor v4i32) is defined as illegal, so we scalarize the code.
+
define void@vsel_i32(<4 x i32>* %v1, <4 x i32>* %v2) {
%A = load <4 x i32>* %v1
%B = load <4 x i32>* %v2
@@ -16,6 +21,12 @@ define void@vsel_i32(<4 x i32>* %v1, <4 x i32>* %v2) {
ret void
}
+; CHECK: vsel_i64
+; CHECK: pxor
+; CHECK: pand
+; CHECK: pandn
+; CHECK: por
+; CHECK: ret
define void@vsel_i64(<4 x i64>* %v1, <4 x i64>* %v2) {
%A = load <4 x i64>* %v1
@@ -25,6 +36,13 @@ define void@vsel_i64(<4 x i64>* %v1, <4 x i64>* %v2) {
ret void
}
+; CHECK: vsel_double
+; CHECK: pxor
+; CHECK: pand
+; CHECK: pandn
+; CHECK: por
+; CHECK: ret
+
define void@vsel_double(<4 x double>* %v1, <4 x double>* %v2) {
%A = load <4 x double>* %v1