Replace all instances of dg.exp file with lit.local.cfg, since all tests are run...
[oota-llvm.git] / test / Transforms / SimplifyLibCalls / StrNCat.ll
index 0ce319c5e8f329ec36b11187f451e2199b6313fb..d09c022fd4cd9ac48c99aac5c7ee173ca348601d 100644 (file)
@@ -1,9 +1,13 @@
 ; Test that the StrNCatOptimizer works correctly
-; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | \
+; RUN: opt < %s -simplify-libcalls -S | \
 ; RUN:   not grep {call.*strncat}
-; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | \
+; RUN: opt < %s -simplify-libcalls -S | \
 ; RUN:   grep {puts.*%arg1}
 
+; This transformation requires the pointer size, as it assumes that size_t is
+; the size of a pointer.
+target datalayout = "-p:64:64:64"
+
 @hello = constant [6 x i8] c"hello\00"         ; <[6 x i8]*> [#uses=1]
 @null = constant [1 x i8] zeroinitializer              ; <[1 x i8]*> [#uses=1]
 @null_hello = constant [7 x i8] c"\00hello\00"         ; <[7 x i8]*> [#uses=1]