blob: be13a9811898709a495a3990433c4318ab4e81aa [file] [log] [blame]
Dan Gohmanf2f6ce62009-09-11 18:01:28 +00001; RUN: opt < %s -instcombine -globalopt -S | \
Chandler Carruth4177e6f2012-07-02 12:47:22 +00002; RUN: grep "internal fastcc float @foo"
Reid Spencer2aabd072007-04-15 08:30:33 +00003
Chris Lattner2aef09a2007-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 Gohmanae3a0be2009-06-04 22:49:04 +000010 %tmp2 = fmul float %tmp1, 1.000000e+01 ; <float> [#uses=1]
Chris Lattner2aef09a2007-02-25 21:04:39 +000011 ret float %tmp2
12}
13