machinst x64: fix checked div sequence

- it should mark as clobbering (def) rdx, not modifying it
- the signed-div check requires a temporary to compare against int64_min
This commit is contained in:
Benjamin Bouvier
2020-07-06 18:45:07 +02:00
parent f932bccaf8
commit d9310e8d90
4 changed files with 38 additions and 7 deletions

View File

@@ -199,7 +199,7 @@ impl RegMemImm {
match self {
Self::Reg { reg } => collector.add_use(*reg),
Self::Mem { addr } => addr.get_regs_as_uses(collector),
Self::Imm { simm32: _ } => {}
Self::Imm { .. } => {}
}
}
}