aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2020-01-18 14:01:36 -0800
committeriximeow <me@iximeow.net>2020-01-18 14:01:36 -0800
commit40436975204fe296d30362e624e805ade97b4a1b (patch)
treefe0a92f7fb3da1da93ce84d53efc93c29596f68a /test
parentd8b5f3258d25b4ec22d1a46553518d892cc7aab7 (diff)
some of the work to get yaxpeax-arm no-std
Diffstat (limited to 'test')
-rw-r--r--test/armv7.rs2
-rw-r--r--test/armv8/a64.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/armv7.rs b/test/armv7.rs
index fbd71ee..f16a44a 100644
--- a/test/armv7.rs
+++ b/test/armv7.rs
@@ -400,7 +400,7 @@ pub fn bench_60000_instrs(b: &mut Bencher) {
for i in (0..1000) {
let mut iter = instruction_bytes.iter().map(|x| *x);
let decoder = <ARMv7 as Arch>::Decoder::default();
- let mut result = Instruction::blank();
+ let mut result = Instruction::default();
loop {
match decoder.decode_into(&mut result, &mut iter) {
Ok(result) => {
diff --git a/test/armv8/a64.rs b/test/armv8/a64.rs
index 406b867..be2c5bf 100644
--- a/test/armv8/a64.rs
+++ b/test/armv8/a64.rs
@@ -2332,7 +2332,7 @@ pub fn bench_60000_instrs(b: &mut Bencher) {
for i in (0..1000) {
let mut iter = instruction_bytes.iter().map(|x| *x);
let decoder = <ARMv8 as Arch>::Decoder::default();
- let mut result = Instruction::blank();
+ let mut result = Instruction::default();
loop {
match decoder.decode_into(&mut result, &mut iter) {
Ok(result) => {