summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorNadav Rotem <nadav.rotem@intel.com>2011-09-14 14:42:15 +0000
committerNadav Rotem <nadav.rotem@intel.com>2011-09-14 14:42:15 +0000
commitd748dbacb0d9a94d354ecf160aa88b1e276e922b (patch)
treed41df67b75d10231b4b3e2a92f5854eacae2c8bd /llvm/test
parentee8157cb41411ffcbf562a1e8a950f97d5a66b7c (diff)
downloadbcm5719-llvm-d748dbacb0d9a94d354ecf160aa88b1e276e922b.tar.gz
bcm5719-llvm-d748dbacb0d9a94d354ecf160aa88b1e276e922b.zip
Add integer promotion support for vselect
llvm-svn: 139692
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/sse41-blend.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/sse41-blend.ll b/llvm/test/CodeGen/X86/sse41-blend.ll
index 5a169dc5e94..a21416b7a8a 100644
--- a/llvm/test/CodeGen/X86/sse41-blend.ll
+++ b/llvm/test/CodeGen/X86/sse41-blend.ll
@@ -9,6 +9,23 @@ define <4 x float> @vsel_float(<4 x float> %v1, <4 x float> %v2) {
}
+;CHECK: vsel_4xi8
+;CHECK: blendvps
+;CHECK: ret
+define <4 x i8> @vsel_4xi8(<4 x i8> %v1, <4 x i8> %v2) {
+ %vsel = select <4 x i1> <i1 true, i1 false, i1 false, i1 false>, <4 x i8> %v1, <4 x i8> %v2
+ ret <4 x i8> %vsel
+}
+
+;CHECK: vsel_4xi16
+;CHECK: blendvps
+;CHECK: ret
+define <4 x i16> @vsel_4xi16(<4 x i16> %v1, <4 x i16> %v2) {
+ %vsel = select <4 x i1> <i1 true, i1 false, i1 false, i1 false>, <4 x i16> %v1, <4 x i16> %v2
+ ret <4 x i16> %vsel
+}
+
+
;CHECK: vsel_i32
;CHECK: blendvps
;CHECK: ret
OpenPOWER on IntegriCloud