From 4281309f580130c3642d50b79034f0428b662c55 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 2 Aug 2026 23:43:23 +0000 Subject: fix swapped rfe{ia,db} and srs{ia,db} --- tests/armv7/thumb.rs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'tests') 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}; -- cgit v1.1