blob: be13a9811898709a495a3990433c4318ab4e81aa [file] [log] [blame]
Dan Gohman18800922009-09-11 18:01:28 +00001; RUN: opt < %s -instcombine -globalopt -S | \
Chandler Carrutha5a29f92012-07-02 12:47:22 +00002; RUN: grep "internal fastcc float @foo"
Reid Spencer951d8dc2007-04-15 08:30:33 +00003
Chris Lattner49c505c2007-02-25 21:04:39 +00004define internal float @foo() {
5 ret float 0.000000e+00
6}
7
8define float @bar() {
9 %tmp1 = call float (...)* bitcast (float ()* @foo to float (...)*)( )
Dan Gohmana5b96452009-06-04 22:49:04 +000010 %tmp2 = fmul float %tmp1, 1.000000e+01 ; <float> [#uses=1]
Chris Lattner49c505c2007-02-25 21:04:39 +000011 ret float %tmp2
12}
13