blob: d11bb9ee3e7548ee813ee80b0a2254e10a0fa551 [file] [log] [blame]
Tom Stellard567f8862013-01-02 22:13:01 +00001; A bug fix in the DAGCombiner made this test fail, so marking as xfail
2; until this can be investigated further.
3; XFAIL: *
4
Michael Liaoc5af1492012-10-24 04:09:32 +00005; RUN: llc < %s -mtriple=i686-linux-pc -mcpu=corei7 | FileCheck %s
6
Michael Liao59229792012-10-24 04:14:18 +00007define <2 x float> @foo(i32 %x, i32 %y, <2 x float> %v) {
8 %t1 = uitofp i32 %x to float
9 %t2 = insertelement <2 x float> undef, float %t1, i32 0
10 %t3 = uitofp i32 %y to float
11 %t4 = insertelement <2 x float> %t2, float %t3, i32 1
12 %t5 = fmul <2 x float> %v, %t4
13 ret <2 x float> %t5
14; CHECK: foo
15; CHECK: or
16; CHECK: subpd
17; CHECK: cvtpd2ps
18; CHECK: ret
19}
20
Michael Liaoc5af1492012-10-24 04:09:32 +000021define <2 x float> @bar(<2 x i32> %in) {
22 %r = uitofp <2 x i32> %in to <2 x float>
23 ret <2 x float> %r
24; CHECK: bar
25; CHECK: or
26; CHECK: subpd
27; CHECK: cvtpd2ps
28; CHECK: ret
29}