diff options
author | iximeow <me@iximeow.net> | 2021-12-29 03:11:03 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-12-29 03:11:03 -0800 |
commit | 2b45c57a0c1df6a90935690736eb3991acbd67ed (patch) | |
tree | 72edefec23948506df343da25f4415e0fdfeaa9c /test/armv8/a64.rs | |
parent | 05b4c99e5c50e49aa79d6fcb0b28df6d300f4117 (diff) |
more misc fixes
Diffstat (limited to 'test/armv8/a64.rs')
-rw-r--r-- | test/armv8/a64.rs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/armv8/a64.rs b/test/armv8/a64.rs index 92115e0..2523a92 100644 --- a/test/armv8/a64.rs +++ b/test/armv8/a64.rs @@ -4401,3 +4401,32 @@ fn test_stll() { assert!(errs.is_empty()); } + +#[test] +fn test_ldst_structure() { + const TESTS: &[([u8; 4], &'static str)] = &[ + ([0x00, 0xe0, 0x40, 0x0d], "ld3r {v0.8b, v1.8b, v2.8b}, [x0]"), + ]; + let errs = run_tests(TESTS); + + for err in errs.iter() { + println!("{}", err); + } + + assert!(errs.is_empty()); +} + +#[test] +fn test_tbl() { + const TESTS: &[([u8; 4], &'static str)] = &[ + ([0x00, 0x00, 0x00, 0x0e], "tbl v0.8b, {v0.16b}, v0.8b"), + ([0x20, 0x00, 0x00, 0x0e], "tbl v0.8b, {v1.16b}, v0.8b"), + ]; + let errs = run_tests(TESTS); + + for err in errs.iter() { + println!("{}", err); + } + + assert!(errs.is_empty()); +} |