LISA auto/LB-LRR+R-Oc+R-Oc
(*
* Result: Sometimes
* P0-P1 rf R-Oc: Never->Maybe: Note lack of C11 guarantee, control dependency
* P1 Oc,R: Note lack of C11 guarantee
* P1-P2 rf R-Oc: Note lack of C11 guarantee, control dependency
* P2 Oc,LRR: Maybe->Sometimes: Control dependencies do not order trailing reads
*)
{
1:r4=1; 2:r4=1;
}
P0 | P1 | P2 | P3 ;
r[once] r1 u0 | r[once] r1 x1 | r[once] r1 x2 | w[once] u0 1 ;
w[release] x1 1 | mov r4 (neq r1 r4) | mov r4 (neq r1 r4) | ;
| b[] r4 CTRL1 | b[] r4 CTRL2 | ;
| w[release] x2 1 | r[once] r2 u0 | ;
| CTRL1: | CTRL2: | ;
Observed
2:r2=0; 2:r1=1; 1:r1=1; 0:r1=1;