llvm-6502/test/Transforms/InstCombine/pow.ll
Chris Lattner 060c1f816c Remove usage of grep-not script
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6966 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-28 23:32:04 +00:00

24 lines
600 B
LLVM

; Testcase for calls to the standard C "pow" function
;
; Equivalent to: http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01786.html
; RUN: as < %s | opt -instcombine | dis | not grep 'call double %pow'
declare double %pow(double, double)
double %test1(double %X) {
%Y = call double %pow(double %X, double 0.0)
ret double %Y ; x^0.0 always equals 0.0
}
double %test2(double %X) {
%Y = call double %pow(double %X, double -0.0)
ret double %Y ; x^-0.0 always equals 0.0
}
double %test3(double %X) {
%Y = call double %pow(double 1.0, double %X)
ret double %Y ; 1.0^x always equals 1.0
}