Debian Codegraph @

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

raw
1 /* { dg-skip-if "" { *-*-* } { "-DSTREAMING_COMPATIBLE" } { "" } } */
2 /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" { target { ! ilp32 } } } } */
3
4 #include "test_sve_acle.h"
5
6 /*
7 ** ldnt1sb_gather_u64_tied1:
8 ** ldnt1sb z0\.d, p0/z, \[z0\.d\]
9 ** ret
10 */
11 TEST_LOAD_GATHER_ZS (ldnt1sb_gather_u64_tied1, svuint64_t, svuint64_t,
12 z0_res = svldnt1sb_gather_u64base_u64 (p0, z0),
13 z0_res = svldnt1sb_gather_u64 (p0, z0))
14
15 /*
16 ** ldnt1sb_gather_u64_untied:
17 ** ldnt1sb z0\.d, p0/z, \[z1\.d\]
18 ** ret
19 */
20 TEST_LOAD_GATHER_ZS (ldnt1sb_gather_u64_untied, svuint64_t, svuint64_t,
21 z0_res = svldnt1sb_gather_u64base_u64 (p0, z1),
22 z0_res = svldnt1sb_gather_u64 (p0, z1))
23
24 /*
25 ** ldnt1sb_gather_x0_u64_offset:
26 ** ldnt1sb z0\.d, p0/z, \[z0\.d, x0\]
27 ** ret
28 */
29 TEST_LOAD_GATHER_ZS (ldnt1sb_gather_x0_u64_offset, svuint64_t, svuint64_t,
30 z0_res = svldnt1sb_gather_u64base_offset_u64 (p0, z0, x0),
31 z0_res = svldnt1sb_gather_offset_u64 (p0, z0, x0))
32
33 /*
34 ** ldnt1sb_gather_m1_u64_offset:
35 ** mov (x[0-9]+), #?-1
36 ** ldnt1sb z0\.d, p0/z, \[z0\.d, \1\]
37 ** ret
38 */
39 TEST_LOAD_GATHER_ZS (ldnt1sb_gather_m1_u64_offset, svuint64_t, svuint64_t,
40 z0_res = svldnt1sb_gather_u64base_offset_u64 (p0, z0, -1),
41 z0_res = svldnt1sb_gather_offset_u64 (p0, z0, -1))
42
43 /*
44 ** ldnt1sb_gather_0_u64_offset:
45 ** ldnt1sb z0\.d, p0/z, \[z0\.d\]
46 ** ret
47 */
48 TEST_LOAD_GATHER_ZS (ldnt1sb_gather_0_u64_offset, svuint64_t, svuint64_t,
49 z0_res = svldnt1sb_gather_u64base_offset_u64 (p0, z0, 0),
50 z0_res = svldnt1sb_gather_offset_u64 (p0, z0, 0))
51
52 /*
53 ** ldnt1sb_gather_5_u64_offset:
54 ** mov (x[0-9]+), #?5
55 ** ldnt1sb z0\.d, p0/z, \[z0\.d, \1\]
56 ** ret
57 */
58 TEST_LOAD_GATHER_ZS (ldnt1sb_gather_5_u64_offset, svuint64_t, svuint64_t,
59 z0_res = svldnt1sb_gather_u64base_offset_u64 (p0, z0, 5),
60 z0_res = svldnt1sb_gather_offset_u64 (p0, z0, 5))
61
62 /*
63 ** ldnt1sb_gather_31_u64_offset:
64 ** mov (x[0-9]+), #?31
65 ** ldnt1sb z0\.d, p0/z, \[z0\.d, \1\]
66 ** ret
67 */
68 TEST_LOAD_GATHER_ZS (ldnt1sb_gather_31_u64_offset, svuint64_t, svuint64_t,
69 z0_res = svldnt1sb_gather_u64base_offset_u64 (p0, z0, 31),
70 z0_res = svldnt1sb_gather_offset_u64 (p0, z0, 31))
71
72 /*
73 ** ldnt1sb_gather_32_u64_offset:
74 ** mov (x[0-9]+), #?32
75 ** ldnt1sb z0\.d, p0/z, \[z0\.d, \1\]
76 ** ret
77 */
78 TEST_LOAD_GATHER_ZS (ldnt1sb_gather_32_u64_offset, svuint64_t, svuint64_t,
79 z0_res = svldnt1sb_gather_u64base_offset_u64 (p0, z0, 32),
80 z0_res = svldnt1sb_gather_offset_u64 (p0, z0, 32))
81
82 /*
83 ** ldnt1sb_gather_x0_u64_s64offset:
84 ** ldnt1sb z0\.d, p0/z, \[z0\.d, x0\]
85 ** ret
86 */
87 TEST_LOAD_GATHER_SZ (ldnt1sb_gather_x0_u64_s64offset, svuint64_t, int8_t, svint64_t,
88 z0_res = svldnt1sb_gather_s64offset_u64 (p0, x0, z0),
89 z0_res = svldnt1sb_gather_offset_u64 (p0, x0, z0))
90
91 /*
92 ** ldnt1sb_gather_tied1_u64_s64offset:
93 ** ldnt1sb z0\.d, p0/z, \[z0\.d, x0\]
94 ** ret
95 */
96 TEST_LOAD_GATHER_SZ (ldnt1sb_gather_tied1_u64_s64offset, svuint64_t, int8_t, svint64_t,
97 z0_res = svldnt1sb_gather_s64offset_u64 (p0, x0, z0),
98 z0_res = svldnt1sb_gather_offset_u64 (p0, x0, z0))
99
100 /*
101 ** ldnt1sb_gather_untied_u64_s64offset:
102 ** ldnt1sb z0\.d, p0/z, \[z1\.d, x0\]
103 ** ret
104 */
105 TEST_LOAD_GATHER_SZ (ldnt1sb_gather_untied_u64_s64offset, svuint64_t, int8_t, svint64_t,
106 z0_res = svldnt1sb_gather_s64offset_u64 (p0, x0, z1),
107 z0_res = svldnt1sb_gather_offset_u64 (p0, x0, z1))
108
109 /*
110 ** ldnt1sb_gather_x0_u64_u64offset:
111 ** ldnt1sb z0\.d, p0/z, \[z0\.d, x0\]
112 ** ret
113 */
114 TEST_LOAD_GATHER_SZ (ldnt1sb_gather_x0_u64_u64offset, svuint64_t, int8_t, svuint64_t,
115 z0_res = svldnt1sb_gather_u64offset_u64 (p0, x0, z0),
116 z0_res = svldnt1sb_gather_offset_u64 (p0, x0, z0))
117
118 /*
119 ** ldnt1sb_gather_tied1_u64_u64offset:
120 ** ldnt1sb z0\.d, p0/z, \[z0\.d, x0\]
121 ** ret
122 */
123 TEST_LOAD_GATHER_SZ (ldnt1sb_gather_tied1_u64_u64offset, svuint64_t, int8_t, svuint64_t,
124 z0_res = svldnt1sb_gather_u64offset_u64 (p0, x0, z0),
125 z0_res = svldnt1sb_gather_offset_u64 (p0, x0, z0))
126
127 /*
128 ** ldnt1sb_gather_untied_u64_u64offset:
129 ** ldnt1sb z0\.d, p0/z, \[z1\.d, x0\]
130 ** ret
131 */
132 TEST_LOAD_GATHER_SZ (ldnt1sb_gather_untied_u64_u64offset, svuint64_t, int8_t, svuint64_t,
133 z0_res = svldnt1sb_gather_u64offset_u64 (p0, x0, z1),
134 z0_res = svldnt1sb_gather_offset_u64 (p0, x0, z1))