]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/aarch64/sve2/acle/asm/histcnt_u32.c
[AArch64] Add support for the SVE2 ACLE
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve2 / acle / asm / histcnt_u32.c
1 /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */
2
3 #include "test_sve_acle.h"
4
5 /*
6 ** histcnt_u32_z_tied1:
7 ** histcnt z0\.s, p0/z, z0\.s, z1\.s
8 ** ret
9 */
10 TEST_TYPE_CHANGE_Z (histcnt_u32_z_tied1, svuint32_t, svuint32_t,
11 z0_res = svhistcnt_u32_z (p0, z0, z1),
12 z0_res = svhistcnt_z (p0, z0, z1))
13
14 /*
15 ** histcnt_u32_z_tied2:
16 ** histcnt z0\.s, p0/z, z1\.s, z0\.s
17 ** ret
18 */
19 TEST_TYPE_CHANGE_Z (histcnt_u32_z_tied2, svuint32_t, svuint32_t,
20 z0_res = svhistcnt_u32_z (p0, z1, z0),
21 z0_res = svhistcnt_z (p0, z1, z0))
22
23 /*
24 ** histcnt_u32_z_untied:
25 ** histcnt z0\.s, p0/z, z1\.s, z2\.s
26 ** ret
27 */
28 TEST_TYPE_CHANGE_Z (histcnt_u32_z_untied, svuint32_t, svuint32_t,
29 z0_res = svhistcnt_u32_z (p0, z1, z2),
30 z0_res = svhistcnt_z (p0, z1, z2))