Fix a bug in the binemit file test.
Only emit each instruction once, or the offset computations go all wrong.
This commit is contained in:
@@ -177,8 +177,6 @@ impl SubTest for TestBinEmit {
|
||||
inst,
|
||||
func.dfg.display_inst(inst)));
|
||||
}
|
||||
sink.text.clear();
|
||||
isa.emit_inst(&func, inst, &mut sink);
|
||||
let have = sink.text.trim();
|
||||
if have != want {
|
||||
return Err(format!("Bad machine code for {}: {}\nWant: {}\nGot: {}",
|
||||
|
||||
Reference in New Issue
Block a user