blob: 3917bfff4119454722572c726d731451c0729497 [file] [log] [blame]
Justin Bogner6f6c5f22016-04-25 23:36:50 +00001; RUN: opt < %s -instcombine -globalopt -S | FileCheck %s
2; CHECK: 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() {
David Blaikie23af6482015-04-16 23:24:18 +00009 %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}