blob: e89b507414eb67346a6e7954d60fa95a02a3e45d [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -mattr=+sse2 -pre-alloc-split -stats |& \
Evan Cheng9cd7ff02008-10-24 02:05:00 +00002; RUN: grep {pre-alloc-split} | grep {Number of intervals split} | grep 1
Owen Anderson3d251852009-01-29 22:27:56 +00003; XFAIL: *
Evan Cheng9cd7ff02008-10-24 02:05:00 +00004
5define void @test(double* %P, i32 %cond) nounwind {
6entry:
7 %0 = load double* %P, align 8 ; <double> [#uses=1]
Dan Gohman7ce405e2009-06-04 22:49:04 +00008 %1 = fadd double %0, 4.000000e+00 ; <double> [#uses=2]
Evan Cheng9cd7ff02008-10-24 02:05:00 +00009 %2 = icmp eq i32 %cond, 0 ; <i1> [#uses=1]
10 br i1 %2, label %bb1, label %bb
11
12bb: ; preds = %entry
Dan Gohman7ce405e2009-06-04 22:49:04 +000013 %3 = fadd double %1, 4.000000e+00 ; <double> [#uses=1]
Evan Cheng9cd7ff02008-10-24 02:05:00 +000014 br label %bb1
15
16bb1: ; preds = %bb, %entry
17 %A.0 = phi double [ %3, %bb ], [ %1, %entry ] ; <double> [#uses=1]
Dan Gohman7ce405e2009-06-04 22:49:04 +000018 %4 = fmul double %A.0, 4.000000e+00 ; <double> [#uses=1]
Evan Cheng9cd7ff02008-10-24 02:05:00 +000019 %5 = tail call i32 (...)* @bar() nounwind ; <i32> [#uses=0]
20 store double %4, double* %P, align 8
21 ret void
22}
23
24declare i32 @bar(...)