Home | History | Annotate | Download | only in InstCombine

Lines Matching full:strlen

1 ; Test that the strlen library call simplifier works correctly.
13 declare i32 @strlen(i8*)
15 ; Check strlen(string constant) -> integer constant.
20 %hello_l = call i32 @strlen(i8* %hello_p)
28 %null_l = call i32 @strlen(i8* %null_p)
36 %null_hello_l = call i32 @strlen(i8* %null_hello_p)
43 %len = tail call i32 @strlen(i8* @nullstring) nounwind
48 ; Check strlen(x) == 0 --> *x == 0.
53 %hello_l = call i32 @strlen(i8* %hello_p)
62 %null_l = call i32 @strlen(i8* %null_p)
68 ; Check strlen(x) != 0 --> *x != 0.
73 %hello_l = call i32 @strlen(i8* %hello_p)
82 %null_l = call i32 @strlen(i8* %null_p)
93 %a_l = call i32 @strlen(i8* %a_p)
94 ; CHECK-NEXT: %a_l = call i32 @strlen