aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2022-02-16Run ISA tests in CI (#134)Jessica Clarke3-20/+61
* test: Ignore generated XML output * run_tests: Build RVFI emulators too Can't run tests with them though as they're built for direct instruction injection (RVFI-DII) via an instruction stream over a network socket, not fetching instructions from memory, so this remains just a build test. * run_tests/run_fp_tests: Print summary and give meaningful exit code * run_tests/run_fp_tests: Include tests and failures in top-level XML entity * run_tests/run_fp_tests: Use failure not error for XML output The former is the standard tag for normal test failures, the latter is for catastrophic things like test harness errors. * Run ISA tests in CI
2021-11-21run_tests: Remove stray */ causing "Is a directory" spewJessica Clarke1-1/+1
2021-10-22Support D extension on RV32 (#108)Jessica Clarke2-10/+4
* Use bool for floating point comparison result Using bits_WU (bits(32)) or bits_LU (bits(64)) makes no sense, these are just boolean values, and having fixed-width types is a pain for suporting RV32D (since RV32D would need to truncate, but RV128D would need to extend). Instead represent these as an actual bool to match what the values really are. This could be done with bits(1) but the value is logically a boolean (like the built-in integer comparison operators) not a bit vector of length one so we convert to bool and back for a cleaner interface. * Support compiling RV32F with flen == 64 The code conflated flen and xlen; deconflating them and adding suitable assertions (rather than silently retiring as a no-op that doesn't bump instret) ensures that it can be compiled for RV32 with flen set to 64. Whilst here, add the extensions and truncations that would be needed for RV128F. Note that there are already suitable guards on the decode clauses to ensure these instructions are illegal on RV32. * Support compiling RV32D This copies various bits of XLEN generality from the F code. * Support RV32D loads/stores * Correctly initialise misa.D based on flen not xlen * Makefile: Enable D extension for RV32 This now works so can be enabled. * test: Enable RV32D tests
2019-11-27Add RV32 non-double FP tests to the FP test script.Prashanth Mundkur1-0/+17
2019-11-26Add some missed f/d tests.Prashanth Mundkur14-0/+0
2019-11-26For now, skip F/D tests on OCaml, and D tests on C-32.Prashanth Mundkur1-4/+20
2019-11-26Skip tests for FP doubles on RV32 for now.Prashanth Mundkur1-0/+8
2019-11-25Fix enabled check for F/D extensions to also include mstatus.FS.Prashanth Mundkur1-1/+1
2019-11-14Add a script to just run the fdext tests.Prashanth Mundkur1-0/+71
2019-09-12Add floating-point tests.fdextPrashanth Mundkur128-0/+54414
2019-06-27Fixes for get_perf.py script: fix name of tests directory and cope with uc-p ↵Robert Norton1-2/+2
test being so fast the script it takes zero microseconds.
2019-04-25Add missed test files.Prashanth Mundkur5-0/+258
2019-02-27Refresh to latest tests from riscv-tests. The 32-bit -v- elfs still seem ↵Prashanth Mundkur471-3176/+4828
broken to linksem.
2019-02-27Initial attempt to separate generated files by ARCH. Some ↵Prashanth Mundkur1-17/+16
backends/rvfi/rmem still to be tested.
2019-02-25Enable C rv32 tests.Prashanth Mundkur1-14/+26
2019-02-22Fix address translation bug in ordering of width-extension and shift in pte. ↵Prashanth Mundkur1-2/+1
This showed up in RV32, but not in RV64, presumably because the highest address bits are not typically exercised typical physical memory maps.
2019-02-21Add rv32 tests from riscv-tests; update test script to enable ocaml rv32.Prashanth Mundkur265-9/+94903
2019-01-16Rename test/tests to test/riscv-tests and add a README indicating their ↵Prashanth Mundkur373-2/+4
provenance.
2019-01-16Make it clearer that the outer c,ocaml sub-dirs contain supporting files for ↵Prashanth Mundkur1-4/+4
the emulators.
2019-01-14Reorganize directory structure.Prashanth Mundkur1-4/+4
2019-01-02Add support for performance measurements, and a script to estimate it over ↵Prashanth Mundkur2-1/+43
the unit-tests.
2018-12-19Split tests into two suites for benefit of jenkins.Robert Norton1-1/+3
2018-11-30Re-import tests from sail repo.Robert Norton372-0/+127624