26 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt -S < %s -passes=instcombine | FileCheck %s3 4target triple = "x86_64"5 6define 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]]11;12 %A = alloca i113 %call = call fast double @exp(double %x) #114 %pow = call fast double @llvm.pow.f64(double %call, double %y)15 %C1 = fcmp ule double %call, %pow16 store i1 %C1, ptr %A17 ret double %pow18}19 20declare double @exp(double)21 22declare double @llvm.pow.f64(double, double) #023 24attributes #0 = { nounwind readnone speculatable }25attributes #1 = { nounwind readnone }26