-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #612 from artkhyzha/add-ctrl-to-br
[herd,aarch64] Adding ctrl to indirect branches This is a draft PR aimed at making indirect branches create control dependencies. The idea is to simply let the indirect branches to create a "commit" type of an event; then the `aarch64deps.cat` should automatically draw `ctrl` edges.
- Loading branch information
Showing
7 changed files
with
93 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
AArch64 AK001 (* LB+rel+br-ctrl *) | ||
{ | ||
ins_t *y; | ||
0:X2=x; 0:X4=y; 0:X3=P1:L0; | ||
1:X2=x; 1:X4=y; | ||
} | ||
P0 |P1 ; | ||
LDR W1,[X2] | ADR X5,L1 ; | ||
STLR X3,[X4] | STR X5,[X4] ; | ||
| LDR X3,[X4] ; | ||
| BR X3 ; | ||
|L0: ; | ||
| MOV W0,#1 ; | ||
| STR W0,[X2] ; | ||
|L1: ; | ||
exists (0:X1=1 /\ 1:X0=1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Test AK001 Allowed | ||
States 2 | ||
0:X1=0; 1:X0=0; | ||
0:X1=0; 1:X0=1; | ||
No | ||
Witnesses | ||
Positive: 0 Negative: 3 | ||
Condition exists (0:X1=1 /\ 1:X0=1) | ||
Observation AK001 Never 0 3 | ||
Hash=7967e5120b4f97d2a96964ef4e3b026a | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
AArch64 AK002 (* MP+rel+br-ctrlisb-1 *) | ||
{ | ||
ins_t *y; | ||
0:X2=x; 0:X4=y; 0:X3=P1:L0; | ||
1:X2=x; 1:X4=y; | ||
} | ||
P0 | P1 ; | ||
MOV W1,#1 | ADR X5,L1 ; | ||
STR W1,[X2] | STR X5,[X4] ; | ||
STLR X3,[X4] | LDR X3,[X4] ; | ||
| BR X3 ; | ||
|L0: ; | ||
| ISB ; | ||
| MOV W0,#1 ; | ||
| LDR W1,[X2] ; | ||
|L1: ; | ||
exists (1:X0=1 /\ 1:X1=0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Test AK002 Allowed | ||
States 2 | ||
1:X0=0; 1:X1=0; | ||
1:X0=1; 1:X1=1; | ||
No | ||
Witnesses | ||
Positive: 0 Negative: 3 | ||
Condition exists (1:X0=1 /\ 1:X1=0) | ||
Observation AK002 Never 0 3 | ||
Hash=c4340862f7579b543222fa925b3531ea | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
AArch64 AK003 (* MP+rel+br-ctrlisb-2 *) | ||
{ | ||
ins_t *y; | ||
0:X2=x; 0:X4=y; 0:X3=P1:L0; | ||
1:X2=x; 1:X4=y; | ||
} | ||
P0 | P1 ; | ||
MOV W1,#1 | ADR X5,L1 ; | ||
STR W1,[X2] | STR X5,[X4] ; | ||
STLR X3,[X4] | LDR X3,[X4] ; | ||
| BR X3 ; | ||
|L0: ; | ||
| ISB ; | ||
| MOV W0,#1 ; | ||
|L1: ; | ||
| LDR W1,[X2] ; | ||
exists (1:X0=1 /\ 1:X1=0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Test AK003 Allowed | ||
States 3 | ||
1:X0=0; 1:X1=0; | ||
1:X0=0; 1:X1=1; | ||
1:X0=1; 1:X1=1; | ||
No | ||
Witnesses | ||
Positive: 0 Negative: 5 | ||
Condition exists (1:X0=1 /\ 1:X1=0) | ||
Observation AK003 Never 0 5 | ||
Hash=f1ea3d37edb778d976084e71b2bbafc9 | ||
|