From b0ad39339b8ad835248e5e9368392163012ecb07 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 17 Mar 2024 06:25:11 +0000 Subject: disassembling sb is fine, tests ensure it happens now --- differential-tests/tests/capstone-differential.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'differential-tests/tests') diff --git a/differential-tests/tests/capstone-differential.rs b/differential-tests/tests/capstone-differential.rs index 826320a..ef17bd1 100644 --- a/differential-tests/tests/capstone-differential.rs +++ b/differential-tests/tests/capstone-differential.rs @@ -390,6 +390,12 @@ fn capstone_differential() { return true; } + if parsed_yax.opcode == "sb" && parsed_cs.opcode == "msr" { + // capstone doesn't report the `sb` speculation barrier, for whatever + // reason? + return true; + } + if false { eprintln!("yax: {} -> {:?}", yax_text, parsed_yax); eprintln!("cs: {} -> {:?}", cs_text, parsed_cs); @@ -513,10 +519,6 @@ fn capstone_differential() { return true; } - if cs_text.starts_with("msr ") { - return true; - } - // yax does not handle aliases for msr instructions yet if yax_text.starts_with("msr ") { return true; -- cgit v1.1