diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-13 19:28:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-13 19:28:09 +0000 |
commit | cc713a343e4e3be2bb1ea790000c784e1e9f8017 (patch) | |
tree | bb127f6189d08dcd45b82ef644dca736a8b17397 /test | |
parent | f66cdf8449cc9b16522483aab1d1191172b5f2b6 (diff) | |
download | llvm-cc713a343e4e3be2bb1ea790000c784e1e9f8017.tar.gz llvm-cc713a343e4e3be2bb1ea790000c784e1e9f8017.tar.bz2 llvm-cc713a343e4e3be2bb1ea790000c784e1e9f8017.tar.xz |
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12916 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/ConstProp/calls.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Transforms/ConstProp/calls.ll b/test/Transforms/ConstProp/calls.ll new file mode 100644 index 0000000000..59ac2d52dc --- /dev/null +++ b/test/Transforms/ConstProp/calls.ll @@ -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 +} |