summaryrefslogtreecommitdiff
path: root/src/display.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2025-04-07 02:50:52 -0700
committeriximeow <me@iximeow.net>2025-04-07 02:50:52 -0700
commit264f2a457a19f86a3b82f40e5a57b990ae8d354f (patch)
tree39ff1eb1dc2bc4f1553f33c7f1f899f3446be7b9 /src/display.rs
parent9fcb6b30d6ccdd25d600e03ada84e6b17efffed7 (diff)
sfrecipa, more test cases, more inst variants
Diffstat (limited to 'src/display.rs')
-rw-r--r--src/display.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/display.rs b/src/display.rs
index 352ff3f..5ce3d80 100644
--- a/src/display.rs
+++ b/src/display.rs
@@ -146,6 +146,11 @@ impl fmt::Display for Instruction {
return write!(f, "{} = add(clb({}), {})", self.dest.as_ref().unwrap(),
self.sources[0], self.sources[1]);
}
+ Opcode::SfRecipa => {
+ return write!(f, "{}, {} = {}({}, {})",
+ self.dest.as_ref().unwrap(), self.alt_dest.as_ref().unwrap(),
+ self.opcode, self.sources[0], self.sources[1]);
+ }
Opcode::SfInvsqrta => {
return write!(f, "{}, {} = {}({})",
self.dest.as_ref().unwrap(), self.alt_dest.as_ref().unwrap(),