llvm.org GIT mirror llvm / cc713a3
New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12916 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 17 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -constprop | llvm-dis | not grep call
1
2 declare double %cos(double)
3 declare double %sin(double)
4 declare double %tan(double)
5 declare double %sqrt(double)
6
7 double %T() {
8 %A = call double %cos(double 0.0)
9 %B = call double %sin(double 0.0)
10 %a = add double %A, %B
11 %C = call double %tan(double 0.0)
12 %b = add double %a, %C
13 %D = call double %sqrt(double 4.0)
14 %c = add double %b, %D
15 ret double %c
16 }