466b09606786fe1a50f340ce6d79bf813f465812
[oota-llvm.git] / test / CodeGen / X86 / cvtv2f32.ll
1 ; RUN: llc < %s -mtriple=i686-linux-pc -mcpu=corei7 | FileCheck %s
2
3 define <2 x float> @foo(i32 %x, i32 %y, <2 x float> %v) {
4   %t1 = uitofp i32 %x to float
5   %t2 = insertelement <2 x float> undef, float %t1, i32 0
6   %t3 = uitofp i32 %y to float
7   %t4 = insertelement <2 x float> %t2, float %t3, i32 1
8   %t5 = fmul <2 x float> %v, %t4
9   ret <2 x float> %t5
10 ; CHECK: foo
11 ; CHECK: or
12 ; CHECK: subpd
13 ; CHECK: cvtpd2ps
14 ; CHECK: ret
15 }
16
17 define <2 x float> @bar(<2 x i32> %in) {
18   %r = uitofp <2 x i32> %in to <2 x float>
19   ret <2 x float> %r
20 ; CHECK: bar
21 ; CHECK: or
22 ; CHECK: subpd
23 ; CHECK: cvtpd2ps
24 ; CHECK: ret
25 }