aboutsummaryrefslogtreecommitdiff
path: root/differential-tests/tests/differential-v7.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2026-08-03 00:26:44 +0000
committeriximeow <me@iximeow.net>2026-08-03 00:26:44 +0000
commit5f48fb91742f9e9977b499959861a8a40d4ec03c (patch)
tree19d337a17a7dc1cd2a272edb0ba769b96b35b05e /differential-tests/tests/differential-v7.rs
parentee19aba4c34f495d29c87b6d2c9d32614ba62cf8 (diff)
wip differential support (differences mostly understood)
of course, all the TODOs need to stop existing
Diffstat (limited to 'differential-tests/tests/differential-v7.rs')
-rw-r--r--differential-tests/tests/differential-v7.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/differential-tests/tests/differential-v7.rs b/differential-tests/tests/differential-v7.rs
index 5fc6d44..453ea17 100644
--- a/differential-tests/tests/differential-v7.rs
+++ b/differential-tests/tests/differential-v7.rs
@@ -455,6 +455,7 @@ fn capstone_differential_v7() {
// TODO: temporary to get one diff run done
if cs_text.starts_with("mrseq") {
+ stats.missed_incomplete.fetch_add(1, Ordering::Relaxed);
continue;
}
@@ -467,6 +468,7 @@ fn capstone_differential_v7() {
} else if !cs_text.starts_with("stc"){
// eprintln!("yax errored where capstone succeeded. cs text: '{}', bytes: {:x?}. meanwhile, yax: {:?}", cs_text, bytes, yax_res);
stats.missed_incomplete.fetch_add(1, Ordering::Relaxed);
+ continue;
};
fn acceptable_match(yax_text: &str, cs_text: &str) -> bool {
@@ -501,8 +503,9 @@ fn capstone_differential_v7() {
// eprintln!("{}", yax_text);
if !acceptable_match(&yax_text, &cs_text) {
- // eprintln!("disassembly mismatch: {} != {}. bytes: {:x?}", yax_text, cs_text, bytes);
+// eprintln!("disassembly mismatch: {} != {}. bytes: {:x?}", yax_text, cs_text, bytes);
// std::process::abort();
+ stats.mismatch.fetch_add(1, Ordering::Relaxed);
} else {
stats.good.fetch_add(1, Ordering::Relaxed);
}