Lines Matching refs:sprintf
2 ; Test that the sprintf library call simplifier works correctly.
23 declare i32 @sprintf(i8*, i8*, ...)
25 ; Check sprintf(dst, fmt) -> llvm.memcpy(str, fmt, strlen(fmt) + 1, 1).
33 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt)
43 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt)
53 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt)
57 ; Check sprintf(dst, "%c", chr) -> *(i8*)dst = chr; *((i8*)dst + 1) = 0.
67 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8 104)
71 ; Check sprintf(dst, "%s", str) -> strcpy(dst, "%s", str) if result is unused.
79 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8* %str)
83 ; Check sprintf(dst, format, ...) -> siprintf(str, format, ...) if no floating.
91 ; WIN-NEXT: [[TMP1:%.*]] = call i32 (i8*, i8*, ...) @sprintf(i8* noundef nonnull dereferenceable…
95 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i32 187)
99 ; Check sprintf(dst, "%s", str) -> llvm.memcpy(dest, str, strlen(str) + 1, 1).
116 %r = call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8* %str)
120 ; Check sprintf(dst, "%s", str) -> llvm.memcpy(dest, str, strlen(str) + 1, 1).
128 %r = call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8* %str)
132 ; Check sprintf(dst, "%s", str) -> stpcpy(dest, str) - dest
149 %r = call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8* %str)
155 ; CHECK-NEXT: [[TMP1:%.*]] = call i32 (i8*, i8*, ...) @sprintf(i8* noundef nonnull dereferenceab…
159 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, double 1.87)
165 ; CHECK-NEXT: [[TMP1:%.*]] = call i32 (i8*, i8*, ...) @sprintf(i8* noundef nonnull dereferenceab…
168 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, double %d)
181 ; WIN-NEXT: [[R:%.*]] = call i32 (i8*, i8*, ...) @sprintf(i8* noundef nonnull dereferenceable(1)…
185 %r = call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8* %str)