Lines Matching refs:memcmp

4 ; Exercise folding of memcmp calls with constant arrays and nonconstant
7 declare i32 @memcmp(i8*, i8*, i64)
16 ; Exercise memcmp(A, B, N) folding of arrays with the same bytes.
51 ; Fold memcmp(a, b, n) to 0.
52 %c0_0 = call i32 @memcmp(i8* %p0, i8* %q0, i64 %n)
56 ; Fold memcmp(a, b + 1, n) to N != 0 ? -1 : 0.
57 %c0_1 = call i32 @memcmp(i8* %p0, i8* %q1, i64 %n)
61 ; Fold memcmp(a, b + 2, n) to N != 0 ? -1 : 0.
62 %c0_2 = call i32 @memcmp(i8* %p0, i8* %q2, i64 %n)
66 ; Fold memcmp(a, b + 3, n) to N != 0 ? -1 : 0.
67 %c0_3 = call i32 @memcmp(i8* %p0, i8* %q3, i64 %n)
71 ; Fold memcmp(a, b + 4, n) to 0.
72 %c0_4 = call i32 @memcmp(i8* %p0, i8* %q4, i64 %n)
76 ; Fold memcmp(a, b + 5, n) to N != 0 ? -1 : 0.
77 %c0_5 = call i32 @memcmp(i8* %p0, i8* %q5, i64 %n)
84 ; Vefify that a memcmp() call involving a constant array with unknown
89 ; CHECK-NEXT: [[C0_0:%.*]] = call i32 @memcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @a…
97 ; Do not fold memcmp(a, ax, n).
98 %c0_0 = call i32 @memcmp(i8* %p0, i8* %q0, i64 %n)
106 ; Exercise memcmp(A, C, N) folding of arrays with the same leading bytes
146 ; Fold memcmp(a, c, n) to N > 7 ? -1 : 0.
147 %c0_0 = call i32 @memcmp(i8* %p0, i8* %q0, i64 %n)
151 ; Fold memcmp(a, c + 1, n) to N != 0 ? -1 : 0.
152 %c0_1 = call i32 @memcmp(i8* %p0, i8* %q1, i64 %n)
156 ; Fold memcmp(a, c + 2, n) to N != 0 ? -1 : 0.
157 %c0_2 = call i32 @memcmp(i8* %p0, i8* %q2, i64 %n)
161 ; Fold memcmp(a, c + 3, n) to N != 0 ? -1 : 0.
162 %c0_3 = call i32 @memcmp(i8* %p0, i8* %q3, i64 %n)
166 ; Fold memcmp(a, c + 4, n) to N > 3 ? -1 : 0.
167 %c0_4 = call i32 @memcmp(i8* %p0, i8* %q4, i64 %n)
171 ; Fold memcmp(a, c + 5, n) to N != 0 ? -1 : 0.
172 %c0_5 = call i32 @memcmp(i8* %p0, i8* %q4, i64 %n)
180 ; Exercise memcmp(A, D, N) folding of arrays of different sizes and
207 ; Fold memcmp(a, d, n) to N != 0 ? -1 : 0.
208 %c0_0 = call i32 @memcmp(i8* %p0, i8* %q0, i64 %n)
212 ; Fold memcmp(a, d + 1, n) to N != 0 -1 : 0.
213 %c0_1 = call i32 @memcmp(i8* %p0, i8* %q1, i64 %n)
217 ; Fold memcmp(a + 1, d + 1, n) to 0.
218 %c1_1 = call i32 @memcmp(i8* %p1, i8* %q1, i64 %n)
222 ; Fold memcmp(a + 6, d + 6, n) to 0.
223 %c6_6 = call i32 @memcmp(i8* %p6, i8* %q6, i64 %n)
231 ; Exercise memcmp(A, D, N) folding of arrays with the same bytes and
244 %c0_0 = call i32 @memcmp(i8* %p0, i8* %q0, i64 %nz)