From 3514ebc8fac92395536026b0e6f4845cff672eca Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 1 Jan 2022 16:04:09 -0800 Subject: capstone/yax differences, test pac more comprehensively --- test/armv8/a64.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/armv8') diff --git a/test/armv8/a64.rs b/test/armv8/a64.rs index 8d34a04..1dea7e1 100644 --- a/test/armv8/a64.rs +++ b/test/armv8/a64.rs @@ -4183,8 +4183,8 @@ fn test_openblas_misc_ops() { ([0x54, 0xd0, 0x3b, 0xd5], "mrs x20, tpidr_el0"), ([0x41, 0xe0, 0x3b, 0xd5], "mrs x1, cntvct_el0"), ([0x55, 0xe0, 0x3b, 0xd5], "mrs x21, cntvct_el0"), - ([0xe2, 0x69, 0xb6, 0xf8], "prfm pldl2keep, [x15, x22, lsl #0]"), - ([0x00, 0x6a, 0xb7, 0xf8], "prfm pldl1keep, [x16, x23, lsl #0]"), + ([0xe2, 0x69, 0xb6, 0xf8], "prfm pldl2keep, [x15, x22]"), + ([0x00, 0x6a, 0xb7, 0xf8], "prfm pldl1keep, [x16, x23]"), ([0x80, 0x00, 0x80, 0xf9], "prfm pldl1keep, [x4]"), ([0x81, 0x00, 0x80, 0xf9], "prfm pldl1strm, [x4]"), ([0x00, 0x02, 0x80, 0xf9], "prfm pldl1keep, [x16]"), @@ -4772,7 +4772,9 @@ fn test_uq() { fn test_cfi() { const TESTS: &[([u8; 4], &'static str)] = &[ ([0x1f, 0x08, 0x1f, 0xd6], "braaz x0"), + ([0x3f, 0x08, 0x1f, 0xd6], "braaz x1"), ([0x00, 0x08, 0x1f, 0xd7], "braa x0, x0"), + ([0x00, 0x08, 0x3f, 0xd7], "blraa x0, x0"), ]; let errs = run_tests(TESTS); @@ -4864,6 +4866,8 @@ fn test_misc() { ([0x00, 0x30, 0xc0, 0x9a], "pacga x0, x0, x0"), ([0x00, 0x00, 0xae, 0x9e], "fmov x0, v0.d[1]"), ([0x00, 0x00, 0xe6, 0x9e], "fmov x0, h0"), + ([0x7f, 0x41, 0x00, 0xd5], "msr pstate.58, #0x1"), + ([0x00, 0x68, 0x20, 0x38], "strb w0, [x0, x0]"), ]; let errs = run_tests(TESTS); -- cgit v1.1