Test DETOUR0151

Executions for behaviour: "0:R1=1 ; 0:R2=0 ; 2:R0=0 ; 2:R2=0"

Executions for behaviour: "0:R1=1 ; 0:R2=0 ; 2:R0=1 ; 2:R2=0"

Executions for behaviour: "0:R1=1 ; 0:R2=0 ; 2:R0=0 ; 2:R2=1"

Executions for behaviour: "0:R1=1 ; 0:R2=0 ; 2:R0=1 ; 2:R2=1"

ARM DETOUR0151
"PodWR DetourR PodRW Rfe DpAddrdR Fre"
Cycle=Rfe DpAddrdR Fre PodWR DetourR PodRW
Prefetch=0:x=F,0:z=W,1:z=F,1:x=T
Com=Rf Fr
Orig=PodWR DetourR PodRW Rfe DpAddrdR Fre
{
%x0=x; %y0=y; %z0=z;
%y1=y;
%z2=z; %x2=x;
}
 P0           | P1           | P2              ;
 MOV R0,#1    | MOV R0,#1    | LDR R0,[%z2]    ;
 STR R0,[%x0] | STR R0,[%y1] | EOR R1,R0,R0    ;
 LDR R1,[%y0] |              | LDR R2,[R1,%x2] ;
 LDR R2,[%y0] |              |                 ;
 MOV R3,#1    |              |                 ;
 STR R3,[%z0] |              |                 ;
Observed
    0:R1=1; 0:R2=0; 2:R0=0; 2:R2=0;
and 0:R1=1; 0:R2=0; 2:R0=1; 2:R2=0;
and 0:R1=1; 0:R2=0; 2:R0=0; 2:R2=1;
and 0:R1=1; 0:R2=0; 2:R0=1; 2:R2=1;