Renamed llvm.x86.sse42.crc32 intrinsics; crc64 doesn't exist.
[oota-llvm.git] / test / Transforms / SimplifyLibCalls / StrNCpy.ll
index 011e9be94cbe35b6e12f87300faa610d7392b308..c8af3ca8c3e279e3f3f824cd46fe3df172a5133c 100644 (file)
@@ -1,7 +1,11 @@
 ; Test that the StrNCpyOptimizer works correctly
-; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | \
+; RUN: opt < %s -simplify-libcalls -S | \
 ; RUN:   not grep {call.*strncpy}
 
+; 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]