From 435743171b26d89c5df6b77689b136ca91cf7b56 Mon Sep 17 00:00:00 2001 From: iximeow Date: Wed, 29 Dec 2021 02:14:28 -0800 Subject: more armv8.1 instructions, fix cas operand check --- test/armv8/a64.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test') diff --git a/test/armv8/a64.rs b/test/armv8/a64.rs index 2ee09c7..92115e0 100644 --- a/test/armv8/a64.rs +++ b/test/armv8/a64.rs @@ -4377,6 +4377,21 @@ fn test_mismatches() { fn test_cas() { const TESTS: &[([u8; 4], &'static str)] = &[ ([0x20, 0x7c, 0x20, 0x08], "casp w0, w1, w0, w1, [x1]"), + ([0x01, 0x7c, 0xa0, 0x08], "casb w0, w1, [x0]"), + ]; + let errs = run_tests(TESTS); + + for err in errs.iter() { + println!("{}", err); + } + + assert!(errs.is_empty()); +} + +#[test] +fn test_stll() { + const TESTS: &[([u8; 4], &'static str)] = &[ + ([0x00, 0x7c, 0x9f, 0x08], "stllrb w0, [x0]"), ]; let errs = run_tests(TESTS); -- cgit v1.1