Lines Matching defs:flags
9 // Make sure that flags and wait sit in different cache lines
10 volatile int flags[10];
17 flags[0] = flags[0] + 1;
25 flags[0] = flags[0] + 1;
39 flags[0] = 0;
43 __builtin_ia32_monitor ((void *)&flags, 0, 0);
45 // invalidate flags in this cpu's cache
52 // wait for other thread to modify flags
56 if (flags[0] != 2) {
63 } while (flags[0] != 2 && mwait_cnt < NUM_TRIES);
66 if (flags[0]==2) {
67 printf("mwait regression PASSED, flags[0] = %d\n", flags[0]);
69 printf("mwait regression FAILED, flags[0] = %d\n", flags[0]);