Executions for behaviour:
"0:R0=0 ; 0:R2=0 ; 1:R0=0 ; 1:R2=0 ; x=1 ; y=1"
Executions for behaviour:
"0:R0=1 ; 0:R2=0 ; 1:R0=0 ; 1:R2=0 ; x=2 ; y=1"
Executions for behaviour:
"0:R0=0 ; 0:R2=0 ; 1:R0=1 ; 1:R2=0 ; x=1 ; y=2"
ARM 2+2INC+dmb.sts "2 times 2 increments, with barriers, SC condition" Prefetch=0:x=F,0:y=W,1:y=F,1:x=W Com=Rf Rf { %x0=x; %y0=y; %y1=y; %x1=x; } P0 | P1 ; LDR R0,[%x0] | LDR R0,[%y1] ; ADD R1,R0,#1 | ADD R1,R0,#1 ; STR R1,[%x0] | STR R1,[%y1] ; DMB ST | DMB ST ; LDR R2,[%y0] | LDR R2,[%x1] ; ADD R3,R2,#1 | ADD R3,R2,#1 ; STR R3,[%y0] | STR R3,[%x1] ; Observed 0:R0=0; 0:R2=0; 1:R0=0; 1:R2=0; x=1; y=1; and 0:R0=1; 0:R2=0; 1:R0=0; 1:R2=0; x=2; y=1; and 0:R0=0; 0:R2=0; 1:R0=1; 1:R2=0; x=1; y=2;