Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/acle/asm/ldff1ub_gather_s32.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 ** ldff1ub_gather_s32_tied1:
8 ** ldff1b z0\.s, p0/z, \[z0\.s\]
9 ** ret
10 */
11 TEST_LOAD_GATHER_ZS (ldff1ub_gather_s32_tied1, svint32_t, svuint32_t,
12 z0_res = svldff1ub_gather_u32base_s32 (p0, z0),
13 z0_res = svldff1ub_gather_s32 (p0, z0))
14
15 /*
16 ** ldff1ub_gather_s32_untied:
17 ** ldff1b z0\.s, p0/z, \[z1\.s\]
18 ** ret
19 */
20 TEST_LOAD_GATHER_ZS (ldff1ub_gather_s32_untied, svint32_t, svuint32_t,
21 z0_res = svldff1ub_gather_u32base_s32 (p0, z1),
22 z0_res = svldff1ub_gather_s32 (p0, z1))
23
24 /*
25 ** ldff1ub_gather_x0_s32_offset:
26 ** ldff1b z0\.s, p0/z, \[x0, z0\.s, uxtw\]
27 ** ret
28 */
29 TEST_LOAD_GATHER_ZS (ldff1ub_gather_x0_s32_offset, svint32_t, svuint32_t,
30 z0_res = svldff1ub_gather_u32base_offset_s32 (p0, z0, x0),
31 z0_res = svldff1ub_gather_offset_s32 (p0, z0, x0))
32
33 /*
34 ** ldff1ub_gather_m1_s32_offset:
35 ** mov (x[0-9]+), #?-1
36 ** ldff1b z0\.s, p0/z, \[\1, z0\.s, uxtw\]
37 ** ret
38 */
39 TEST_LOAD_GATHER_ZS (ldff1ub_gather_m1_s32_offset, svint32_t, svuint32_t,
40 z0_res = svldff1ub_gather_u32base_offset_s32 (p0, z0, -1),
41 z0_res = svldff1ub_gather_offset_s32 (p0, z0, -1))
42
43 /*
44 ** ldff1ub_gather_0_s32_offset:
45 ** ldff1b z0\.s, p0/z, \[z0\.s\]
46 ** ret
47 */
48 TEST_LOAD_GATHER_ZS (ldff1ub_gather_0_s32_offset, svint32_t, svuint32_t,
49 z0_res = svldff1ub_gather_u32base_offset_s32 (p0, z0, 0),
50 z0_res = svldff1ub_gather_offset_s32 (p0, z0, 0))
51
52 /*
53 ** ldff1ub_gather_5_s32_offset:
54 ** ldff1b z0\.s, p0/z, \[z0\.s, #5\]
55 ** ret
56 */
57 TEST_LOAD_GATHER_ZS (ldff1ub_gather_5_s32_offset, svint32_t, svuint32_t,
58 z0_res = svldff1ub_gather_u32base_offset_s32 (p0, z0, 5),
59 z0_res = svldff1ub_gather_offset_s32 (p0, z0, 5))
60
61 /*
62 ** ldff1ub_gather_31_s32_offset:
63 ** ldff1b z0\.s, p0/z, \[z0\.s, #31\]
64 ** ret
65 */
66 TEST_LOAD_GATHER_ZS (ldff1ub_gather_31_s32_offset, svint32_t, svuint32_t,
67 z0_res = svldff1ub_gather_u32base_offset_s32 (p0, z0, 31),
68 z0_res = svldff1ub_gather_offset_s32 (p0, z0, 31))
69
70 /*
71 ** ldff1ub_gather_32_s32_offset:
72 ** mov (x[0-9]+), #?32
73 ** ldff1b z0\.s, p0/z, \[\1, z0\.s, uxtw\]
74 ** ret
75 */
76 TEST_LOAD_GATHER_ZS (ldff1ub_gather_32_s32_offset, svint32_t, svuint32_t,
77 z0_res = svldff1ub_gather_u32base_offset_s32 (p0, z0, 32),
78 z0_res = svldff1ub_gather_offset_s32 (p0, z0, 32))
79
80 /*
81 ** ldff1ub_gather_x0_s32_s32offset:
82 ** ldff1b z0\.s, p0/z, \[x0, z0\.s, sxtw\]
83 ** ret
84 */
85 TEST_LOAD_GATHER_SZ (ldff1ub_gather_x0_s32_s32offset, svint32_t, uint8_t, svint32_t,
86 z0_res = svldff1ub_gather_s32offset_s32 (p0, x0, z0),
87 z0_res = svldff1ub_gather_offset_s32 (p0, x0, z0))
88
89 /*
90 ** ldff1ub_gather_tied1_s32_s32offset:
91 ** ldff1b z0\.s, p0/z, \[x0, z0\.s, sxtw\]
92 ** ret
93 */
94 TEST_LOAD_GATHER_SZ (ldff1ub_gather_tied1_s32_s32offset, svint32_t, uint8_t, svint32_t,
95 z0_res = svldff1ub_gather_s32offset_s32 (p0, x0, z0),
96 z0_res = svldff1ub_gather_offset_s32 (p0, x0, z0))
97
98 /*
99 ** ldff1ub_gather_untied_s32_s32offset:
100 ** ldff1b z0\.s, p0/z, \[x0, z1\.s, sxtw\]
101 ** ret
102 */
103 TEST_LOAD_GATHER_SZ (ldff1ub_gather_untied_s32_s32offset, svint32_t, uint8_t, svint32_t,
104 z0_res = svldff1ub_gather_s32offset_s32 (p0, x0, z1),
105 z0_res = svldff1ub_gather_offset_s32 (p0, x0, z1))
106
107 /*
108 ** ldff1ub_gather_x0_s32_u32offset:
109 ** ldff1b z0\.s, p0/z, \[x0, z0\.s, uxtw\]
110 ** ret
111 */
112 TEST_LOAD_GATHER_SZ (ldff1ub_gather_x0_s32_u32offset, svint32_t, uint8_t, svuint32_t,
113 z0_res = svldff1ub_gather_u32offset_s32 (p0, x0, z0),
114 z0_res = svldff1ub_gather_offset_s32 (p0, x0, z0))
115
116 /*
117 ** ldff1ub_gather_tied1_s32_u32offset:
118 ** ldff1b z0\.s, p0/z, \[x0, z0\.s, uxtw\]
119 ** ret
120 */
121 TEST_LOAD_GATHER_SZ (ldff1ub_gather_tied1_s32_u32offset, svint32_t, uint8_t, svuint32_t,
122 z0_res = svldff1ub_gather_u32offset_s32 (p0, x0, z0),
123 z0_res = svldff1ub_gather_offset_s32 (p0, x0, z0))
124
125 /*
126 ** ldff1ub_gather_untied_s32_u32offset:
127 ** ldff1b z0\.s, p0/z, \[x0, z1\.s, uxtw\]
128 ** ret
129 */
130 TEST_LOAD_GATHER_SZ (ldff1ub_gather_untied_s32_u32offset, svint32_t, uint8_t, svuint32_t,
131 z0_res = svldff1ub_gather_u32offset_s32 (p0, x0, z1),
132 z0_res = svldff1ub_gather_offset_s32 (p0, x0, z1))