aboutsummaryrefslogtreecommitdiff
path: root/tests/armv7/thumb.rs
diff options
context:
space:
mode:
authorMitchell Johnson <ehntoo@ehntoo.org>2022-09-29 14:11:54 -0400
committeriximeow <git@iximeow.net>2022-09-29 15:50:31 -0700
commitefbdb28824acc2a94b5910a13da34866da300d20 (patch)
tree97cd4aaaf2a2a9b7bbc81bc483f8394ef594a993 /tests/armv7/thumb.rs
parentd3f2505677c3a8cd40c6dbc4bf32cfe4427aab20 (diff)
Add a test for issue #3
Diffstat (limited to 'tests/armv7/thumb.rs')
-rw-r--r--tests/armv7/thumb.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/armv7/thumb.rs b/tests/armv7/thumb.rs
index 33911d2..fb9120b 100644
--- a/tests/armv7/thumb.rs
+++ b/tests/armv7/thumb.rs
@@ -764,6 +764,13 @@ fn test_decode_32b_branch_cases() {
&[0x3f, 0xf4, 0xfe, 0xaf],
"b.weq $-0x4"
);
+ // Test for yaxpeax-arm #3
+ // branch target was 0x12198 in initial test case at offset 0x82fc
+ // 0x12198 - 0x82fc - 0x4 (offsets taken after IP already incremented)
+ test_display(
+ &[0x09, 0xf0, 0x4c, 0xbf],
+ "b.w $+0x9e98"
+ );
}
#[test]
fn test_decode_bkpt_cases() {