From b89b56f1e92b9559ccd11929e575db3ea2b71ced Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 2 Aug 2026 20:28:30 +0000 Subject: fix missing decode of `s` bit for wide shift/rotate ops --- tests/armv7/thumb.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests/armv7') diff --git a/tests/armv7/thumb.rs b/tests/armv7/thumb.rs index 43d7638..defdacb 100644 --- a/tests/armv7/thumb.rs +++ b/tests/armv7/thumb.rs @@ -3194,6 +3194,23 @@ fn test_decode_op_s_cases() { &[0xff, 0x37], "adds r7, 0xff" ); + + test_display( + &[0x7c, 0xfa, 0xe, 0xfe], + "rors.w lr, ip, lr" + ); + test_display( + &[0x5b, 0xfa, 0xe, 0xfe], + "asrs.w lr, fp, lr" + ); + test_display( + &[0x32, 0xfa, 0xe, 0xfe], + "lsrs.w lr, r2, lr" + ); + test_display( + &[0x16, 0xfa, 0xe, 0xfe], + "lsls.w lr, r6, lr" + ); } #[test] fn test_decode_pop_cases() { -- cgit v1.1