Debian Codegraph @

gcc/testsuite/gcc.target/arm/simd/vst1_base_xN_1.c

raw
1 /* { dg-do assemble } */
2 /* { dg-require-effective-target arm_neon_ok } */
3 /* { dg-options "-save-temps -O2" } */
4 /* { dg-add-options arm_neon } */
5
6 #include "arm_neon.h"
7
8 void test_vst1_u8_x2 (uint8_t * ptr, uint8x8x2_t val)
9 {
10 vst1_u8_x2 (ptr, val);
11 }
12
13 void test_vst1_u16_x2 (uint16_t * ptr, uint16x4x2_t val)
14 {
15 vst1_u16_x2 (ptr, val);
16 }
17
18 void test_vst1_u32_x2 (uint32_t * ptr, uint32x2x2_t val)
19 {
20 vst1_u32_x2 (ptr, val);
21 }
22
23 void test_vst1_u64_x2 (uint64_t * ptr, uint64x1x2_t val)
24 {
25 vst1_u64_x2 (ptr, val);
26 }
27
28 void test_vst1_s8_x2 (int8_t * ptr, int8x8x2_t val)
29 {
30 vst1_s8_x2 (ptr, val);
31 }
32
33 void test_vst1_s16_x2 (int16_t * ptr, int16x4x2_t val)
34 {
35 vst1_s16_x2 (ptr, val);
36 }
37
38 void test_vst1_s32_x2 (int32_t * ptr, int32x2x2_t val)
39 {
40 vst1_s32_x2 (ptr, val);
41 }
42
43 void test_vst1_s64_x2 (int64_t * ptr, int64x1x2_t val)
44 {
45 vst1_s64_x2 (ptr, val);
46 }
47
48 void test_vst1_f32_x2 (float32_t * ptr, float32x2x2_t val)
49 {
50 vst1_f32_x2 (ptr, val);
51 }
52
53 void test_vst1_p8_x2 (poly8_t * ptr, poly8x8x2_t val)
54 {
55 vst1_p8_x2 (ptr, val);
56 }
57
58 void test_vst1_p16_x2 (poly16_t * ptr, poly16x4x2_t val)
59 {
60 vst1_p16_x2 (ptr, val);
61 }
62
63 void test_vst1_u8_x3 (uint8_t * ptr, uint8x8x3_t val)
64 {
65 vst1_u8_x3 (ptr, val);
66 }
67
68 void test_vst1_u16_x3 (uint16_t * ptr, uint16x4x3_t val)
69 {
70 vst1_u16_x3 (ptr, val);
71 }
72
73 void test_vst1_u32_x3 (uint32_t * ptr, uint32x2x3_t val)
74 {
75 vst1_u32_x3 (ptr, val);
76 }
77
78 void test_vst1_u64_x3 (uint64_t * ptr, uint64x1x3_t val)
79 {
80 vst1_u64_x3 (ptr, val);
81 }
82
83 void test_vst1_s8_x3 (int8_t * ptr, int8x8x3_t val)
84 {
85 vst1_s8_x3 (ptr, val);
86 }
87
88 void test_vst1_s16_x3 (int16_t * ptr, int16x4x3_t val)
89 {
90 vst1_s16_x3 (ptr, val);
91 }
92
93 void test_vst1_s32_x3 (int32_t * ptr, int32x2x3_t val)
94 {
95 vst1_s32_x3 (ptr, val);
96 }
97
98 void test_vst1_s64_x3 (int64_t * ptr, int64x1x3_t val)
99 {
100 vst1_s64_x3 (ptr, val);
101 }
102
103 void test_vst1_f32_x3 (float32_t * ptr, float32x2x3_t val)
104 {
105 vst1_f32_x3 (ptr, val);
106 }
107
108 void test_vst1_p8_x3 (poly8_t * ptr, poly8x8x3_t val)
109 {
110 vst1_p8_x3 (ptr, val);
111 }
112
113 void test_vst1_p16_x3 (poly16_t * ptr, poly16x4x3_t val)
114 {
115 vst1_p16_x3 (ptr, val);
116 }
117
118 void test_vst1_u8_x4 (uint8_t * ptr, uint8x8x4_t val)
119 {
120 vst1_u8_x4 (ptr, val);
121 }
122
123 void test_vst1_u16_x4 (uint16_t * ptr, uint16x4x4_t val)
124 {
125 vst1_u16_x4 (ptr, val);
126 }
127
128 void test_vst1_u32_x4 (uint32_t * ptr, uint32x2x4_t val)
129 {
130 vst1_u32_x4 (ptr, val);
131 }
132
133 void test_vst1_u64_x4 (uint64_t * ptr, uint64x1x4_t val)
134 {
135 vst1_u64_x4 (ptr, val);
136 }
137
138 void test_vst1_s8_x4 (int8_t * ptr, int8x8x4_t val)
139 {
140 vst1_s8_x4 (ptr, val);
141 }
142
143 void test_vst1_s16_x4 (int16_t * ptr, int16x4x4_t val)
144 {
145 vst1_s16_x4 (ptr, val);
146 }
147
148 void test_vst1_s32_x4 (int32_t * ptr, int32x2x4_t val)
149 {
150 vst1_s32_x4 (ptr, val);
151 }
152
153 void test_vst1_s64_x4 (int64_t * ptr, int64x1x4_t val)
154 {
155 vst1_s64_x4 (ptr, val);
156 }
157
158 void test_vst1_f32_x4 (float32_t * ptr, float32x2x4_t val)
159 {
160 vst1_f32_x4 (ptr, val);
161 }
162
163 void test_vst1_p8_x4 (poly8_t * ptr, poly8x8x4_t val)
164 {
165 vst1_p8_x4 (ptr, val);
166 }
167
168 void test_vst1_p16_x4 (poly16_t * ptr, poly16x4x4_t val)
169 {
170 vst1_p16_x4 (ptr, val);
171 }
172
173 /* { dg-final { scan-assembler-times {vst1.8\t\{d[0-9]+-d[0-9]+\}, \[r[0-9]+\]\n} 9 } } */
174 /* { dg-final { scan-assembler-times {vst1.16\t\{d[0-9]+-d[0-9]+\}, \[r[0-9]+\]\n} 9 } } */
175 /* { dg-final { scan-assembler-times {vst1.32\t\{d[0-9]+-d[0-9]+\}, \[r[0-9]+\]\n} 9 } } */
176 /* { dg-final { scan-assembler-times {vst1.64\t\{d[0-9]+-d[0-9]+\}, \[r[0-9]+:64\]\n} 6 } } */