cranelift: in test_compile filetest, log disasm not clif
With the old backends, this would log the lowered+legalized clif, but the log is useles now with the new backends. Logging the disasm is the new moral equivalent.
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user