aboutsummaryrefslogtreecommitdiff
path: root/tests/armv7
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2026-09-11 15:57:22 +0000
committeriximeow <me@iximeow.net>2026-09-11 16:18:53 +0000
commita00a54539d9124d8b376ee9cbeab355d99c9d163 (patch)
tree85ee14db687c5590c2bbea8eed1589f4088f969c /tests/armv7
parent7e70f851a481d36669e64edcd61ce7df9d578468 (diff)
fix {s,u}xt{h,b}[16] using an immediate to describe their rotates
Diffstat (limited to 'tests/armv7')
-rw-r--r--tests/armv7/thumb.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/armv7/thumb.rs b/tests/armv7/thumb.rs
index 1278bd6..f03b046 100644
--- a/tests/armv7/thumb.rs
+++ b/tests/armv7/thumb.rs
@@ -4526,11 +4526,11 @@ fn test_decode_ux_sx_32b_cases() {
);
test_display(
&[0x5f, 0xfa, 0x9c, 0xfc],
- "uxtb.w ip, ip, 0x8"
+ "uxtb.w ip, ip, ror 0x8"
);
test_display(
&[0x1f, 0xfa, 0xab, 0xfb],
- "uxth.w fp, fp, 0x10"
+ "uxth.w fp, fp, ror 0x10"
);
test_display(
&[0x0f, 0xfa, 0x82, 0xf1],
@@ -4538,13 +4538,17 @@ fn test_decode_ux_sx_32b_cases() {
);
test_display(
&[0x52, 0xfa, 0x93, 0xf1],
- "uxtab.w r1, r2, r3, 0x8"
+ "uxtab.w r1, r2, r3, ror 0x8"
);
test_display(
&[0x42, 0xfa, 0x83, 0xf1],
"sxtab.w r1, r2, r3"
);
test_display(
+ &[0x2f, 0xfa, 0xfb, 0xf9],
+ "sxtb16.w sb, fp, ror 0x18"
+ );
+ test_display(
&[0x02, 0xfa, 0x83, 0xf1],
"sxtah.w r1, r2, r3"
);