From 1e3e699c38ad919946a5352b6c3d0ff7fe977624 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 6 Apr 2025 15:46:15 -0700 Subject: more test coverage, gpr conjugates --- src/display.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/display.rs') diff --git a/src/display.rs b/src/display.rs index 3074701..1d1e1ae 100644 --- a/src/display.rs +++ b/src/display.rs @@ -340,18 +340,23 @@ impl fmt::Display for Instruction { } if needs_parens { f.write_str(")")?; } + // ... vxaddsubh has the right shift after round, but cmpyiwh and friends have the left + // shift before round. + if let Some(shift) = self.flags.shift_left { + write!(f, ":<<{}", shift)?; + } if let Some(mode) = self.flags.rounded { write!(f, "{}", mode.as_label())?; } if self.flags.chop { f.write_str(":chop")?; } - if let Some(shift) = self.flags.shift_left { - write!(f, ":<<{}", shift)?; - } if let Some(shift) = self.flags.shift_right { write!(f, ":>>{}", shift)?; } + if self.flags.carry { + f.write_str(":carry")?; + } if self.flags.saturate { f.write_str(":sat")?; } -- cgit v1.1