1 C ISA2+pooncerelease+poacquirerelease+poacquireonce
6 * This litmus test demonstrates that a release-acquire chain suffices
7 * to order P0()'s initial write against P2()'s final read. The reason
8 * that the release-acquire chain suffices is because in all but one
9 * case (P2() to P0()), each process reads from the preceding process's
10 * write. In memory-model-speak, there is only one non-reads-from
11 * (AKA non-rf) link, so release-acquire is all that is needed.
19 smp_store_release(y, 1);
26 r0 = smp_load_acquire(y);
27 smp_store_release(z, 1);
35 r0 = smp_load_acquire(z);
39 exists (1:r0=1 /\ 2:r0=1 /\ 2:r1=0)