llvm.org GIT mirror llvm / 7cf79a8
Reapply testcase from r139309! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139318 91177308-0d34-0410-b5e6-96231b3b80d8 Bruno Cardoso Lopes 8 years ago
1 changed file(s) with 47 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -promote-elements -mattr=+avx | FileCheck %s
1
2 ;CHECK: vsel_float
3 ;CHECK: vblendvps
4 ;CHECK: ret
5 define <4 x float> @vsel_float(<4 x float> %v1, <4 x float> %v2) {
6 %vsel = select <4 x i1> , <4 x float> %v1, <4 x float> %v2
7 ret <4 x float> %vsel
8 }
9
10
11 ;CHECK: vsel_i32
12 ;CHECK: vblendvps
13 ;CHECK: ret
14 define <4 x i32> @vsel_i32(<4 x i32> %v1, <4 x i32> %v2) {
15 %vsel = select <4 x i1> , <4 x i32> %v1, <4 x i32> %v2
16 ret <4 x i32> %vsel
17 }
18
19
20 ;CHECK: vsel_double
21 ;CHECK: vblendvpd
22 ;CHECK: ret
23 define <2 x double> @vsel_double(<2 x double> %v1, <2 x double> %v2) {
24 %vsel = select <2 x i1> , <2 x double> %v1, <2 x double> %v2
25 ret <2 x double> %vsel
26 }
27
28
29 ;CHECK: vsel_i64
30 ;CHECK: vblendvpd
31 ;CHECK: ret
32 define <2 x i64> @vsel_i64(<2 x i64> %v1, <2 x i64> %v2) {
33 %vsel = select <2 x i1> , <2 x i64> %v1, <2 x i64> %v2
34 ret <2 x i64> %vsel
35 }
36
37
38 ;CHECK: vsel_i8
39 ;CHECK: vpblendvb
40 ;CHECK: ret
41 define <16 x i8> @vsel_i8(<16 x i8> %v1, <16 x i8> %v2) {
42 %vsel = select <16 x i1> , <16 x i8> %v1, <16 x i8> %v2
43 ret <16 x i8> %vsel
44 }
45
46