Lines Matching refs:strncpy
1 ; Test that the strncpy library call simplifier works correctly.
13 declare i8* @strncpy(i8*, i8*, i32)
16 ; Check a bunch of strncpy invocations together.
20 ; CHECK-NOT: call i8* @strncpy
27 %rslt1 = call i8* @strncpy(i8* %arg1, i8* %arg2, i32 6)
30 %rslt2 = call i8* @strncpy(i8* %rslt1, i8* %arg3, i32 42)
33 %rslt3 = call i8* @strncpy(i8* %rslt2, i8* %arg4, i32 42)
39 ; Check strncpy(x, "", y) -> memset(x, '\0', y, 1).
46 call i8* @strncpy(i8* %dst, i8* %src, i32 32)
51 ; Check strncpy(x, y, 0) -> x.
58 %ret = call i8* @strncpy(i8* %dst, i8* %src, i32 0)
63 ; Check strncpy(x, s, c) -> memcpy(x, s, c, 1) [s and c are constant].
70 call i8* @strncpy(i8* %dst, i8* %src, i32 6)
82 call i8* @strncpy(i8* %dst, i8* %src, i32 32)
83 ; CHECK: call i8* @strncpy
92 call i8* @strncpy(i8* %dst, i8* %src, i32 8)
93 ; CHECK: call i8* @strncpy