6 * This litmus test demonstrates that in LKMM, plain accesses
7 * carry dependencies much like accesses to registers:
8 * The data stored to *z1 and *z2 by P0() originates from P0()'s
9 * READ_ONCE(), and therefore using that data to compute the
10 * conditional of P0()'s if-statement creates a control dependency
11 * from that READ_ONCE() to P0()'s WRITE_ONCE().
16 P0(int *x, int *y, int *z1, int *z2)
18 int a = READ_ONCE(*x);
27 int r = smp_load_acquire(y);
28 smp_store_release(x, r);