Lines Matching refs:arr
70 void check(U1* arr, int n, char* who)
76 (void)VALGRIND_GET_VBITS(arr, shadow, n);
78 arr_i = make_defined(arr[i]);
82 who, i, shadow[i], arr[i]);
109 void do_test_at ( U1* arr )
115 /* Fill arr with random bytes whose shadows match them. */
116 if (0) printf("-------- arr = %p\n", arr);
120 arr[i] = (U1)build(1, randomU1());
123 check(arr, N_BYTES, "after initialisation");
135 *(U1*)(arr+dst) = *(U1*)(arr+src);
142 *(U2*)(arr+dst) = *(U2*)(arr+src);
149 *(U4*)(arr+dst) = *(U4*)(arr+src);
156 *(U8*)(arr+dst) = *(U8*)(arr+src);
166 *(F4*)(arr+dst) = *(F4*)(arr+src);
189 : : "r"(arr+dst), "r"(arr+src) : "memory"
195 *(F8*)(arr+dst) = *(F8*)(arr+src);
207 check(arr, N_BYTES, "final check");
217 U1* arr;
226 arr = malloc(N_BYTES);
227 assert(arr);
228 do_test_at(arr);
229 free(arr);
246 arr = mmap(huge_addr, nbytes_p, PROT_READ|PROT_WRITE,
248 if (arr != MAP_FAILED)
258 assert(arr != MAP_FAILED);
260 do_test_at(arr);