Lines Matching refs:strncmp
2 ; Test that the strncmp library call simplifier works correctly.
12 declare i32 @strncmp(i8*, i8*, i32)
14 ; strncmp("", x, n) -> -*x
24 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
28 ; strncmp(x, "", n) -> *x
37 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
41 ; strncmp(x, y, n) -> cnst
49 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
60 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 10)
71 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 4)
75 ; strncmp(x,y,1) -> memcmp(x,y,1)
86 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 1)
90 ; strncmp(x,y,0) -> 0
96 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 0)
100 ; strncmp(x,x,n) -> 0
106 %temp1 = call i32 @strncmp(i8* %str, i8* %str, i32 %n)
110 ; strncmp(nonnull x, nonnull y, n) -> strncmp(x, y, n)
113 ; CHECK-NEXT: [[TEMP1:%.*]] = call i32 @strncmp(i8* nonnull [[STR1:%.*]], i8* nonnull [[STR2:%.*…
117 %temp1 = call i32 @strncmp(i8* nonnull %str1, i8* nonnull %str2, i32 %n)
121 ; strncmp(nonnull x, nonnull y, 0) -> 0
127 %temp1 = call i32 @strncmp(i8* nonnull %str1, i8* nonnull %str2, i32 0)
131 ; strncmp(x, y, 5) -> strncmp(nonnull x, nonnull y, 5)
134 ; CHECK-NEXT: [[TEMP1:%.*]] = call i32 @strncmp(i8* nonnull dereferenceable(1) [[STR1:%.*]], i8*…
138 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 5)
144 ; CHECK-NEXT: [[TEMP1:%.*]] = call i32 @strncmp(i8* [[STR1:%.*]], i8* [[STR2:%.*]], i32 [[N:%.*]…
148 %temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 %n)