Use a unique ISA in 'test cat' file tests.

Add a Function::display() method which can include ISA-specific
information when printing the function.

If a test file has a unique ISA, use that in the `test cat`
implementation.
This commit is contained in:
Jakob Stoklund Olesen
2017-03-08 12:50:43 -08:00
parent 4525929df2
commit cbbf5cc88b
5 changed files with 27 additions and 10 deletions

View File

@@ -61,6 +61,6 @@ impl SubTest for TestCat {
}
fn run(&self, func: Cow<Function>, context: &Context) -> STResult<()> {
subtest::run_filecheck(&func.to_string(), context)
subtest::run_filecheck(&func.display(context.isa).to_string(), context)
}
}