1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S < %s -instcombine | FileCheck %s
4 target triple = "x86_64"
6 define double @pow_exp(double %x, double %y) {
7 ; CHECK-LABEL: @pow_exp(
8 ; CHECK-NEXT: [[MUL:%.*]] = fmul fast double [[X:%.*]], [[Y:%.*]]
9 ; CHECK-NEXT: [[EXP:%.*]] = call fast double @llvm.exp.f64(double [[MUL]])
10 ; CHECK-NEXT: ret double [[EXP]]
13 %call = call fast double @exp(double %x) #1
14 %pow = call fast double @llvm.pow.f64(double %call, double %y)
15 %C1 = fcmp ule double %call, %pow
20 declare double @exp(double)
22 declare double @llvm.pow.f64(double, double) #0
24 attributes #0 = { nounwind readnone speculatable }
25 attributes #1 = { nounwind readnone }