pow-2.ll 434 B

1234567891011121314
  1. ; Test that the pow library call simplifier works correctly.
  2. ;
  3. ; RUN: opt < %s -instcombine -S | FileCheck %s
  4. declare float @pow(double, double)
  5. ; Check that pow functions with the wrong prototype aren't simplified.
  6. define float @test_no_simplify1(double %x) {
  7. ; CHECK-LABEL: @test_no_simplify1(
  8. %retval = call float @pow(double 1.0, double %x)
  9. ; CHECK-NEXT: call float @pow(double 1.000000e+00, double %x)
  10. ret float %retval
  11. }