Lines Matching refs:strncmp
1 ; Test that the strncmp library call simplifier works correctly.
11 declare i32 @strncmp(i8*, i8*, i32)
13 ; strncmp("", x, n) -> -*x
22 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
26 ; strncmp(x, "", n) -> *x
34 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
38 ; strncmp(x, y, n) -> cnst
45 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
55 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
65 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 4)
69 ; strncmp(x,y,1) -> memcmp(x,y,1)
79 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 1)
83 ; strncmp(x,y,0) -> 0
88 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 0)
92 ; strncmp(x,x,n) -> 0
97 %temp1 = call i32 @strncmp(i8* %str, i8* %str, i32 %n)