Add a triple to switch.ll test.
[oota-llvm.git] / test / CodeGen / X86 / 2011-02-23-UnfoldBug.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin10
2 ; rdar://9045024
3 ; PR9305
4
5 define void @calc_gb_rad_still_sse2_double() nounwind ssp {
6 entry:
7   br label %for.cond.outer
8
9 for.cond.outer:                                   ; preds = %if.end71, %entry
10   %theta.0.ph = phi <2 x double> [ undef, %entry ], [ %theta.1, %if.end71 ]
11   %mul.i97 = fmul <2 x double> %theta.0.ph, undef
12   %mul.i96 = fmul <2 x double> %mul.i97, fmul (<2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> undef)
13   br i1 undef, label %for.body, label %for.end82
14
15 for.body:                                         ; preds = %for.cond.outer
16   br i1 undef, label %for.body33.lr.ph, label %for.end
17
18 for.body33.lr.ph:                                 ; preds = %for.body
19   %dccf.2 = select i1 undef, <2 x double> %mul.i96, <2 x double> undef
20   unreachable
21
22 for.end:                                          ; preds = %for.body
23   %vecins.i94 = insertelement <2 x double> undef, double 0.000000e+00, i32 0
24   %cmpsd.i = tail call <2 x double> @llvm.x86.sse2.cmp.sd(<2 x double> %vecins.i94, <2 x double> <double 0x3FE984B204153B34, double 0x3FE984B204153B34>, i8 2) nounwind
25   tail call void (...)* @_mm_movemask_pd(<2 x double> %cmpsd.i) nounwind
26   br i1 undef, label %if.then67, label %if.end71
27
28 if.then67:                                        ; preds = %for.end
29   %vecins.i91 = insertelement <2 x double> %vecins.i94, double undef, i32 0
30   br label %if.end71
31
32 if.end71:                                         ; preds = %if.then67, %for.end
33   %theta.1 = phi <2 x double> [ %vecins.i91, %if.then67 ], [ %theta.0.ph, %for.end ]
34   br label %for.cond.outer
35
36 for.end82:                                        ; preds = %for.cond.outer
37   ret void
38 }
39
40 declare void @_mm_movemask_pd(...)
41
42 declare <2 x double> @llvm.x86.sse2.cmp.sd(<2 x double>, <2 x double>, i8) nounwind readnone