machinst x64: emit nop of variable sizes;

This commit is contained in:
Benjamin Bouvier
2020-10-07 14:05:35 +02:00
parent a470f1e0cd
commit 116acb8dcd
2 changed files with 80 additions and 5 deletions

View File

@@ -2487,7 +2487,7 @@ impl MachInst for Inst {
}
fn gen_nop(preferred_size: usize) -> Inst {
Inst::nop(preferred_size as u8)
Inst::nop((preferred_size % 16) as u8)
}
fn maybe_direct_reload(&self, _reg: VirtualReg, _slot: SpillSlot) -> Option<Inst> {