Add a triple to switch.ll test.
[oota-llvm.git] / test / CodeGen / X86 / vec_partial.ll
1 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s\r
2 \r
3 ; PR11580\r
4 define <3 x float> @addf3(<3 x float> %x) {\r
5 ; CHECK-LABEL: addf3\r
6 ; CHECK:       # BB#0:\r
7 ; CHECK-NEXT:  addps .LCPI0_0(%rip), %xmm0\r
8 ; CHECK-NEXT:  retq\r
9 entry:\r
10   %add = fadd <3 x float> %x, <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>\r
11   ret <3 x float> %add\r
12 }\r
13 \r
14 ; PR11580\r
15 define <4 x float> @cvtf3_f4(<3 x float> %x) {\r
16 ; CHECK-LABEL: cvtf3_f4\r
17 ; CHECK:       # BB#0:\r
18 ; CHECK-NEXT:  retq\r
19 entry:\r
20   %extractVec = shufflevector <3 x float> %x, <3 x float> undef, <4 x i32> <i32 0, i32 1, i32 2, i32 undef>\r
21   ret <4 x float> %extractVec\r
22 }\r
23 \r
24 ; PR11580\r
25 define <3 x float> @cvtf4_f3(<4 x float> %x) {\r
26 ; CHECK-LABEL: cvtf4_f3\r
27 ; CHECK:       # BB#0:\r
28 ; CHECK-NEXT:  retq\r
29 entry:\r
30   %extractVec = shufflevector <4 x float> %x, <4 x float> undef, <3 x i32> <i32 0, i32 1, i32 2>\r
31   ret <3 x float> %extractVec\r
32 }\r