Skip to content

Commit bf3c81a

Browse files
committed
PVM tests v0.4
1 parent a54d7cf commit bf3c81a

File tree

317 files changed

+136779
-1494
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

317 files changed

+136779
-1494
lines changed

pvm/LICENSE

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
The `programs/riscv_*` test files are licensed under the following terms:
2+
3+
Copyright (c) 2012-2015, The Regents of the University of California (Regents).
4+
All Rights Reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
1. Redistributions of source code must retain the above copyright
9+
notice, this list of conditions and the following disclaimer.
10+
2. Redistributions in binary form must reproduce the above copyright
11+
notice, this list of conditions and the following disclaimer in the
12+
documentation and/or other materials provided with the distribution.
13+
3. Neither the name of the Regents nor the
14+
names of its contributors may be used to endorse or promote products
15+
derived from this software without specific prior written permission.
16+
17+
IN NO EVENT SHALL REGENTS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
18+
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING
19+
OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF REGENTS HAS
20+
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21+
22+
REGENTS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
23+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24+
PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION, IF ANY, PROVIDED
25+
HEREUNDER IS PROVIDED "AS IS". REGENTS HAS NO OBLIGATION TO PROVIDE
26+
MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

pvm/README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PVM Test Vectors, version 0.3
1+
# PVM Test Vectors, version 0.4
22

33
## How to use this
44

@@ -16,18 +16,23 @@ See [TESTCASES.md](./TESTCASES.md) for a human-readable index of all of the test
1616

1717
* 100% instruction coverage
1818
* Tests for abnormal skip values for each instruction type
19-
* Tests for when the initial instruction counter (ı) starts somewhere else than 0
2019
* Tests involving host calls
2120
* Tests for invalid/malformed program blobs
22-
* Add bigger integration-like tests
2321
* More gas metering tests; proper gas cost model (current one is a placeholder)
2422

2523
## Changelog
2624

25+
### v0.4
26+
27+
* The tests now target 64-bit PVM, in alignment with GP 0.5.4.
28+
* The `trap` exit status is now called `panic` to align with the GP.
29+
* Added new exit status: `page-fault`; tests which previously panicked when accessing unpaged memory now generate page faults.
30+
* Added 106 new tests from the [RISC-V test suite](https://github.com/riscv-software-src/riscv-tests) transpiled into PVM.
31+
2732
### v0.3
2833

2934
* Removed tests which were testing gas behavior that is not yet described in the GP:
30-
- `inst_load_u8_trap.json`,
35+
- `inst_load_u8_trap`
3136
- `inst_store_u8_trap_inaccessible`
3237
- `inst_store_u8_trap_read_only`
3338

0 commit comments

Comments
 (0)