aboutsummaryrefslogtreecommitdiff
path: root/tests/armv7
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2026-08-02 20:28:30 +0000
committeriximeow <me@iximeow.net>2026-08-02 20:28:30 +0000
commitb89b56f1e92b9559ccd11929e575db3ea2b71ced (patch)
tree5f39d5b218a06c53d8e112ba4f045dcbd7c90d5b /tests/armv7
parent8d4d7a3876cbca23e21c4b5c7c30abae934b6b30 (diff)
fix missing decode of `s` bit for wide shift/rotate ops
Diffstat (limited to 'tests/armv7')
-rw-r--r--tests/armv7/thumb.rs17
1 files changed, 17 insertions, 0 deletions
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() {