aboutsummaryrefslogtreecommitdiff
path: root/tests/armv8/a64.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-03-16 23:35:23 +0000
committeriximeow <me@iximeow.net>2024-03-16 23:35:23 +0000
commit2b0930355d87d7f195a7ff05d18b09b61a5ea490 (patch)
tree3498b64fd78a218378ee9266251be10c3920f9ce /tests/armv8/a64.rs
parentedfbf64598793284ddc3554dd2b264c1491d9a2f (diff)
ldrab and ldraa tests, fix immediate decoding
Diffstat (limited to 'tests/armv8/a64.rs')
-rw-r--r--tests/armv8/a64.rs5
1 files changed, 5 insertions, 0 deletions
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);