Skip to content

Commit 18bf65f

Browse files
authored
Merge pull request herd#1797 from herd/one-more-self-test
[test] New test The new test restores S27 previous intent more explicitly.
2 parents 9ae435c + be117e4 commit 18bf65f

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

herd/tests/instructions/AArch64.self/S27.litmus

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ ins_t* 0:X3;
1212
LDR W4,[X0] ;
1313
ADD W6,W6,#2 ;
1414
B .+8 ;
15-
L0: ;
15+
L0: ;
1616
ADR X3,L0 ;
1717
STR W4,[X1] ;
1818
L1: ;
1919
MOV W6,W2 ;
2020
LDR W5,[X1] ;
2121
locations [0:X3;0:X6;]
2222
exists 0:X3=label:"P0:L1" /\ 0:X6=2
23-
23+
2424

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
AArch64 S30
2+
(* Executing and reading as data may differ *)
3+
{
4+
0:X0=P0:L0;
5+
0:X2=NOP;
6+
}
7+
P0 ;
8+
ADD W1,W1,#1 ;
9+
STR W2,[X0] ;
10+
L0: ;
11+
B .+8 ;
12+
ADD W1,W1,#2 ;
13+
LDR W3,[X0] ;
14+
exists 0:X3=NOP /\ 0:X1=3
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Test S30 Allowed
2+
States 2
3+
0:X1=1; 0:X3=NOP;
4+
0:X1=3; 0:X3=NOP;
5+
Ok
6+
Witnesses
7+
Positive: 1 Negative: 1
8+
Condition exists (0:X3=NOP /\ 0:X1=3)
9+
Observation S30 Sometimes 1 1
10+
Hash=6180f61ca45d616cf867dd1481ec4e20
11+

0 commit comments

Comments
 (0)