blob: 099c607509b2e48d2ca9adadc989d0686ac3887e [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -instcombine -globalopt -S | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; RUN: grep {internal fastcc float @foo}
3
4define internal float @foo() {
5 ret float 0.000000e+00
6}
7
8define float @bar() {
9 %tmp1 = call float (...)* bitcast (float ()* @foo to float (...)*)( )
Dan Gohman7ce405e2009-06-04 22:49:04 +000010 %tmp2 = fmul float %tmp1, 1.000000e+01 ; <float> [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011 ret float %tmp2
12}
13