aboutsummaryrefslogtreecommitdiff
path: root/tests/armv7/thumb.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2026-08-02 02:31:32 +0000
committeriximeow <me@iximeow.net>2026-08-02 02:31:32 +0000
commitd5175bb0d99f31117a14c9efdaa7a9fb01ee5610 (patch)
tree7213ff8519417e48f3df02c2fe64adc61841c05b /tests/armv7/thumb.rs
parent1c03f9be10d03c63d9c6eed1e56333763fee628d (diff)
thumb mrs/msr first operand was wildly wrong
Diffstat (limited to 'tests/armv7/thumb.rs')
-rw-r--r--tests/armv7/thumb.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/armv7/thumb.rs b/tests/armv7/thumb.rs
index fe92e40..59dafaa 100644
--- a/tests/armv7/thumb.rs
+++ b/tests/armv7/thumb.rs
@@ -4553,6 +4553,26 @@ fn test_decode_tbb_tbh_cases() {
}
#[test]
+fn msr_mrs() {
+ test_display(
+ &[0x8f, 0xf3, 0x00, 0x87],
+ "msr.w cpsr_sxc, pc"
+ );
+ test_display(
+ &[0x9f, 0xf3, 0x00, 0x87],
+ "msr.w spsr_sxc, pc"
+ );
+ test_display(
+ &[0x90, 0xf3, 0x00, 0x8b],
+ "msr.w spsr_fxc, r0"
+ );
+ test_display(
+ &[0x9b, 0xf3, 0x00, 0x85],
+ "msr.w spsr_sc, fp"
+ );
+}
+
+#[test]
fn test_decode_tbh_operand_shape() {
use yaxpeax_arm::armv7::{Opcode, Operand, RegShiftStyle, ShiftStyle};