Lines Matching +full:rw +full:- +full:p
1 // RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
18 static void access(char *p, int sz, int rw) { in access() argument
19 if (rw) { in access()
21 case 0: __tsan_unaligned_write2(p); break; in access()
22 case 1: __tsan_unaligned_write4(p); break; in access()
23 case 2: __tsan_unaligned_write8(p); break; in access()
28 case 0: __tsan_unaligned_read2(p); break; in access()
29 case 1: __tsan_unaligned_read4(p); break; in access()
30 case 2: __tsan_unaligned_read8(p); break; in access()
50 for (int rw = 0; rw < 2; rw++) { in Test() local
51 char *p = (char*)obj + off; in Test() local
53 // printf("thr=%d off=%d sz1=%d sz2=%d rw=%d p=%p\n", in Test()
54 // main, off, sz1, sz2, rw, p); in Test()
55 access(p, sz1, true); in Test()
57 p += accesssize(sz1); in Test()
58 // printf("thr=%d off=%d sz1=%d sz2=%d rw=%d p=%p\n", in Test()
59 // main, off, sz1, sz2, rw, p); in Test()
60 access(p, sz2, rw); in Test()
69 void *Thread(void *p) { in Thread() argument
70 (void)p; in Thread()
83 // CHECK-NOT: WARNING: ThreadSanitizer: