Verify that the instruction encoding matches what the ISA would encode.
Fixes #69
This commit is contained in:
committed by
Jakob Stoklund Olesen
parent
d0d5f3bb26
commit
43ce26e64b
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ impl SubTest for TestVerifier {
|
||||
}
|
||||
}
|
||||
|
||||
match verify_function(func) {
|
||||
match verify_function(func, context.isa) {
|
||||
Ok(_) => {
|
||||
match expected {
|
||||
None => Ok(()),
|
||||
|
||||
Reference in New Issue
Block a user