• Home
  • Raw
  • Download

Lines Matching refs:sprintf

2 ; Test that the sprintf library call simplifier works correctly.
19 declare i32 @sprintf(i8*, i8*, ...)
21 ; Check sprintf(dst, fmt) -> llvm.memcpy(str, fmt, strlen(fmt) + 1, 1).
29 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt)
39 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt)
49 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt)
53 ; Check sprintf(dst, "%c", chr) -> *(i8*)dst = chr; *((i8*)dst + 1) = 0.
63 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8 104)
67 ; Check sprintf(dst, "%s", str) -> strcpy(dst, "%s", str) if result is unused.
75 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8* %str)
79 ; Check sprintf(dst, format, ...) -> siprintf(str, format, ...) if no floating.
87 ; WIN-NEXT: [[TMP1:%.*]] = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull dereferenceable(1) [[DS…
91 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i32 187)
95 ; Check sprintf(dst, "%s", str) -> llvm.memcpy(dest, str, strlen(str) + 1, 1).
112 %r = call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8* %str)
116 ; Check sprintf(dst, "%s", str) -> llvm.memcpy(dest, str, strlen(str) + 1, 1).
124 %r = call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8* %str)
128 ; Check sprintf(dst, "%s", str) -> stpcpy(dest, str) - dest
145 %r = call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8* %str)
151 ; CHECK-NEXT: [[TMP1:%.*]] = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull dereferenceable(1) [[…
155 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, double 1.87)
161 ; CHECK-NEXT: [[TMP1:%.*]] = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull dereferenceable(1) [[…
164 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, double %d)
177 ; WIN-NEXT: [[R:%.*]] = call i32 (i8*, i8*, ...) @sprintf(i8* nonnull dereferenceable(1) [[DST:%…
181 %r = call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8* %str)