diff options
author | iximeow <me@iximeow.net> | 2021-12-27 17:49:01 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-12-27 17:49:01 -0800 |
commit | 15a12c78353db700ffb96f454e528a5b6afb4f1d (patch) | |
tree | 396c3435afd49ebe63d63497636901c776538d13 /test/armv8 | |
parent | ea8888c84c73f73ac17006539b86f0ef800d80b6 (diff) |
fix Advanced SIMD Scalar Three Same
Diffstat (limited to 'test/armv8')
-rw-r--r-- | test/armv8/a64.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/armv8/a64.rs b/test/armv8/a64.rs index 1659327..eb88da2 100644 --- a/test/armv8/a64.rs +++ b/test/armv8/a64.rs @@ -4250,3 +4250,20 @@ fn test_cvt_general() { assert!(errs.is_empty()); } + +#[test] +fn test_fabd_general() { + const TESTS: &[([u8; 4], &'static str)] = &[ + ([0x20, 0xd4, 0xa0, 0x7e], "fabd s0, s1, s0"), + ([0x21, 0xd4, 0xa0, 0x7e], "fabd s1, s1, s0"), + ([0xd6, 0xd6, 0xf9, 0x7e], "fabd d22, d22, d25"), + ([0x21, 0xd4, 0xfa, 0x7e], "fabd d1, d1, d26"), + ]; + let errs = run_tests(TESTS); + + for err in errs.iter() { + println!("{}", err); + } + + assert!(errs.is_empty()); +} |