From 6ed26619c09e1d43572e17642e89161ab8e429b0 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 17 Mar 2024 08:57:24 +0000 Subject: differential test: atomic adds are relaxed, dont need specific ordering --- differential-tests/tests/capstone-differential.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/differential-tests/tests/capstone-differential.rs b/differential-tests/tests/capstone-differential.rs index bde624f..36274b5 100644 --- a/differential-tests/tests/capstone-differential.rs +++ b/differential-tests/tests/capstone-differential.rs @@ -384,13 +384,13 @@ fn capstone_differential() { let yax_text = if let Ok(inst) = yax_res { format!("{}", inst) } else if let Err(yaxpeax_arm::armv8::a64::DecodeError::IncompleteDecoder) = yax_res { - stats.missed_incomplete.fetch_add(1, Ordering::SeqCst); + stats.missed_incomplete.fetch_add(1, Ordering::Relaxed); continue; } else { // capstone dedodes the UNDEFINED encodings in C5.1.2 as "mrs", yax returns // a decode error. if cs_text.starts_with("mrs ") || cs_text.starts_with("msr ") { - stats.yax_reject.fetch_add(1, Ordering::SeqCst); + stats.yax_reject.fetch_add(1, Ordering::Relaxed); continue; } else { panic!("yax errored where capstone succeeded. cs text: '{}', bytes: {:x?}", cs_text, bytes); @@ -565,7 +565,7 @@ fn capstone_differential() { eprintln!("disassembly mismatch: {} != {}. bytes: {:x?}", yax_text, cs_text, bytes); std::process::abort(); } else { - stats.good.fetch_add(1, Ordering::SeqCst); + stats.good.fetch_add(1, Ordering::Relaxed); } } else { // yax should also fail? -- cgit v1.1