2009-09-09 07:54:48 +08:00
|
|
|
; RUN: llc < %s -march=x86 -mattr=+sse2 | grep ucomisd | grep CPI | count 2
|
2008-08-29 07:48:31 +08:00
|
|
|
|
|
|
|
define i32 @test(double %A) nounwind {
|
|
|
|
entry:
|
|
|
|
%tmp2 = fcmp ogt double %A, 1.500000e+02; <i1> [#uses=1]
|
2008-08-30 07:22:12 +08:00
|
|
|
%tmp5 = fcmp ult double %A, 7.500000e+01; <i1> [#uses=1]
|
2008-08-29 07:48:31 +08:00
|
|
|
%bothcond = or i1 %tmp2, %tmp5; <i1> [#uses=1]
|
|
|
|
br i1 %bothcond, label %bb8, label %bb12
|
|
|
|
|
|
|
|
bb8:; preds = %entry
|
|
|
|
%tmp9 = tail call i32 (...)* @foo( ) nounwind ; <i32> [#uses=1]
|
|
|
|
ret i32 %tmp9
|
|
|
|
|
|
|
|
bb12:; preds = %entry
|
|
|
|
ret i32 32
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i32 @foo(...)
|