]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/aarch64/sve2/acle/asm/tbl2_f64.c
[AArch64] Add support for the SVE2 ACLE
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve2 / acle / asm / tbl2_f64.c
1 /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */
2
3 #include "test_sve_acle.h"
4
5 /*
6 ** tbl2_f64_tied1:
7 ** tbl z0\.d, {z0\.d(?:, | - )z1\.d}, z4\.d
8 ** ret
9 */
10 TEST_TBL2 (tbl2_f64_tied1, svfloat64x2_t, svfloat64_t, svuint64_t,
11 z0_res = svtbl2_f64 (z0, z4),
12 z0_res = svtbl2 (z0, z4))
13
14 /*
15 ** tbl2_f64_tied2:
16 ** tbl z0\.d, {z1\.d(?:, | - )z2\.d}, z0\.d
17 ** ret
18 */
19 TEST_TBL2_REV (tbl2_f64_tied2, svfloat64x2_t, svfloat64_t, svuint64_t,
20 z0_res = svtbl2_f64 (z1, z0),
21 z0_res = svtbl2 (z1, z0))
22
23 /*
24 ** tbl2_f64_untied:
25 ** tbl z0\.d, {z2\.d(?:, | - )z3\.d}, z4\.d
26 ** ret
27 */
28 TEST_TBL2 (tbl2_f64_untied, svfloat64x2_t, svfloat64_t, svuint64_t,
29 z0_res = svtbl2_f64 (z2, z4),
30 z0_res = svtbl2 (z2, z4))