Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/acle/asm/clasta_u16.c

raw
1 /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */
2
3 #include "test_sve_acle.h"
4
5 /*
6 ** clasta_u16_tied1:
7 ** clasta z0\.h, p0, z0\.h, z1\.h
8 ** ret
9 */
10 TEST_UNIFORM_Z (clasta_u16_tied1, svuint16_t,
11 z0 = svclasta_u16 (p0, z0, z1),
12 z0 = svclasta (p0, z0, z1))
13
14 /*
15 ** clasta_u16_tied2:
16 ** mov (z[0-9]+)\.d, z0\.d
17 ** movprfx z0, z1
18 ** clasta z0\.h, p0, z0\.h, \1\.h
19 ** ret
20 */
21 TEST_UNIFORM_Z (clasta_u16_tied2, svuint16_t,
22 z0 = svclasta_u16 (p0, z1, z0),
23 z0 = svclasta (p0, z1, z0))
24
25 /*
26 ** clasta_u16_untied:
27 ** movprfx z0, z1
28 ** clasta z0\.h, p0, z0\.h, z2\.h
29 ** ret
30 */
31 TEST_UNIFORM_Z (clasta_u16_untied, svuint16_t,
32 z0 = svclasta_u16 (p0, z1, z2),
33 z0 = svclasta (p0, z1, z2))
34
35 /*
36 ** clasta_x0_u16:
37 ** clasta w0, p0, w0, z0\.h
38 ** ret
39 */
40 TEST_FOLD_LEFT_X (clasta_x0_u16, uint16_t, svuint16_t,
41 x0 = svclasta_n_u16 (p0, x0, z0),
42 x0 = svclasta (p0, x0, z0))
43
44 /*
45 ** clasta_x1_u16:
46 ** mov w0, w1
47 ** clasta w0, p0, w0, z0\.h
48 ** ret
49 */
50 TEST_FOLD_LEFT_X (clasta_x1_u16, uint16_t, svuint16_t,
51 x0 = svclasta_n_u16 (p0, x1, z0),
52 x0 = svclasta (p0, x1, z0))