constantexpr-dangle.ll 359 B

12345678910111213
  1. ; RUN: opt < %s -instcombine -globalopt -S | \
  2. ; RUN: grep "internal fastcc float @foo"
  3. define internal float @foo() {
  4. ret float 0.000000e+00
  5. }
  6. define float @bar() {
  7. %tmp1 = call float (...) bitcast (float ()* @foo to float (...)*)( )
  8. %tmp2 = fmul float %tmp1, 1.000000e+01 ; <float> [#uses=1]
  9. ret float %tmp2
  10. }