Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve2/acle/asm/ld1q_gather_u8.c

raw
1 /* { dg-do assemble { target aarch64_asm_sve2p1_ok } } */
2 /* { dg-do compile { target { ! aarch64_asm_sve2p1_ok } } } */
3 /* { dg-skip-if "" { *-*-* } { "-DSTREAMING_COMPATIBLE" } { "" } } */
4 /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" { target { ! ilp32 } } } } */
5
6 #include "test_sve_acle.h"
7
8 #pragma GCC target "+sve2p1"
9
10 /*
11 ** ld1q_gather_tied1:
12 ** ld1q {z0\.q}, p0/z, \[z0\.d\]
13 ** ret
14 */
15 TEST_LOAD_GATHER_ZS (ld1q_gather_tied1, svuint8_t, svuint64_t,
16 z0_res = svld1q_gather_u64base_u8 (p0, z0),
17 z0_res = svld1q_gather_u8 (p0, z0))
18
19 /*
20 ** ld1q_gather_untied:
21 ** ld1q {z0\.q}, p0/z, \[z1\.d\]
22 ** ret
23 */
24 TEST_LOAD_GATHER_ZS (ld1q_gather_untied, svuint8_t, svuint64_t,
25 z0_res = svld1q_gather_u64base_u8 (p0, z1),
26 z0_res = svld1q_gather_u8 (p0, z1))
27
28 /*
29 ** ld1q_gather_x0_offset_tied:
30 ** ld1q {z0\.q}, p0/z, \[z0\.d, x0\]
31 ** ret
32 */
33 TEST_LOAD_GATHER_ZS (ld1q_gather_x0_offset_tied, svuint8_t, svuint64_t,
34 z0_res = svld1q_gather_u64base_offset_u8 (p0, z0, x0),
35 z0_res = svld1q_gather_offset_u8 (p0, z0, x0))
36
37 /*
38 ** ld1q_gather_x0_offset_untied:
39 ** ld1q {z0\.q}, p0/z, \[z1\.d, x0\]
40 ** ret
41 */
42 TEST_LOAD_GATHER_ZS (ld1q_gather_x0_offset_untied, svuint8_t, svuint64_t,
43 z0_res = svld1q_gather_u64base_offset_u8 (p0, z1, x0),
44 z0_res = svld1q_gather_offset_u8 (p0, z1, x0))
45
46 /*
47 ** ld1q_gather_m16_offset:
48 ** mov (x[0-9]+), #?-16
49 ** ld1q {z0\.q}, p0/z, \[z0\.d, \1\]
50 ** ret
51 */
52 TEST_LOAD_GATHER_ZS (ld1q_gather_m16_offset, svuint8_t, svuint64_t,
53 z0_res = svld1q_gather_u64base_offset_u8 (p0, z0, -16),
54 z0_res = svld1q_gather_offset_u8 (p0, z0, -16))
55
56 /*
57 ** ld1q_gather_0_offset:
58 ** ld1q {z0\.q}, p0/z, \[z0\.d\]
59 ** ret
60 */
61 TEST_LOAD_GATHER_ZS (ld1q_gather_0_offset, svuint8_t, svuint64_t,
62 z0_res = svld1q_gather_u64base_offset_u8 (p0, z0, 0),
63 z0_res = svld1q_gather_offset_u8 (p0, z0, 0))
64
65 /*
66 ** ld1q_gather_16_offset:
67 ** mov (x[0-9]+), #?16
68 ** ld1q {z0\.q}, p0/z, \[z0\.d, \1\]
69 ** ret
70 */
71 TEST_LOAD_GATHER_ZS (ld1q_gather_16_offset, svuint8_t, svuint64_t,
72 z0_res = svld1q_gather_u64base_offset_u8 (p0, z0, 16),
73 z0_res = svld1q_gather_offset_u8 (p0, z0, 16))
74
75 /*
76 ** ld1q_gather_s64offset_tied:
77 ** ld1q {z0\.q}, p0/z, \[z0\.d, x0\]
78 ** ret
79 */
80 TEST_LOAD_GATHER_SZ (ld1q_gather_s64offset_tied, svuint8_t, uint8_t, svint64_t,
81 z0_res = svld1q_gather_s64offset_u8 (p0, x0, z0),
82 z0_res = svld1q_gather_offset (p0, x0, z0))
83
84 /*
85 ** ld1q_gather_s64offset_untied:
86 ** ld1q {z0\.q}, p0/z, \[z1\.d, x0\]
87 ** ret
88 */
89 TEST_LOAD_GATHER_SZ (ld1q_gather_s64offset_untied, svuint8_t, uint8_t, svint64_t,
90 z0_res = svld1q_gather_s64offset_u8 (p0, x0, z1),
91 z0_res = svld1q_gather_offset (p0, x0, z1))
92
93 /*
94 ** ld1q_gather_u64offset_tied:
95 ** ld1q {z0\.q}, p0/z, \[z0\.d, x0\]
96 ** ret
97 */
98 TEST_LOAD_GATHER_SZ (ld1q_gather_u64offset_tied, svuint8_t, uint8_t, svuint64_t,
99 z0_res = svld1q_gather_u64offset_u8 (p0, x0, z0),
100 z0_res = svld1q_gather_offset (p0, x0, z0))
101
102 /*
103 ** ld1q_gather_u64offset_untied:
104 ** ld1q {z0\.q}, p0/z, \[z1\.d, x0\]
105 ** ret
106 */
107 TEST_LOAD_GATHER_SZ (ld1q_gather_u64offset_untied, svuint8_t, uint8_t, svuint64_t,
108 z0_res = svld1q_gather_u64offset_u8 (p0, x0, z1),
109 z0_res = svld1q_gather_offset (p0, x0, z1))