From 15a12c78353db700ffb96f454e528a5b6afb4f1d Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 27 Dec 2021 17:49:01 -0800 Subject: fix Advanced SIMD Scalar Three Same --- test/armv8/a64.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test') 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()); +} -- cgit v1.1