2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -instcombine -globalopt -S | \
|
2007-04-15 16:30:33 +08:00
|
|
|
; RUN: grep {internal fastcc float @foo}
|
|
|
|
|
2007-02-26 05:04:39 +08:00
|
|
|
define internal float @foo() {
|
|
|
|
ret float 0.000000e+00
|
|
|
|
}
|
|
|
|
|
|
|
|
define float @bar() {
|
|
|
|
%tmp1 = call float (...)* bitcast (float ()* @foo to float (...)*)( )
|
2009-06-05 06:49:04 +08:00
|
|
|
%tmp2 = fmul float %tmp1, 1.000000e+01 ; <float> [#uses=1]
|
2007-02-26 05:04:39 +08:00
|
|
|
ret float %tmp2
|
|
|
|
}
|
|
|
|
|