aboutsummaryrefslogtreecommitdiff
path: root/tests/armv7
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2026-08-02 23:43:23 +0000
committeriximeow <me@iximeow.net>2026-08-02 23:43:23 +0000
commit4281309f580130c3642d50b79034f0428b662c55 (patch)
tree6375b8dbe6f628afedc4605f83d0d9f78949e70a /tests/armv7
parentb89b56f1e92b9559ccd11929e575db3ea2b71ced (diff)
fix swapped rfe{ia,db} and srs{ia,db}
Diffstat (limited to 'tests/armv7')
-rw-r--r--tests/armv7/thumb.rs28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/armv7/thumb.rs b/tests/armv7/thumb.rs
index defdacb..b7b43d3 100644
--- a/tests/armv7/thumb.rs
+++ b/tests/armv7/thumb.rs
@@ -4684,6 +4684,34 @@ fn test_target() {
}
#[test]
+fn test_rfe_srs() {
+ test_display(
+ &[0xb0, 0xe9, 0x00, 0xc0],
+ "rfeia.w r0!"
+ );
+ test_display(
+ &[0x30, 0xe8, 0x00, 0xc0],
+ "rfedb.w r0!"
+ );
+ test_display(
+ &[0x0d, 0xe8, 0x09, 0xc0],
+ "srsdb.w sp, 0x9"
+ );
+ test_display(
+ &[0x8d, 0xe9, 0x09, 0xc0],
+ "srsia.w sp, 0x9"
+ );
+ test_display(
+ &[0x2d, 0xe8, 0x09, 0xc0],
+ "srsdb.w sp!, 0x9"
+ );
+ test_display(
+ &[0xad, 0xe9, 0x09, 0xc0],
+ "srsia.w sp!, 0x9"
+ );
+}
+
+#[test]
fn test_decode_tbh_operand_shape() {
use yaxpeax_arm::armv7::{Opcode, Operand, RegShiftStyle, ShiftStyle};