aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-12-27 17:55:36 -0800
committeriximeow <me@iximeow.net>2021-12-27 17:55:36 -0800
commit56cbef33bfaaa633fbe95b0256ac462024925c2e (patch)
tree4fe12fe392179d5780d7d39e9e05c4cb39c4c10e /test
parent15a12c78353db700ffb96f454e528a5b6afb4f1d (diff)
Advanced SIMD Extract
Diffstat (limited to 'test')
-rw-r--r--test/armv8/a64.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/armv8/a64.rs b/test/armv8/a64.rs
index eb88da2..6f43c22 100644
--- a/test/armv8/a64.rs
+++ b/test/armv8/a64.rs
@@ -4267,3 +4267,19 @@ fn test_fabd_general() {
assert!(errs.is_empty());
}
+
+#[test]
+fn test_ext() {
+ const TESTS: &[([u8; 4], &'static str)] = &[
+ ([0xa5, 0x40, 0x05, 0x6e], "ext v5.16b, v5.16b, v5.16b, 0x8"),
+ ([0xc7, 0x40, 0x06, 0x6e], "ext v7.16b, v6.16b, v6.16b, 0x8"),
+ ([0xc7, 0x20, 0x06, 0x2e], "ext v7.8b, v6.8b, v6.8b, 0x4"),
+ ];
+ let errs = run_tests(TESTS);
+
+ for err in errs.iter() {
+ println!("{}", err);
+ }
+
+ assert!(errs.is_empty());
+}