Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve2/acle/asm/ld1q_gather_f32.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_tied:
12 ** ld1q {z0\.q}, p0/z, \[z0\.d\]
13 ** ret
14 */
15 TEST_LOAD_GATHER_ZS (ld1q_gather_tied, svfloat32_t, svuint64_t,
16 z0_res = svld1q_gather_u64base_f32 (p0, z0),
17 z0_res = svld1q_gather_f32 (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, svfloat32_t, svuint64_t,
25 z0_res = svld1q_gather_u64base_f32 (p0, z1),
26 z0_res = svld1q_gather_f32 (p0, z1))
27
28 /*
29 ** ld1q_gather_x0_offset:
30 ** ld1q {z0\.q}, p0/z, \[z0\.d, x0\]
31 ** ret
32 */
33 TEST_LOAD_GATHER_ZS (ld1q_gather_x0_offset, svfloat32_t, svuint64_t,
34 z0_res = svld1q_gather_u64base_offset_f32 (p0, z0, x0),
35 z0_res = svld1q_gather_offset_f32 (p0, z0, x0))
36
37 /*
38 ** ld1q_gather_m4_offset:
39 ** mov (x[0-9]+), #?-4
40 ** ld1q {z0\.q}, p0/z, \[z0\.d, \1\]
41 ** ret
42 */
43 TEST_LOAD_GATHER_ZS (ld1q_gather_m4_offset, svfloat32_t, svuint64_t,
44 z0_res = svld1q_gather_u64base_offset_f32 (p0, z0, -4),
45 z0_res = svld1q_gather_offset_f32 (p0, z0, -4))
46
47 /*
48 ** ld1q_gather_0_offset:
49 ** ld1q {z0\.q}, p0/z, \[z0\.d\]
50 ** ret
51 */
52 TEST_LOAD_GATHER_ZS (ld1q_gather_0_offset, svfloat32_t, svuint64_t,
53 z0_res = svld1q_gather_u64base_offset_f32 (p0, z0, 0),
54 z0_res = svld1q_gather_offset_f32 (p0, z0, 0))
55
56 /*
57 ** ld1q_gather_7_offset:
58 ** mov (x[0-9]+), #?7
59 ** ld1q {z0\.q}, p0/z, \[z0\.d, \1\]
60 ** ret
61 */
62 TEST_LOAD_GATHER_ZS (ld1q_gather_7_offset, svfloat32_t, svuint64_t,
63 z0_res = svld1q_gather_u64base_offset_f32 (p0, z0, 7),
64 z0_res = svld1q_gather_offset_f32 (p0, z0, 7))
65
66 /*
67 ** ld1q_gather_x0_index:
68 ** lsl (x[0-9]+), x0, #?2
69 ** ld1q {z0\.q}, p0/z, \[z0\.d, \1\]
70 ** ret
71 */
72 TEST_LOAD_GATHER_ZS (ld1q_gather_x0_index, svfloat32_t, svuint64_t,
73 z0_res = svld1q_gather_u64base_index_f32 (p0, z0, x0),
74 z0_res = svld1q_gather_index_f32 (p0, z0, x0))
75
76 /*
77 ** ld1q_gather_m1_index:
78 ** mov (x[0-9]+), #?-4
79 ** ld1q {z0\.q}, p0/z, \[z0\.d, \1\]
80 ** ret
81 */
82 TEST_LOAD_GATHER_ZS (ld1q_gather_m1_index, svfloat32_t, svuint64_t,
83 z0_res = svld1q_gather_u64base_index_f32 (p0, z0, -1),
84 z0_res = svld1q_gather_index_f32 (p0, z0, -1))
85
86 /*
87 ** ld1q_gather_0_index:
88 ** ld1q {z0\.q}, p0/z, \[z0\.d\]
89 ** ret
90 */
91 TEST_LOAD_GATHER_ZS (ld1q_gather_0_index, svfloat32_t, svuint64_t,
92 z0_res = svld1q_gather_u64base_index_f32 (p0, z0, 0),
93 z0_res = svld1q_gather_index_f32 (p0, z0, 0))
94
95 /*
96 ** ld1q_gather_5_index:
97 ** mov (x[0-9]+), #?20
98 ** ld1q {z0\.q}, p0/z, \[z0\.d, \1\]
99 ** ret
100 */
101 TEST_LOAD_GATHER_ZS (ld1q_gather_5_index, svfloat32_t, svuint64_t,
102 z0_res = svld1q_gather_u64base_index_f32 (p0, z0, 5),
103 z0_res = svld1q_gather_index_f32 (p0, z0, 5))
104
105 /*
106 ** ld1q_gather_s64offset_tied:
107 ** ld1q {z0\.q}, p0/z, \[z0\.d, x0\]
108 ** ret
109 */
110 TEST_LOAD_GATHER_SZ (ld1q_gather_s64offset_tied, svfloat32_t, float32_t, svint64_t,
111 z0_res = svld1q_gather_s64offset_f32 (p0, x0, z0),
112 z0_res = svld1q_gather_offset (p0, x0, z0))
113
114 /*
115 ** ld1q_gather_s64offset_untied:
116 ** ld1q {z0\.q}, p0/z, \[z1\.d, x0\]
117 ** ret
118 */
119 TEST_LOAD_GATHER_SZ (ld1q_gather_s64offset_untied, svfloat32_t, float32_t, svint64_t,
120 z0_res = svld1q_gather_s64offset_f32 (p0, x0, z1),
121 z0_res = svld1q_gather_offset (p0, x0, z1))
122
123 /*
124 ** ld1q_gather_u64offset_tied:
125 ** ld1q {z0\.q}, p0/z, \[z0\.d, x0\]
126 ** ret
127 */
128 TEST_LOAD_GATHER_SZ (ld1q_gather_u64offset_tied, svfloat32_t, float32_t, svuint64_t,
129 z0_res = svld1q_gather_u64offset_f32 (p0, x0, z0),
130 z0_res = svld1q_gather_offset (p0, x0, z0))
131
132 /*
133 ** ld1q_gather_u64offset_untied:
134 ** ld1q {z0\.q}, p0/z, \[z1\.d, x0\]
135 ** ret
136 */
137 TEST_LOAD_GATHER_SZ (ld1q_gather_u64offset_untied, svfloat32_t, float32_t, svuint64_t,
138 z0_res = svld1q_gather_u64offset_f32 (p0, x0, z1),
139 z0_res = svld1q_gather_offset (p0, x0, z1))
140
141 /*
142 ** ld1q_gather_s64index_tied: { xfail *-*-* }
143 ** lsl (z[1-9][0-9]*\.d), z0\.d, #2
144 ** ld1q {z0\.q}, p0/z, \[\1, x0\]
145 ** ret
146 */
147 TEST_LOAD_GATHER_SZ (ld1q_gather_s64index_tied, svfloat32_t, float32_t, svint64_t,
148 z0_res = svld1q_gather_s64index_f32 (p0, x0, z0),
149 z0_res = svld1q_gather_index (p0, x0, z0))
150
151 /*
152 ** ld1q_gather_s64index_untied:
153 ** lsl (z[0-9]+\.d), z1\.d, #2
154 ** ld1q {z0\.q}, p0/z, \[\1, x0\]
155 ** ret
156 */
157 TEST_LOAD_GATHER_SZ (ld1q_gather_s64index_untied, svfloat32_t, float32_t, svint64_t,
158 z0_res = svld1q_gather_s64index_f32 (p0, x0, z1),
159 z0_res = svld1q_gather_index (p0, x0, z1))
160
161 /*
162 ** ld1q_gather_u64index_tied: { xfail *-*-* }
163 ** lsl (z[1-9][0-9]*\.d), z0\.d, #2
164 ** ld1q {z0\.q}, p0/z, \[\1, x0\]
165 ** ret
166 */
167 TEST_LOAD_GATHER_SZ (ld1q_gather_u64index_tied, svfloat32_t, float32_t, svuint64_t,
168 z0_res = svld1q_gather_u64index_f32 (p0, x0, z0),
169 z0_res = svld1q_gather_index (p0, x0, z0))
170
171 /*
172 ** ld1q_gather_u64index_untied:
173 ** lsl (z[0-9]+\.d), z1\.d, #2
174 ** ld1q {z0\.q}, p0/z, \[\1, x0\]
175 ** ret
176 */
177 TEST_LOAD_GATHER_SZ (ld1q_gather_u64index_untied, svfloat32_t, float32_t, svuint64_t,
178 z0_res = svld1q_gather_u64index_f32 (p0, x0, z1),
179 z0_res = svld1q_gather_index (p0, x0, z1))