diff options
Diffstat (limited to 'test/Transforms/SimplifyLibCalls')
34 files changed, 37 insertions, 37 deletions
diff --git a/test/Transforms/SimplifyLibCalls/2005-05-20-sprintf-crash.ll b/test/Transforms/SimplifyLibCalls/2005-05-20-sprintf-crash.ll index 5b7ec09..8816579 100644 --- a/test/Transforms/SimplifyLibCalls/2005-05-20-sprintf-crash.ll +++ b/test/Transforms/SimplifyLibCalls/2005-05-20-sprintf-crash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplify-libcalls -disable-output +; RUN: opt < %s -simplify-libcalls -disable-output @G = constant [3 x i8] c"%s\00" ; <[3 x i8]*> [#uses=1] diff --git a/test/Transforms/SimplifyLibCalls/2007-04-06-strchr-miscompile.ll b/test/Transforms/SimplifyLibCalls/2007-04-06-strchr-miscompile.ll index 9b3cc59..8e9f206 100644 --- a/test/Transforms/SimplifyLibCalls/2007-04-06-strchr-miscompile.ll +++ b/test/Transforms/SimplifyLibCalls/2007-04-06-strchr-miscompile.ll @@ -1,5 +1,5 @@ ; PR1307 -; RUN: opt %s -simplify-libcalls -instcombine -S > %t +; RUN: opt < %s -simplify-libcalls -instcombine -S > %t ; RUN: grep {@str,.*i64 3} %t ; RUN: grep {@str1,.*i64 7} %t ; RUN: grep {ret i8.*null} %t diff --git a/test/Transforms/SimplifyLibCalls/2008-05-19-memcmp.ll b/test/Transforms/SimplifyLibCalls/2008-05-19-memcmp.ll index 6b8574c..b687432 100644 --- a/test/Transforms/SimplifyLibCalls/2008-05-19-memcmp.ll +++ b/test/Transforms/SimplifyLibCalls/2008-05-19-memcmp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplify-libcalls -S | grep i32 +; RUN: opt < %s -simplify-libcalls -S | grep i32 ; PR2341 @_2E_str = external constant [5 x i8] ; <[5 x i8]*> [#uses=1] diff --git a/test/Transforms/SimplifyLibCalls/2009-01-04-Annotate.ll b/test/Transforms/SimplifyLibCalls/2009-01-04-Annotate.ll index 1b6a6b4..73eb05b 100644 --- a/test/Transforms/SimplifyLibCalls/2009-01-04-Annotate.ll +++ b/test/Transforms/SimplifyLibCalls/2009-01-04-Annotate.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplify-libcalls -S > %t +; RUN: opt < %s -simplify-libcalls -S > %t ; RUN: grep noalias %t | count 2 ; RUN: grep nocapture %t | count 3 ; RUN: grep nounwind %t | count 3 diff --git a/test/Transforms/SimplifyLibCalls/2009-02-11-NotInitialized.ll b/test/Transforms/SimplifyLibCalls/2009-02-11-NotInitialized.ll index 9fbbb0b..ac89199 100644 --- a/test/Transforms/SimplifyLibCalls/2009-02-11-NotInitialized.ll +++ b/test/Transforms/SimplifyLibCalls/2009-02-11-NotInitialized.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -inline -simplify-libcalls -functionattrs | \ +; RUN: opt < %s -inline -simplify-libcalls -functionattrs | \ ; RUN: llvm-dis | grep nocapture | count 2 ; Check that nocapture attributes are added when run after an SCC pass. ; PR3520 diff --git a/test/Transforms/SimplifyLibCalls/2009-02-12-StrTo.ll b/test/Transforms/SimplifyLibCalls/2009-02-12-StrTo.ll index 951c78b..cb9819c 100644 --- a/test/Transforms/SimplifyLibCalls/2009-02-12-StrTo.ll +++ b/test/Transforms/SimplifyLibCalls/2009-02-12-StrTo.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplify-libcalls -S > %t +; RUN: opt < %s -simplify-libcalls -S > %t ; RUN: grep nocapture %t | count 2 ; RUN: grep null %t | grep nocapture | count 1 ; RUN: grep null %t | grep call | grep readonly | count 1 diff --git a/test/Transforms/SimplifyLibCalls/2009-05-30-memcmp-byte.ll b/test/Transforms/SimplifyLibCalls/2009-05-30-memcmp-byte.ll index 984578a..9056499 100644 --- a/test/Transforms/SimplifyLibCalls/2009-05-30-memcmp-byte.ll +++ b/test/Transforms/SimplifyLibCalls/2009-05-30-memcmp-byte.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplify-libcalls -instcombine -S | grep {ret i32 -65} +; RUN: opt < %s -simplify-libcalls -instcombine -S | grep {ret i32 -65} ; PR4284 define i32 @test() nounwind { diff --git a/test/Transforms/SimplifyLibCalls/2009-07-28-Exit.ll b/test/Transforms/SimplifyLibCalls/2009-07-28-Exit.ll index 7114fce..7af0a26 100644 --- a/test/Transforms/SimplifyLibCalls/2009-07-28-Exit.ll +++ b/test/Transforms/SimplifyLibCalls/2009-07-28-Exit.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplify-libcalls -disable-output +; RUN: opt < %s -simplify-libcalls -disable-output ; PR4641 %struct.__sFILE = type { i8*, i32, i32, i16, i16, %struct.__sbuf, i32, i8*, i32 (i8*)*, i32 (i8*, i8*, i32)*, i64 (i8*, i64, i32)*, i32 (i8*, i8*, i32)*, %struct.__sbuf, i8*, i32, [3 x i8], [1 x i8], %struct.__sbuf, i32, i64, %struct.pthread_mutex*, %struct.pthread*, i32, i32, %union.anon } diff --git a/test/Transforms/SimplifyLibCalls/2009-07-29-Exit2.ll b/test/Transforms/SimplifyLibCalls/2009-07-29-Exit2.ll index 22d817c..b5a788e 100644 --- a/test/Transforms/SimplifyLibCalls/2009-07-29-Exit2.ll +++ b/test/Transforms/SimplifyLibCalls/2009-07-29-Exit2.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplify-libcalls -disable-output +; RUN: opt < %s -simplify-libcalls -disable-output ; PR4645 define i32 @main() { diff --git a/test/Transforms/SimplifyLibCalls/FFS.ll b/test/Transforms/SimplifyLibCalls/FFS.ll index 5ede6e6..ab45f18 100644 --- a/test/Transforms/SimplifyLibCalls/FFS.ll +++ b/test/Transforms/SimplifyLibCalls/FFS.ll @@ -1,5 +1,5 @@ ; Test that the ToAsciiOptimizer works correctly -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: not grep {call.*@ffs} @non_const = external global i32 ; <i32*> [#uses=1] diff --git a/test/Transforms/SimplifyLibCalls/FPrintF.ll b/test/Transforms/SimplifyLibCalls/FPrintF.ll index 29c10dd..4a0d232 100644 --- a/test/Transforms/SimplifyLibCalls/FPrintF.ll +++ b/test/Transforms/SimplifyLibCalls/FPrintF.ll @@ -1,5 +1,5 @@ ; Test that the FPrintFOptimizer works correctly -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: not grep {call.*fprintf} ; This transformation requires the pointer size, as it assumes that size_t is diff --git a/test/Transforms/SimplifyLibCalls/IsDigit.ll b/test/Transforms/SimplifyLibCalls/IsDigit.ll index 6f4dddc..51a769d 100644 --- a/test/Transforms/SimplifyLibCalls/IsDigit.ll +++ b/test/Transforms/SimplifyLibCalls/IsDigit.ll @@ -1,5 +1,5 @@ ; Test that the IsDigitOptimizer works correctly -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: not grep call declare i32 @isdigit(i32) diff --git a/test/Transforms/SimplifyLibCalls/MemCpy.ll b/test/Transforms/SimplifyLibCalls/MemCpy.ll index a1a70ec..39662b1 100644 --- a/test/Transforms/SimplifyLibCalls/MemCpy.ll +++ b/test/Transforms/SimplifyLibCalls/MemCpy.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -constprop -instcombine -S | not grep {call.*llvm.memcpy.i32} +; RUN: opt < %s -constprop -instcombine -S | not grep {call.*llvm.memcpy.i32} @h = constant [2 x i8] c"h\00" ; <[2 x i8]*> [#uses=1] @hel = constant [4 x i8] c"hel\00" ; <[4 x i8]*> [#uses=1] diff --git a/test/Transforms/SimplifyLibCalls/Printf.ll b/test/Transforms/SimplifyLibCalls/Printf.ll index bcc1c22..858a09c 100644 --- a/test/Transforms/SimplifyLibCalls/Printf.ll +++ b/test/Transforms/SimplifyLibCalls/Printf.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -simplify-libcalls -S | grep putchar -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | grep putchar +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: not grep {call.*printf} @str = internal constant [13 x i8] c"hello world\0A\00" ; <[13 x i8]*> [#uses=1] diff --git a/test/Transforms/SimplifyLibCalls/Puts.ll b/test/Transforms/SimplifyLibCalls/Puts.ll index 96a410f..47a33c2 100644 --- a/test/Transforms/SimplifyLibCalls/Puts.ll +++ b/test/Transforms/SimplifyLibCalls/Puts.ll @@ -1,5 +1,5 @@ ; Test that the PutsCatOptimizer works correctly -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: not grep {call.*fputs} ; This transformation requires the pointer size, as it assumes that size_t is diff --git a/test/Transforms/SimplifyLibCalls/SPrintF.ll b/test/Transforms/SimplifyLibCalls/SPrintF.ll index 52e03b6..847e363 100644 --- a/test/Transforms/SimplifyLibCalls/SPrintF.ll +++ b/test/Transforms/SimplifyLibCalls/SPrintF.ll @@ -1,5 +1,5 @@ ; Test that the SPrintFOptimizer works correctly -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: not grep {call.*sprintf} ; This transformation requires the pointer size, as it assumes that size_t is diff --git a/test/Transforms/SimplifyLibCalls/StrCat.ll b/test/Transforms/SimplifyLibCalls/StrCat.ll index e54d51f..4e3d0ab 100644 --- a/test/Transforms/SimplifyLibCalls/StrCat.ll +++ b/test/Transforms/SimplifyLibCalls/StrCat.ll @@ -1,8 +1,8 @@ ; Test that the StrCatOptimizer works correctly ; PR3661 -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: not grep {call.*strcat} -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: grep {puts.*%arg1} ; This transformation requires the pointer size, as it assumes that size_t is diff --git a/test/Transforms/SimplifyLibCalls/StrChr.ll b/test/Transforms/SimplifyLibCalls/StrChr.ll index bd73d4d..50ca0a6 100644 --- a/test/Transforms/SimplifyLibCalls/StrChr.ll +++ b/test/Transforms/SimplifyLibCalls/StrChr.ll @@ -1,5 +1,5 @@ ; Test that the StrChrOptimizer works correctly -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: not grep {call.*@strchr} ; This transformation requires the pointer size, as it assumes that size_t is diff --git a/test/Transforms/SimplifyLibCalls/StrCmp.ll b/test/Transforms/SimplifyLibCalls/StrCmp.ll index e1d0bff..7359635 100644 --- a/test/Transforms/SimplifyLibCalls/StrCmp.ll +++ b/test/Transforms/SimplifyLibCalls/StrCmp.ll @@ -1,5 +1,5 @@ ; Test that the StrCmpOptimizer works correctly -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: not grep {call.*strcmp} @hello = constant [6 x i8] c"hello\00" ; <[6 x i8]*> [#uses=1] diff --git a/test/Transforms/SimplifyLibCalls/StrCpy.ll b/test/Transforms/SimplifyLibCalls/StrCpy.ll index e155af2..7542984 100644 --- a/test/Transforms/SimplifyLibCalls/StrCpy.ll +++ b/test/Transforms/SimplifyLibCalls/StrCpy.ll @@ -1,5 +1,5 @@ ; Test that the StrCpyOptimizer works correctly -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: not grep {call.*strcpy} ; This transformation requires the pointer size, as it assumes that size_t is diff --git a/test/Transforms/SimplifyLibCalls/StrLen.ll b/test/Transforms/SimplifyLibCalls/StrLen.ll index 10de611..45b349d 100644 --- a/test/Transforms/SimplifyLibCalls/StrLen.ll +++ b/test/Transforms/SimplifyLibCalls/StrLen.ll @@ -1,5 +1,5 @@ ; Test that the StrCatOptimizer works correctly -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: not grep {call.*strlen} target datalayout = "e-p:32:32" diff --git a/test/Transforms/SimplifyLibCalls/StrNCat.ll b/test/Transforms/SimplifyLibCalls/StrNCat.ll index 41795c3..d09c022 100644 --- a/test/Transforms/SimplifyLibCalls/StrNCat.ll +++ b/test/Transforms/SimplifyLibCalls/StrNCat.ll @@ -1,7 +1,7 @@ ; Test that the StrNCatOptimizer works correctly -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: not grep {call.*strncat} -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: grep {puts.*%arg1} ; This transformation requires the pointer size, as it assumes that size_t is diff --git a/test/Transforms/SimplifyLibCalls/StrNCmp.ll b/test/Transforms/SimplifyLibCalls/StrNCmp.ll index 8223724..ba77385 100644 --- a/test/Transforms/SimplifyLibCalls/StrNCmp.ll +++ b/test/Transforms/SimplifyLibCalls/StrNCmp.ll @@ -1,5 +1,5 @@ ; Test that the StrNCmpOptimizer works correctly -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: not grep {call.*strncmp} @hello = constant [6 x i8] c"hello\00" ; <[6 x i8]*> [#uses=1] diff --git a/test/Transforms/SimplifyLibCalls/StrNCpy.ll b/test/Transforms/SimplifyLibCalls/StrNCpy.ll index 0ce1ca9..c8af3ca 100644 --- a/test/Transforms/SimplifyLibCalls/StrNCpy.ll +++ b/test/Transforms/SimplifyLibCalls/StrNCpy.ll @@ -1,5 +1,5 @@ ; Test that the StrNCpyOptimizer works correctly -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: not grep {call.*strncpy} ; This transformation requires the pointer size, as it assumes that size_t is diff --git a/test/Transforms/SimplifyLibCalls/ToAscii.ll b/test/Transforms/SimplifyLibCalls/ToAscii.ll index c583f4e..e2b5683 100644 --- a/test/Transforms/SimplifyLibCalls/ToAscii.ll +++ b/test/Transforms/SimplifyLibCalls/ToAscii.ll @@ -1,5 +1,5 @@ ; Test that the ToAsciiOptimizer works correctly -; RUN: opt %s -simplify-libcalls -S | \ +; RUN: opt < %s -simplify-libcalls -S | \ ; RUN: not grep {call.*toascii} declare i32 @toascii(i32) diff --git a/test/Transforms/SimplifyLibCalls/abs.ll b/test/Transforms/SimplifyLibCalls/abs.ll index 637d335..6fbe0b9 100644 --- a/test/Transforms/SimplifyLibCalls/abs.ll +++ b/test/Transforms/SimplifyLibCalls/abs.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplify-libcalls -S | grep {select i1 %ispos} +; RUN: opt < %s -simplify-libcalls -S | grep {select i1 %ispos} ; PR2337 define i32 @test(i32 %x) { diff --git a/test/Transforms/SimplifyLibCalls/exp2.ll b/test/Transforms/SimplifyLibCalls/exp2.ll index b4e23b7..2f5d910 100644 --- a/test/Transforms/SimplifyLibCalls/exp2.ll +++ b/test/Transforms/SimplifyLibCalls/exp2.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplify-libcalls -S | grep {call.*ldexp} | count 4 +; RUN: opt < %s -simplify-libcalls -S | grep {call.*ldexp} | count 4 ; rdar://5852514 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" diff --git a/test/Transforms/SimplifyLibCalls/floor.ll b/test/Transforms/SimplifyLibCalls/floor.ll index 4c3641b..a7af5a9 100644 --- a/test/Transforms/SimplifyLibCalls/floor.ll +++ b/test/Transforms/SimplifyLibCalls/floor.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplify-libcalls -S > %t +; RUN: opt < %s -simplify-libcalls -S > %t ; RUN: not grep {call.*floor(} %t ; RUN: grep {call.*floorf(} %t ; RUN: not grep {call.*ceil(} %t diff --git a/test/Transforms/SimplifyLibCalls/memcmp.ll b/test/Transforms/SimplifyLibCalls/memcmp.ll index 91d0aef..7008736 100644 --- a/test/Transforms/SimplifyLibCalls/memcmp.ll +++ b/test/Transforms/SimplifyLibCalls/memcmp.ll @@ -1,5 +1,5 @@ ; Test that the memcmpOptimizer works correctly -; RUN: opt %s -simplify-libcalls -S | not grep {call.*memcmp} +; RUN: opt < %s -simplify-libcalls -S | not grep {call.*memcmp} @h = constant [2 x i8] c"h\00" ; <[2 x i8]*> [#uses=0] @hel = constant [4 x i8] c"hel\00" ; <[4 x i8]*> [#uses=0] diff --git a/test/Transforms/SimplifyLibCalls/memmove.ll b/test/Transforms/SimplifyLibCalls/memmove.ll index e1fddd9..c0c0050 100644 --- a/test/Transforms/SimplifyLibCalls/memmove.ll +++ b/test/Transforms/SimplifyLibCalls/memmove.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplify-libcalls -S | grep {llvm.memmove} +; RUN: opt < %s -simplify-libcalls -S | grep {llvm.memmove} target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32" target triple = "i686-pc-linux-gnu" diff --git a/test/Transforms/SimplifyLibCalls/memset-64.ll b/test/Transforms/SimplifyLibCalls/memset-64.ll index 0b1db5a..fb752c4 100644 --- a/test/Transforms/SimplifyLibCalls/memset-64.ll +++ b/test/Transforms/SimplifyLibCalls/memset-64.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplify-libcalls -S | grep {llvm.memset} +; RUN: opt < %s -simplify-libcalls -S | grep {llvm.memset} target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" target triple = "x86_64-pc-linux-gnu" diff --git a/test/Transforms/SimplifyLibCalls/memset.ll b/test/Transforms/SimplifyLibCalls/memset.ll index 2e25bdd..0aede06 100644 --- a/test/Transforms/SimplifyLibCalls/memset.ll +++ b/test/Transforms/SimplifyLibCalls/memset.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplify-libcalls -S | grep {llvm.memset} +; RUN: opt < %s -simplify-libcalls -S | grep {llvm.memset} target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32" target triple = "i686-pc-linux-gnu" diff --git a/test/Transforms/SimplifyLibCalls/pow2.ll b/test/Transforms/SimplifyLibCalls/pow2.ll index ce6303d..f8364f7 100644 --- a/test/Transforms/SimplifyLibCalls/pow2.ll +++ b/test/Transforms/SimplifyLibCalls/pow2.ll @@ -1,6 +1,6 @@ ; Testcase for calls to the standard C "pow" function ; -; RUN: opt %s -simplify-libcalls -S | not grep {call .pow} +; RUN: opt < %s -simplify-libcalls -S | not grep {call .pow} declare double @pow(double, double) diff --git a/test/Transforms/SimplifyLibCalls/weak-symbols.ll b/test/Transforms/SimplifyLibCalls/weak-symbols.ll index e07fbd6..5875b21 100644 --- a/test/Transforms/SimplifyLibCalls/weak-symbols.ll +++ b/test/Transforms/SimplifyLibCalls/weak-symbols.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplify-libcalls -S | FileCheck %s +; RUN: opt < %s -simplify-libcalls -S | FileCheck %s ; PR4738 ; SimplifyLibcalls shouldn't assume anything about weak symbols. |