add more tests

This commit is contained in:
nora 2025-03-09 17:24:18 +01:00
parent 0af012d43a
commit 72f74c972d
7 changed files with 123 additions and 31 deletions

View file

@ -21,7 +21,7 @@ fn check() -> eyre::Result<()> {
let name = file.file_name();
let name = name.to_str().unwrap();
if !name.ends_with(".s") {
if !name.ends_with(".S") {
continue;
}
@ -34,7 +34,7 @@ fn check() -> eyre::Result<()> {
let status = rustv32i::execute_linux_elf(
&content,
matches!(std::env::var("EMULATOR_DEBUG").as_deref(), Ok(v) if v != "0"),
true,
Box::new(|_, xreg| {
if xreg[Reg::A7.0 as usize] == u32::MAX {
if xreg[Reg::A0.0 as usize] == 1 {