[llvm-commits] CVS: llvm/test/Regression/Transforms/SimplifyLibCalls/floor.ll Pow.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed Aug 24 10:20:41 PDT 2005
Changes in directory llvm/test/Regression/Transforms/SimplifyLibCalls:
floor.ll added (r1.1)
Pow.ll updated: 1.2 -> 1.3
---
Log message:
new testcase
---
Diffs of the changes: (+11 -1)
Pow.ll | 1 -
floor.ll | 11 +++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
Index: llvm/test/Regression/Transforms/SimplifyLibCalls/floor.ll
diff -c /dev/null llvm/test/Regression/Transforms/SimplifyLibCalls/floor.ll:1.1
*** /dev/null Wed Aug 24 12:20:40 2005
--- llvm/test/Regression/Transforms/SimplifyLibCalls/floor.ll Wed Aug 24 12:20:30 2005
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'call.*floor('
+
+ declare double %floor(double)
+
+ float %test(float %C) {
+ %D = cast float %C to double
+ %E = call double %floor(double %D) ; --> floorf
+ %F = cast double %E to float
+ ret float %F
+ }
+
Index: llvm/test/Regression/Transforms/SimplifyLibCalls/Pow.ll
diff -u llvm/test/Regression/Transforms/SimplifyLibCalls/Pow.ll:1.2 llvm/test/Regression/Transforms/SimplifyLibCalls/Pow.ll:1.3
--- llvm/test/Regression/Transforms/SimplifyLibCalls/Pow.ll:1.2 Fri Apr 29 05:11:23 2005
+++ llvm/test/Regression/Transforms/SimplifyLibCalls/Pow.ll Wed Aug 24 12:20:30 2005
@@ -1,4 +1,3 @@
-; Test that the StrCatOptimizer works correctly
; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'call.*pow'
declare double %pow(double,double)
More information about the llvm-commits
mailing list