From 5a1731a2584222cf3e2d66685f96f8dc43cd3542 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 13 Apr 2025 19:40:12 -0700 Subject: another fuzz victory! --- src/display.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/display.rs') diff --git a/src/display.rs b/src/display.rs index 90dfca4..810d07f 100644 --- a/src/display.rs +++ b/src/display.rs @@ -294,7 +294,7 @@ impl fmt::Display for Instruction { Some(AssignMode::SetBit) => ("= setbit", true), }; write!(f, "{}({}){} {}{}{}{}", - self.opcode, self.dest.expect("unreachable; store has a destination"), + self.opcode, display_or_partial(self.dest.as_ref()), match self.flags.threads { Some(DomainHint::Same) => { ":st" }, Some(DomainHint::All) => { ":at" }, @@ -314,8 +314,8 @@ impl fmt::Display for Instruction { if SC_STORES.contains(&self.opcode) { write!(f, "{}({}, {}) = {}", self.opcode, - self.dest.expect("unreachable; store has a destination"), - self.alt_dest.expect("unreachable; store-conditional has a predicate reg"), + display_or_partial(self.dest.as_ref()), + display_or_partial(self.alt_dest.as_ref()), self.sources[0] )?; return Ok(()); -- cgit v1.1