Skip to content

Commit 83596b5

Browse files
committed
PVM tests v0.2: inst_set_*: non-zero initial value of output reg
1 parent fa6cf0a commit 83596b5

7 files changed

+30
-6
lines changed

pvm/TESTCASES.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,13 +1486,17 @@ Gas consumed: 10000 -> 9999
14861486

14871487
Initial non-zero registers:
14881488
* r7 = 0xfffffff6
1489+
* r9 = 0xdeadbeef
14891490

14901491
```
14911492
: @0
14921493
0: 3d 79 0a r9 = r7 >s 10
14931494
3: invalid
14941495
```
14951496

1497+
Registers after execution (only changed registers):
1498+
* r9 = 0x0 (initially was 0xdeadbeef)
1499+
14961500
Program should end with: trap
14971501

14981502
Final value of the program counter: 3
@@ -1525,13 +1529,17 @@ Gas consumed: 10000 -> 9998
15251529

15261530
Initial non-zero registers:
15271531
* r7 = 0xa
1532+
* r9 = 0xdeadbeef
15281533

15291534
```
15301535
: @0
15311536
0: 27 79 f6 r9 = r7 >u 0xfffffff6
15321537
3: invalid
15331538
```
15341539

1540+
Registers after execution (only changed registers):
1541+
* r9 = 0x0 (initially was 0xdeadbeef)
1542+
15351543
Program should end with: trap
15361544

15371545
Final value of the program counter: 3
@@ -1565,13 +1573,17 @@ Gas consumed: 10000 -> 9998
15651573
Initial non-zero registers:
15661574
* r7 = 0xa
15671575
* r8 = 0xfffffff6
1576+
* r9 = 0xdeadbeef
15681577

15691578
```
15701579
: @0
15711580
0: 3a 87 09 r9 = r7 <s r8
15721581
3: invalid
15731582
```
15741583

1584+
Registers after execution (only changed registers):
1585+
* r9 = 0x0 (initially was 0xdeadbeef)
1586+
15751587
Program should end with: trap
15761588

15771589
Final value of the program counter: 3
@@ -1605,13 +1617,17 @@ Gas consumed: 10000 -> 9998
16051617

16061618
Initial non-zero registers:
16071619
* r7 = 0xa
1620+
* r9 = 0xdeadbeef
16081621

16091622
```
16101623
: @0
16111624
0: 38 79 f6 r9 = r7 <s -10
16121625
3: invalid
16131626
```
16141627

1628+
Registers after execution (only changed registers):
1629+
* r9 = 0x0 (initially was 0xdeadbeef)
1630+
16151631
Program should end with: trap
16161632

16171633
Final value of the program counter: 3
@@ -1645,13 +1661,17 @@ Gas consumed: 10000 -> 9998
16451661
Initial non-zero registers:
16461662
* r7 = 0xfffffff6
16471663
* r8 = 0xa
1664+
* r9 = 0xdeadbeef
16481665

16491666
```
16501667
: @0
16511668
0: 24 87 09 r9 = r7 <u r8
16521669
3: invalid
16531670
```
16541671

1672+
Registers after execution (only changed registers):
1673+
* r9 = 0x0 (initially was 0xdeadbeef)
1674+
16551675
Program should end with: trap
16561676

16571677
Final value of the program counter: 3
@@ -1685,13 +1705,17 @@ Gas consumed: 10000 -> 9998
16851705

16861706
Initial non-zero registers:
16871707
* r7 = 0xfffffff6
1708+
* r9 = 0xdeadbeef
16881709

16891710
```
16901711
: @0
16911712
0: 1b 79 0a r9 = r7 <u 0xa
16921713
3: invalid
16931714
```
16941715

1716+
Registers after execution (only changed registers):
1717+
* r9 = 0x0 (initially was 0xdeadbeef)
1718+
16951719
Program should end with: trap
16961720

16971721
Final value of the program counter: 3

pvm/programs/inst_set_greater_than_signed_imm_0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
0,
1111
4294967286,
1212
0,
13-
0,
13+
3735928559,
1414
0,
1515
0,
1616
0

pvm/programs/inst_set_greater_than_unsigned_imm_0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
0,
1111
10,
1212
0,
13-
0,
13+
3735928559,
1414
0,
1515
0,
1616
0

pvm/programs/inst_set_less_than_signed_0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
0,
1111
10,
1212
4294967286,
13-
0,
13+
3735928559,
1414
0,
1515
0,
1616
0

pvm/programs/inst_set_less_than_signed_imm_0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
0,
1111
10,
1212
0,
13-
0,
13+
3735928559,
1414
0,
1515
0,
1616
0

pvm/programs/inst_set_less_than_unsigned_0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
0,
1111
4294967286,
1212
10,
13-
0,
13+
3735928559,
1414
0,
1515
0,
1616
0

pvm/programs/inst_set_less_than_unsigned_imm_0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
0,
1111
4294967286,
1212
0,
13-
0,
13+
3735928559,
1414
0,
1515
0,
1616
0

0 commit comments

Comments
 (0)