1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00
llvm-mirror/test/Transforms/InstCombine/pow-exp-nofastmath.ll
Eric Christopher a62270de2c Revert "Temporarily Revert "Add basic loop fusion pass.""
The reversion apparently deleted the test/Transforms directory.

Will be re-reverting again.

llvm-svn: 358552
2019-04-17 04:52:47 +00:00

17 lines
582 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instcombine -S | FileCheck %s
define double @mypow(double %x, double %y) {
; CHECK-LABEL: @mypow(
; CHECK-NEXT: [[CALL:%.*]] = call double @exp(double [[X:%.*]])
; CHECK-NEXT: [[POW:%.*]] = call double @llvm.pow.f64(double [[CALL]], double [[Y:%.*]])
; CHECK-NEXT: ret double [[POW]]
;
%call = call double @exp(double %x)
%pow = call double @llvm.pow.f64(double %call, double %y)
ret double %pow
}
declare double @exp(double) #1
declare double @llvm.pow.f64(double, double)