Skip to content

Commit

Permalink
Merge pull request #1714 from AleoHQ/feat/negative-instr-parse-tests
Browse files Browse the repository at this point in the history
[tests] Some negative instruction parsing tests.
  • Loading branch information
howardwu authored Jun 27, 2023
2 parents 1a6e4fd + 3d46092 commit d00971a
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,57 @@
add s0 r1 into r3;
^

- |+
0: at line 1, in Tag:
hash.bhp2048 r0 into r1 as field;
^

1: at line 1, in Alt:
hash.bhp2048 r0 into r1 as field;
^

- |+
0: at line 1, in Tag:
hash.pds2 r0 into r1 as field;
^

1: at line 1, in Alt:
hash.pds2 r0 into r1 as field;
^

- |+
0: at line 1, in Tag:
commit.ped128 r0 r1 into r2;
^

1: at line 1, in Alt:
commit.ped128 r0 r1 into r2;
^

- |+
0: at line 1, in Tag:
add_w r0 r1 into r2;
^

1: at line 1, in Alt:
add_w r0 r1 into r2;
^

- |+
0: at line 1, in Tag:
assert r0;
^

1: at line 1, in Alt:
assert r0;
^

- |+
0: at line 1, in Tag:
neg r0 into 3field;
^

1: at line 1, in Alt:
neg r0 into 3field;
^

Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
floo r0 r1 into r2;
add s0 r1 into r3;
hash.bhp2048 r0 into r1 as field;
hash.pds2 r0 into r1 as field;
commit.ped128 r0 r1 into r2;
add_w r0 r1 into r2;
assert r0;
neg r0 into 3field;

0 comments on commit d00971a

Please sign in to comment.