New testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12916 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-04-13 19:28:09 +00:00
parent f66cdf8449
commit cc713a343e

View File

@ -0,0 +1,17 @@
; RUN: llvm-as < %s | opt -constprop | llvm-dis | not grep call
declare double %cos(double)
declare double %sin(double)
declare double %tan(double)
declare double %sqrt(double)
double %T() {
%A = call double %cos(double 0.0)
%B = call double %sin(double 0.0)
%a = add double %A, %B
%C = call double %tan(double 0.0)
%b = add double %a, %C
%D = call double %sqrt(double 4.0)
%c = add double %b, %D
ret double %c
}