Merge pull request #3476 from fitzgen/logging-in-cranelift-test-compile

cranelift: in `test_compile` filetest, log disasm not clif
This commit is contained in:
Nick Fitzgerald
2021-10-26 11:00:23 -07:00
committed by GitHub

View File

@@ -44,12 +44,6 @@ impl SubTest for TestCompile {
.compile(isa) .compile(isa)
.map_err(|e| crate::pretty_anyhow_error(&comp_ctx.func, e))?; .map_err(|e| crate::pretty_anyhow_error(&comp_ctx.func, e))?;
info!(
"Generated {} bytes of code:\n{}",
total_size,
comp_ctx.func.display()
);
let disasm = comp_ctx let disasm = comp_ctx
.mach_compile_result .mach_compile_result
.as_ref() .as_ref()
@@ -57,6 +51,9 @@ impl SubTest for TestCompile {
.disasm .disasm
.as_ref() .as_ref()
.unwrap(); .unwrap();
info!("Generated {} bytes of code:\n{}", total_size, disasm);
run_filecheck(&disasm, context) run_filecheck(&disasm, context)
} }
} }