Skip to content

Commit

Permalink
Merge pull request #881 from herd/fix-tests
Browse files Browse the repository at this point in the history
[herd] Fix a few glitches in tests
  • Loading branch information
maranget authored Dec 3, 2024
2 parents cd9b4a5 + 61e3127 commit f14f8ef
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions herd/tests/instructions/AArch64.self/NORUN
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ S15
S16
S17
S23
#This test faults on non-existing instruction
S20
2 changes: 1 addition & 1 deletion herd/tests/instructions/AArch64/A236.litmus
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AArch64 236
AArch64 A236

(* Tests MVN Register instruction *)
(* Remember inverting 00 -> 11 which is 0 to -1 in 2s complement *)
Expand Down
4 changes: 2 additions & 2 deletions herd/tests/instructions/AArch64/A236.litmus.expected
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Test 236 Required
Test A236 Required
States 1
0:X0=-1; 0:X3=-2;
Ok
Witnesses
Positive: 1 Negative: 0
Condition forall (0:X0=-1 /\ 0:X3=-2)
Observation 236 Always 1 0
Observation A236 Always 1 0
Hash=8205eb706c7f2a58368a8bdc3b855c37

4 changes: 3 additions & 1 deletion herd/tests/instructions/AArch64/L086.litmus
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
AArch64 L086
(* Allocate register X1 to X1 *)
Stable=X1
{
0:X0=instr:"ADR X1,.+0";
}
Expand All @@ -8,4 +10,4 @@ L0: ;
LDR W2,[X1] ;
CMP W0,W2 ;
CSET W3,EQ ;
forall 0:X3=1
forall 0:X3=1

0 comments on commit f14f8ef

Please sign in to comment.