From 1af0c538e08964fdbd5471ba032181ed7498637b Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Tue, 13 Sep 2011 19:59:18 +0000 Subject: [PATCH] update checked pattern llvm-svn: 139631 --- llvm/test/CodeGen/X86/sse2-blend.ll | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/llvm/test/CodeGen/X86/sse2-blend.ll b/llvm/test/CodeGen/X86/sse2-blend.ll index 20b732508a93..1c86b31a8b86 100644 --- a/llvm/test/CodeGen/X86/sse2-blend.ll +++ b/llvm/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