Lines Matching refs:sprintf
1 ; Test that the sprintf library call simplifier works correctly.
17 declare i32 @sprintf(i8*, i8*, ...)
19 ; Check sprintf(dst, fmt) -> llvm.memcpy(str, fmt, strlen(fmt) + 1, 1).
24 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt)
33 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt)
42 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt)
48 ; Check sprintf(dst, "%c", chr) -> *(i8*)dst = chr; *((i8*)dst + 1) = 0.
53 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8 104)
61 ; Check sprintf(dst, "%s", str) -> llvm.memcpy(dest, str, strlen(str) + 1, 1).
66 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8* %str)
74 ; Check sprintf(dst, format, ...) -> siprintf(str, format, ...) if no floating.
79 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i32 187)
88 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, double 1.87)
89 ; CHECK-IPRINTF-NEXT: call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* getelementptr inbounds ([3 x …
96 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, double %d)
97 ; CHECK-NEXT: call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, double %d)