[llvm-commits] CVS: llvm/test/Transforms/SimplifyLibCalls/2007-04-06-strchr-miscompile.ll ExitInMain.ll IsDigit.ll MemSet.ll Pow.ll dg.exp floor.ll
Reid Spencer
reid at x10sys.com
Sat Apr 14 22:17:00 PDT 2007
Changes in directory llvm/test/Transforms/SimplifyLibCalls:
2007-04-06-strchr-miscompile.ll updated: 1.1 -> 1.2
ExitInMain.ll updated: 1.3 -> 1.4
IsDigit.ll updated: 1.4 -> 1.5
MemSet.ll updated: 1.3 -> 1.4
Pow.ll updated: 1.5 -> 1.6
dg.exp updated: 1.3 -> 1.4
floor.ll updated: 1.4 -> 1.5
---
Log message:
For PR1319: http://llvm.org/PR1319 :
Convert to new test system. This exposes IsDigit.ll as failing.
---
Diffs of the changes: (+36 -23)
2007-04-06-strchr-miscompile.ll | 9 +++++----
ExitInMain.ll | 4 +++-
IsDigit.ll | 3 ++-
MemSet.ll | 16 +++++++++-------
Pow.ll | 5 +++--
dg.exp | 4 ++--
floor.ll | 18 ++++++++++++------
7 files changed, 36 insertions(+), 23 deletions(-)
Index: llvm/test/Transforms/SimplifyLibCalls/2007-04-06-strchr-miscompile.ll
diff -u llvm/test/Transforms/SimplifyLibCalls/2007-04-06-strchr-miscompile.ll:1.1 llvm/test/Transforms/SimplifyLibCalls/2007-04-06-strchr-miscompile.ll:1.2
--- llvm/test/Transforms/SimplifyLibCalls/2007-04-06-strchr-miscompile.ll:1.1 Fri Apr 6 18:36:59 2007
+++ llvm/test/Transforms/SimplifyLibCalls/2007-04-06-strchr-miscompile.ll Sun Apr 15 00:16:38 2007
@@ -1,8 +1,9 @@
-; RUN: llvm-as < %s | opt -simplify-libcalls -instcombine | llvm-dis > %t &&
-; RUN: grep '@str,.*i64 3' %t &&
-; RUN: grep '@str1,.*i64 7' %t &&
-; RUN: grep 'ret i8.*null' %t
; PR1307
+; RUN: llvm-as < %s | opt -simplify-libcalls -instcombine | llvm-dis > %t
+; RUN: grep {@str,.*i64 3} %t
+; RUN: grep {@str1,.*i64 7} %t
+; RUN: grep {ret i8.*null} %t
+; END.
@str = internal constant [5 x i8] c"foog\00"
@str1 = internal constant [8 x i8] c"blahhh!\00"
Index: llvm/test/Transforms/SimplifyLibCalls/ExitInMain.ll
diff -u llvm/test/Transforms/SimplifyLibCalls/ExitInMain.ll:1.3 llvm/test/Transforms/SimplifyLibCalls/ExitInMain.ll:1.4
--- llvm/test/Transforms/SimplifyLibCalls/ExitInMain.ll:1.3 Sun Dec 31 00:02:00 2006
+++ llvm/test/Transforms/SimplifyLibCalls/ExitInMain.ll Sun Apr 15 00:16:38 2007
@@ -1,5 +1,7 @@
; Test that the ExitInMainOptimization pass works correctly
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | grep -c 'ret i32 3' | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \
+; RUN: grep -c {ret i32 3} | grep 1
+; END.
declare void %exit(int)
declare void %exitonly(int)
Index: llvm/test/Transforms/SimplifyLibCalls/IsDigit.ll
diff -u llvm/test/Transforms/SimplifyLibCalls/IsDigit.ll:1.4 llvm/test/Transforms/SimplifyLibCalls/IsDigit.ll:1.5
--- llvm/test/Transforms/SimplifyLibCalls/IsDigit.ll:1.4 Fri Dec 1 22:23:10 2006
+++ llvm/test/Transforms/SimplifyLibCalls/IsDigit.ll Sun Apr 15 00:16:38 2007
@@ -1,5 +1,6 @@
; Test that the IsDigitOptimizer works correctly
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | not grep 'call'
+; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \
+; RUN: not grep call
declare int %isdigit(int)
declare int %isascii(int)
Index: llvm/test/Transforms/SimplifyLibCalls/MemSet.ll
diff -u llvm/test/Transforms/SimplifyLibCalls/MemSet.ll:1.3 llvm/test/Transforms/SimplifyLibCalls/MemSet.ll:1.4
--- llvm/test/Transforms/SimplifyLibCalls/MemSet.ll:1.3 Fri Dec 1 22:23:10 2006
+++ llvm/test/Transforms/SimplifyLibCalls/MemSet.ll Sun Apr 15 00:16:38 2007
@@ -1,17 +1,19 @@
; Test that the LLVMMemSetOptimizer works correctly
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | not grep 'call.*llvm.memset'
+; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \
+; RUN: not grep {call.*llvm.memset}
+; END.
-declare void %llvm.memset(sbyte*,ubyte,uint,uint)
+declare void %llvm.memset.i32(sbyte*,ubyte,uint,uint)
implementation ; Functions:
int %main () {
%target = alloca [1024 x sbyte]
%target_p = getelementptr [1024 x sbyte]* %target, int 0, int 0
- call void %llvm.memset(sbyte* %target_p, ubyte 1, uint 0, uint 1)
- call void %llvm.memset(sbyte* %target_p, ubyte 1, uint 1, uint 1)
- call void %llvm.memset(sbyte* %target_p, ubyte 1, uint 2, uint 2)
- call void %llvm.memset(sbyte* %target_p, ubyte 1, uint 4, uint 4)
- call void %llvm.memset(sbyte* %target_p, ubyte 1, uint 8, uint 8)
+ call void %llvm.memset.i32(sbyte* %target_p, ubyte 1, uint 0, uint 1)
+ call void %llvm.memset.i32(sbyte* %target_p, ubyte 1, uint 1, uint 1)
+ call void %llvm.memset.i32(sbyte* %target_p, ubyte 1, uint 2, uint 2)
+ call void %llvm.memset.i32(sbyte* %target_p, ubyte 1, uint 4, uint 4)
+ call void %llvm.memset.i32(sbyte* %target_p, ubyte 1, uint 8, uint 8)
ret int 0
}
Index: llvm/test/Transforms/SimplifyLibCalls/Pow.ll
diff -u llvm/test/Transforms/SimplifyLibCalls/Pow.ll:1.5 llvm/test/Transforms/SimplifyLibCalls/Pow.ll:1.6
--- llvm/test/Transforms/SimplifyLibCalls/Pow.ll:1.5 Fri Dec 1 22:23:10 2006
+++ llvm/test/Transforms/SimplifyLibCalls/Pow.ll Sun Apr 15 00:16:38 2007
@@ -1,8 +1,9 @@
; Testcase for calls to the standard C "pow" function
;
; Equivalent to: http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01786.html
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls -disable-output &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | not grep 'call double .pow'
+; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \
+; RUN: not grep {call double .pow}
+; END.
declare double %pow(double, double)
Index: llvm/test/Transforms/SimplifyLibCalls/dg.exp
diff -u llvm/test/Transforms/SimplifyLibCalls/dg.exp:1.3 llvm/test/Transforms/SimplifyLibCalls/dg.exp:1.4
--- llvm/test/Transforms/SimplifyLibCalls/dg.exp:1.3 Wed Apr 11 14:56:59 2007
+++ llvm/test/Transforms/SimplifyLibCalls/dg.exp Sun Apr 15 00:16:38 2007
@@ -1,3 +1,3 @@
-load_lib llvm-dg.exp
+load_lib llvm.exp
-llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
Index: llvm/test/Transforms/SimplifyLibCalls/floor.ll
diff -u llvm/test/Transforms/SimplifyLibCalls/floor.ll:1.4 llvm/test/Transforms/SimplifyLibCalls/floor.ll:1.5
--- llvm/test/Transforms/SimplifyLibCalls/floor.ll:1.4 Fri Dec 1 22:23:10 2006
+++ llvm/test/Transforms/SimplifyLibCalls/floor.ll Sun Apr 15 00:16:38 2007
@@ -1,9 +1,15 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | not grep 'call.*floor(' &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | grep 'call.*floorf('
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | not grep 'call.*ceil(' &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | grep 'call.*ceilf('
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | not grep 'call.*nearbyint(' &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | grep 'call.*nearbyintf('
+; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \
+; RUN: not grep {call.*floor(} &&
+; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \
+; RUN: grep {call.*floorf(}
+; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \
+; RUN: not grep {call.*ceil(} &&
+; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \
+; RUN: grep {call.*ceilf(}
+; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \
+; RUN: not grep {call.*nearbyint(} &&
+; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \
+; RUN: grep {call.*nearbyintf(}
; XFAIL: sparc
declare double %floor(double)
More information about the llvm-commits
mailing list