From 05046e43cb132bab4947723feefc1c256418cbb5 Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 27 Dec 2021 18:35:19 -0800 Subject: vector fabs/fcm* --- test/armv8/a64.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test') 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()); +} -- cgit v1.1