• Home
  • Raw
  • Download

Lines Matching refs:strlen

2 ; Test that the strlen library call simplifier works correctly.
16 declare i32 @strlen(i8*)
18 ; Check strlen(string constant) -> integer constant.
25 %hello_l = call i32 @strlen(i8* %hello_p)
34 %null_l = call i32 @strlen(i8* %null_p)
43 %null_hello_l = call i32 @strlen(i8* %null_hello_p)
51 %len = tail call i32 @strlen(i8* @nullstring) nounwind
55 ; Check strlen(x) == 0 --> *x == 0.
62 %hello_l = call i32 @strlen(i8* %hello_p)
73 %str_l = call i32 @strlen(i8* %str_p)
78 ; Check strlen(x) != 0 --> *x != 0.
85 %hello_l = call i32 @strlen(i8* %hello_p)
96 %str_l = call i32 @strlen(i8* %str_p)
109 %l = call i32 @strlen(i8* %s)
114 ; strlen(@hello + x) --> 5 - x
122 %hello_l = call i32 @strlen(i8* %hello_p)
126 ; strlen(@null_hello_mid + (x & 7)) --> 9 - (x & 7)
136 %hello_l = call i32 @strlen(i8* %hello_p)
144 ; CHECK-NEXT: [[A_L:%.*]] = call i32 @strlen(i8* nonnull dereferenceable(1) getelementptr inboun…
148 %a_l = call i32 @strlen(i8* %a_p)
152 ; strlen(@null_hello + x) should not be simplified to a sub instruction.
157 ; CHECK-NEXT: [[HELLO_L:%.*]] = call i32 @strlen(i8* nonnull [[HELLO_P]])
161 %hello_l = call i32 @strlen(i8* %hello_p)
168 ; CHECK-NEXT: [[HELLO_L:%.*]] = call i32 @strlen(i8* [[HELLO_P]])
172 %hello_l = call i32 @strlen(i8* %hello_p)
176 ; strlen(@null_hello_mid + (x & 15)) should not be simplified to a sub instruction.
182 ; CHECK-NEXT: [[HELLO_L:%.*]] = call i32 @strlen(i8* nonnull [[HELLO_P]])
187 %hello_l = call i32 @strlen(i8* %hello_p)
195 ; CHECK-NEXT: [[HELLO_L:%.*]] = call i32 @strlen(i8* [[HELLO_P]])
200 %hello_l = call i32 @strlen(i8* %hello_p)
206 ; CHECK-NEXT: [[LEN:%.*]] = tail call i32 @strlen(i8* nonnull dereferenceable(1) [[STR:%.*]]) #1
209 %len = tail call i32 @strlen(i8* %str) nounwind
215 ; CHECK-NEXT: [[LEN:%.*]] = tail call i32 @strlen(i8* [[STR:%.*]]) #1
218 %len = tail call i32 @strlen(i8* %str) nounwind
229 …%len = tail call i32 @strlen(i8* nonnull dereferenceable(1) getelementptr inbounds ([32 x i8], [32…
242 …%len = tail call i32 @strlen(i8* nonnull dereferenceable(1) getelementptr inbounds ([32 x i8], [32…
253 %len = tail call i32 @strlen(i8* nonnull dereferenceable(1) %ptr)
268 %len = tail call i32 @strlen(i8* nonnull dereferenceable(1) %ptr)