diff options
author | iximeow <me@iximeow.net> | 2021-12-27 18:35:19 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-12-27 18:35:19 -0800 |
commit | 05046e43cb132bab4947723feefc1c256418cbb5 (patch) | |
tree | 0b5909239f413b50d4baf8b19ff30a9ecbc648d5 /test | |
parent | d887643b7a528736fff857c67f1a93afa3d8b2f5 (diff) |
vector fabs/fcm*
Diffstat (limited to 'test')
-rw-r--r-- | test/armv8/a64.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/armv8/a64.rs b/test/armv8/a64.rs index 593dcbf..11b42d5 100644 --- a/test/armv8/a64.rs +++ b/test/armv8/a64.rs @@ -4303,3 +4303,19 @@ fn test_indexed() { assert!(errs.is_empty()); } + +#[test] +fn test_simd_abs() { + const TESTS: &[([u8; 4], &'static str)] = &[ + ([0x00, 0xf8, 0xa0, 0x0e], "fabs v0.2s, v0.2s"), + ([0x21, 0xf8, 0xa0, 0x4e], "fabs v1.4s, v1.4s"), + ([0xf7, 0xc3, 0x60, 0x1e], "fabs d23, d31"), + ]; + let errs = run_tests(TESTS); + + for err in errs.iter() { + println!("{}", err); + } + + assert!(errs.is_empty()); +} |