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:
Jakob Stoklund Olesen
2017-04-06 11:13:13 -07:00
parent b5c74fdc25
commit e56482d0fd
2 changed files with 2 additions and 2 deletions

View File

@@ -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: {}",