From 85456e92b038f6e7c75c8714fb8dd4331e813c79 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 17 Mar 2024 08:49:55 +0000 Subject: differential tests: more unneeded special cases --- differential-tests/tests/capstone-differential.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/differential-tests/tests/capstone-differential.rs b/differential-tests/tests/capstone-differential.rs index 459c9d6..bde624f 100644 --- a/differential-tests/tests/capstone-differential.rs +++ b/differential-tests/tests/capstone-differential.rs @@ -451,14 +451,6 @@ fn capstone_differential() { } } - if yax_text.replace("lsl", "uxtw") == cs_text { - return true; - } - - if cs_text.starts_with("ubfx ") { - return true; - } - // some instructions like `11400000` have an immeidate lsl #12 as their // last operand. yax normalizes this to an unshifted `imm << 12`, capstone // just prints lsl #12. @@ -466,13 +458,6 @@ fn capstone_differential() { return true; } - // yax and capstone deal with immediates in `mov reg, imm` a little - // differently. they're correct, but displayed differently (0xffffffff - // instead of -1) - if cs_text.starts_with("mov ") && yax_text.starts_with("mov ") { - return true; - } - // capstone just shows empty string for unrecognized prf{,u}m immediates, // leaving broken text if cs_text.starts_with("prfum ") && yax_text.starts_with("prfum ") { -- cgit v1.1