From 2b0930355d87d7f195a7ff05d18b09b61a5ea490 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 16 Mar 2024 23:35:23 +0000 Subject: ldrab and ldraa tests, fix immediate decoding --- tests/armv8/a64.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/armv8/a64.rs b/tests/armv8/a64.rs index 7f6fd04..1d04a76 100644 --- a/tests/armv8/a64.rs +++ b/tests/armv8/a64.rs @@ -4756,6 +4756,11 @@ fn test_vec_shift() { fn test_pac() { const TESTS: &[([u8; 4], &'static str)] = &[ ([0x00, 0x04, 0xc1, 0xda], "pacib x0, x0"), + ([0x00, 0x04, 0xa8, 0xf8], "ldrab x0, [x0, #0x400]"), + ([0x00, 0x04, 0xb0, 0xf8], "ldrab x0, [x0, #0x800]"), + ([0x00, 0x04, 0xf0, 0xf8], "ldrab x0, [x0, #-0x800]"), + ([0x00, 0x14, 0x20, 0xf8], "ldraa x0, [x0, #0x8]"), + ([0x00, 0x04, 0xa4, 0xf8], "ldrab x0, [x0, #0x200]"), ]; let errs = run_tests(TESTS); -- cgit v1.1