Add a binemit test command.

This makes it possible to write file tests that verify the binary
encoding of machine code.
This commit is contained in:
Jakob Stoklund Olesen
2017-03-28 15:43:41 -07:00
parent 0619d6f827
commit f540cb0664
4 changed files with 144 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ use filetest::runner::TestRunner;
pub mod subtest;
mod binemit;
mod concurrent;
mod domtree;
mod legalizer;
@@ -60,6 +61,7 @@ fn new_subtest(parsed: &TestCommand) -> subtest::Result<Box<subtest::SubTest>> {
"verifier" => verifier::subtest(parsed),
"legalizer" => legalizer::subtest(parsed),
"regalloc" => regalloc::subtest(parsed),
"binemit" => binemit::subtest(parsed),
_ => Err(format!("unknown test command '{}'", parsed.command)),
}
}