[llvm-commits] CVS: llvm/test/Regression/Transforms/ConstProp/calls.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Apr 13 14:28:01 PDT 2004
Changes in directory llvm/test/Regression/Transforms/ConstProp:
calls.ll added (r1.1)
---
Log message:
New testcase
---
Diffs of the changes: (+17 -0)
Index: llvm/test/Regression/Transforms/ConstProp/calls.ll
diff -c /dev/null llvm/test/Regression/Transforms/ConstProp/calls.ll:1.1
*** /dev/null Tue Apr 13 14:28:19 2004
--- llvm/test/Regression/Transforms/ConstProp/calls.ll Tue Apr 13 14:28:09 2004
***************
*** 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
+ }
More information about the llvm-commits
mailing list