2009-09-08 23:54:48 +00:00
|
|
|
; RUN: llc < %s -march=x86 -mattr=+sse2 -pre-alloc-split -stats |& \
|
2008-10-24 02:05:00 +00:00
|
|
|
; RUN: grep {pre-alloc-split} | grep {Number of intervals split} | grep 1
|
2009-01-29 22:27:56 +00:00
|
|
|
; XFAIL: *
|
2008-10-24 02:05:00 +00:00
|
|
|
|
|
|
|
define void @test(double* %P, i32 %cond) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load double* %P, align 8 ; <double> [#uses=1]
|
2009-06-04 22:49:04 +00:00
|
|
|
%1 = fadd double %0, 4.000000e+00 ; <double> [#uses=2]
|
2008-10-24 02:05:00 +00:00
|
|
|
%2 = icmp eq i32 %cond, 0 ; <i1> [#uses=1]
|
|
|
|
br i1 %2, label %bb1, label %bb
|
|
|
|
|
|
|
|
bb: ; preds = %entry
|
2009-06-04 22:49:04 +00:00
|
|
|
%3 = fadd double %1, 4.000000e+00 ; <double> [#uses=1]
|
2008-10-24 02:05:00 +00:00
|
|
|
br label %bb1
|
|
|
|
|
|
|
|
bb1: ; preds = %bb, %entry
|
|
|
|
%A.0 = phi double [ %3, %bb ], [ %1, %entry ] ; <double> [#uses=1]
|
2009-06-04 22:49:04 +00:00
|
|
|
%4 = fmul double %A.0, 4.000000e+00 ; <double> [#uses=1]
|
2008-10-24 02:05:00 +00:00
|
|
|
%5 = tail call i32 (...)* @bar() nounwind ; <i32> [#uses=0]
|
|
|
|
store double %4, double* %P, align 8
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i32 @bar(...)
|