From af8fcdb3d748b130919e60c1d3a6172d27e487cd Mon Sep 17 00:00:00 2001 From: jam1garner Date: Tue, 31 Jan 2023 00:53:05 -0500 Subject: fix 24-bit branch immediate decoding --- tests/armv7/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/armv7/mod.rs b/tests/armv7/mod.rs index a60b50a..59dea7c 100644 --- a/tests/armv7/mod.rs +++ b/tests/armv7/mod.rs @@ -298,6 +298,9 @@ fn test_data_imm() { #[test] fn test_decode_misc() { + test_display([0xfe, 0xff, 0xff, 0xea], "b $+0x0"); + test_display([0xfd, 0xff, 0xff, 0xeb], "bl $-0x4"); + test_display([0x13, 0x8d, 0x04, 0xea], "b $+0x123454"); test_armv5([0x32, 0xff, 0x2f, 0xe1], "blx r2"); test_display( [0x13, 0x5f, 0x6f, 0xe1], -- cgit v1.1