Verify that the instruction encoding matches what the ISA would encode.

Fixes #69
This commit is contained in:
Eric Anholt
2017-04-22 16:58:29 -07:00
committed by Jakob Stoklund Olesen
parent d0d5f3bb26
commit 43ce26e64b
6 changed files with 78 additions and 12 deletions

View File

@@ -116,7 +116,7 @@ fn run_one_test<'a>(tuple: (&'a SubTest, &'a Flags, Option<&'a TargetIsa>),
// Should we run the verifier before this test?
if !context.verified && test.needs_verifier() {
verify_function(&func).map_err(|e| pretty_verifier_error(&func, e))?;
verify_function(&func, isa).map_err(|e| pretty_verifier_error(&func, e))?;
context.verified = true;
}

View File

@@ -51,7 +51,7 @@ impl SubTest for TestVerifier {
}
}
match verify_function(func) {
match verify_function(func, context.isa) {
Ok(_) => {
match expected {
None => Ok(()),