1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; Test that the pow library call simplifier works correctly.
4 ; RUN: opt < %s -instcombine -S | FileCheck %s
6 declare float @pow(double, double)
8 ; Check that pow functions with the wrong prototype aren't simplified.
10 define float @test_no_simplify1(double %x) {
11 ; CHECK-LABEL: @test_no_simplify1(
12 ; CHECK-NEXT: [[RETVAL:%.*]] = call float @pow(double 1.000000e+00, double [[X:%.*]])
13 ; CHECK-NEXT: ret float [[RETVAL]]
15 %retval = call float @pow(double 1.0, double %x)