machinst x64: add support for rotations;

This commit is contained in:
Benjamin Bouvier
2020-07-03 15:47:57 +02:00
parent 22892466e7
commit 571061fe4c
4 changed files with 49 additions and 8 deletions

View File

@@ -509,6 +509,8 @@ pub enum ShiftKind {
Left,
RightZ,
RightS,
RotateLeft,
RotateRight,
}
impl fmt::Debug for ShiftKind {
@@ -517,6 +519,8 @@ impl fmt::Debug for ShiftKind {
ShiftKind::Left => "shl",
ShiftKind::RightZ => "shr",
ShiftKind::RightS => "sar",
ShiftKind::RotateLeft => "rol",
ShiftKind::RotateRight => "ror",
};
write!(fmt, "{}", name)
}