aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-10-24 14:37:06 -0700
committeriximeow <me@iximeow.net>2021-10-24 14:37:06 -0700
commit063adf8c100cedbc2633710283115ad3f27ab289 (patch)
tree35e7d920465b2fc76a4c9dfea787e9223857e515 /test
parente4c0c0ed2e4b3fb3f9d5fd037cc5ec2dbe762fde (diff)
normalize a bit more consistently in instruction display
Diffstat (limited to 'test')
-rw-r--r--test/armv8/a64.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/armv8/a64.rs b/test/armv8/a64.rs
index c251d4a..dde9802 100644
--- a/test/armv8/a64.rs
+++ b/test/armv8/a64.rs
@@ -2,6 +2,8 @@ use yaxpeax_arch::{Arch, Decoder, LengthedInstruction};
use yaxpeax_arm::armv8::a64::{ARMv8, Instruction, Operand, Opcode, SizeCode, ShiftStyle};
use yaxpeax_arm::armv8::a64::DecodeError;
+use std::fmt;
+
fn test_decode(data: [u8; 4], expected: Instruction) {
let mut reader = yaxpeax_arch::U8Reader::new(&data[..]);
let instr = <ARMv8 as Arch>::Decoder::default().decode(&mut reader).unwrap();