Skip to content
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
24ab5c8
Added blake test cases
lorenzogentile404 May 15, 2026
8fe72e6
added comments and used more explicit names
lorenzogentile404 May 15, 2026
9daf65a
ras
lorenzogentile404 May 15, 2026
c900c75
properly checked exit code of the test
lorenzogentile404 May 15, 2026
8426ec7
Merge branch '3116-zktracer-add-more-blake-test-cases' of github.com:…
lorenzogentile404 May 15, 2026
2bd5bed
ras
lorenzogentile404 May 15, 2026
7b1b0c2
fixed run_blake2f_full.sh
lorenzogentile404 May 15, 2026
756c529
added README
lorenzogentile404 May 15, 2026
5ea4f29
test: add blake2f vector selectors
lorenzogentile404 May 15, 2026
b18db17
test: simplify blake2f all runner
lorenzogentile404 May 15, 2026
f5d92ce
added comment
lorenzogentile404 May 15, 2026
67ab39e
Merge branch 'main' into 3116-zktracer-add-more-blake-test-cases
lorenzogentile404 May 18, 2026
8466057
added atomic assembly tests to the repo and removed python script to …
lorenzogentile404 May 18, 2026
eb74c95
test: convert blake2f vectors to in bytes
lorenzogentile404 May 18, 2026
af15f81
updated README
lorenzogentile404 May 18, 2026
695d13d
added to repo atomic assembly tests
lorenzogentile404 May 18, 2026
b05eb70
ras
lorenzogentile404 May 18, 2026
9cdf23d
removed script to run op tests all together
lorenzogentile404 May 18, 2026
c5ddb4e
test: move blake2f all runner to examples makefile
lorenzogentile404 May 18, 2026
2b0d5c3
ras
lorenzogentile404 May 18, 2026
35c5bc9
test: rename blake all vectors target
lorenzogentile404 May 18, 2026
f49d4b6
ras
lorenzogentile404 May 18, 2026
e75ec01
ras
lorenzogentile404 May 18, 2026
404d1df
renamed zkc-test to riscv-test
lorenzogentile404 May 18, 2026
d0a782c
Merge branch 'main' into 3116-zktracer-add-more-blake-test-cases
lorenzogentile404 May 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 3 additions & 19 deletions arithmetization/src/test/examples/asm/scripts/README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
# Atomic RV64IM opcode tests

Tiny single-opcode tests under `../src/op_*.s`, plus the scripts that
generate and run them.
Tiny single-opcode tests under `../src/op_*.s`, plus the script that run them.

## Files

| Path | Purpose |
|---|---|
| `gen_op_tests.py` | Regenerates every `../src/op/op_*.s` from a single Python source. |
| `run_op_tests.sh` | Compiles every `../src/op/op_*.s`, runs it through `zkc exec --ir`, and writes a summary. |
| `../src/op/op_*.s` | The generated test programs. One opcode per file. |

Both scripts resolve all paths relative to their own location, so they
work regardless of the current working directory.

## Usage

```bash
# (Re)generate the test sources
python3 gen_op_tests.py

# Compile + run all of them, write report to ../bin/results.txt
# Compile + run all tests, write report to ../bin/results.txt
./run_op_tests.sh
```

Expand Down Expand Up @@ -51,7 +43,6 @@ PASS; anything else is FAIL with the diff in the exit code.

The same toolchain the rest of `../../examples` already needs:

- `python3` (any 3.x)
- `bash`
- GNU `make` — invoked as `make` on Linux, as `gmake` on macOS once you
`brew install make`. The runner picks `gmake` when available.
Expand All @@ -63,11 +54,4 @@ The same toolchain the rest of `../../examples` already needs:
- `zkc` (built from go-corset; see top-level `arithmetization/Makefile`)

The runner verifies all of these are on `PATH` and exits early with a
helpful message if anything is missing.

## Adding a new opcode test

Add an `emit(...)` call in `gen_op_tests.py` (see the existing helpers
`rr_test`, `imm_test`, `shamt_test`, `branch_taken_test`,
`branch_nottaken_test`), then re-run `python3 gen_op_tests.py` to write
out the new `op_<name>.s` file.
helpful message if anything is missing.
348 changes: 0 additions & 348 deletions arithmetization/src/test/examples/asm/scripts/gen_op_tests.py

This file was deleted.

Empty file.
Loading
Loading