1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mattr=+sve -force-streaming-compatible-sve < %s | FileCheck %s
3 ; RUN: llc -mattr=+sme -force-streaming-compatible-sve < %s | FileCheck %s
6 target triple = "aarch64-unknown-linux-gnu"
8 define void @store_v4i8(ptr %a) {
9 ; CHECK-LABEL: store_v4i8:
11 ; CHECK-NEXT: ptrue p0.h, vl4
12 ; CHECK-NEXT: mov z0.h, #0 // =0x0
13 ; CHECK-NEXT: st1b { z0.h }, p0, [x0]
15 store <4 x i8> zeroinitializer, ptr %a
19 define void @store_v8i8(ptr %a) {
20 ; CHECK-LABEL: store_v8i8:
22 ; CHECK-NEXT: mov z0.b, #0 // =0x0
23 ; CHECK-NEXT: str d0, [x0]
25 store <8 x i8> zeroinitializer, ptr %a
29 define void @store_v16i8(ptr %a) {
30 ; CHECK-LABEL: store_v16i8:
32 ; CHECK-NEXT: mov z0.b, #0 // =0x0
33 ; CHECK-NEXT: str q0, [x0]
35 store <16 x i8> zeroinitializer, ptr %a
39 define void @store_v32i8(ptr %a) {
40 ; CHECK-LABEL: store_v32i8:
42 ; CHECK-NEXT: mov z0.b, #0 // =0x0
43 ; CHECK-NEXT: stp q0, q0, [x0]
45 store <32 x i8> zeroinitializer, ptr %a
49 define void @store_v2i16(ptr %a) {
50 ; CHECK-LABEL: store_v2i16:
52 ; CHECK-NEXT: ptrue p0.s, vl2
53 ; CHECK-NEXT: mov z0.s, #0 // =0x0
54 ; CHECK-NEXT: st1h { z0.s }, p0, [x0]
56 store <2 x i16> zeroinitializer, ptr %a
60 define void @store_v2f16(ptr %a) {
61 ; CHECK-LABEL: store_v2f16:
63 ; CHECK-NEXT: mov z0.h, #0 // =0x0
64 ; CHECK-NEXT: fmov w8, s0
65 ; CHECK-NEXT: str w8, [x0]
67 store <2 x half> zeroinitializer, ptr %a
71 define void @store_v4i16(ptr %a) {
72 ; CHECK-LABEL: store_v4i16:
74 ; CHECK-NEXT: mov z0.h, #0 // =0x0
75 ; CHECK-NEXT: str d0, [x0]
77 store <4 x i16> zeroinitializer, ptr %a
81 define void @store_v4f16(ptr %a) {
82 ; CHECK-LABEL: store_v4f16:
84 ; CHECK-NEXT: mov z0.h, #0 // =0x0
85 ; CHECK-NEXT: str d0, [x0]
87 store <4 x half> zeroinitializer, ptr %a
91 define void @store_v8i16(ptr %a) {
92 ; CHECK-LABEL: store_v8i16:
94 ; CHECK-NEXT: mov z0.h, #0 // =0x0
95 ; CHECK-NEXT: str q0, [x0]
97 store <8 x i16> zeroinitializer, ptr %a
101 define void @store_v8f16(ptr %a) {
102 ; CHECK-LABEL: store_v8f16:
104 ; CHECK-NEXT: mov z0.h, #0 // =0x0
105 ; CHECK-NEXT: str q0, [x0]
107 store <8 x half> zeroinitializer, ptr %a
111 define void @store_v16i16(ptr %a) {
112 ; CHECK-LABEL: store_v16i16:
114 ; CHECK-NEXT: mov z0.h, #0 // =0x0
115 ; CHECK-NEXT: stp q0, q0, [x0]
117 store <16 x i16> zeroinitializer, ptr %a
121 define void @store_v16f16(ptr %a) {
122 ; CHECK-LABEL: store_v16f16:
124 ; CHECK-NEXT: mov z0.h, #0 // =0x0
125 ; CHECK-NEXT: stp q0, q0, [x0]
127 store <16 x half> zeroinitializer, ptr %a
131 define void @store_v2i32(ptr %a) {
132 ; CHECK-LABEL: store_v2i32:
134 ; CHECK-NEXT: str xzr, [x0]
136 store <2 x i32> zeroinitializer, ptr %a
140 define void @store_v2f32(ptr %a) {
141 ; CHECK-LABEL: store_v2f32:
143 ; CHECK-NEXT: str xzr, [x0]
145 store <2 x float> zeroinitializer, ptr %a
149 define void @store_v4i32(ptr %a) {
150 ; CHECK-LABEL: store_v4i32:
152 ; CHECK-NEXT: stp xzr, xzr, [x0]
154 store <4 x i32> zeroinitializer, ptr %a
158 define void @store_v4f32(ptr %a) {
159 ; CHECK-LABEL: store_v4f32:
161 ; CHECK-NEXT: stp xzr, xzr, [x0]
163 store <4 x float> zeroinitializer, ptr %a
167 define void @store_v8i32(ptr %a) {
168 ; CHECK-LABEL: store_v8i32:
170 ; CHECK-NEXT: mov z0.s, #0 // =0x0
171 ; CHECK-NEXT: stp q0, q0, [x0]
173 store <8 x i32> zeroinitializer, ptr %a
177 define void @store_v8f32(ptr %a) {
178 ; CHECK-LABEL: store_v8f32:
180 ; CHECK-NEXT: mov z0.s, #0 // =0x0
181 ; CHECK-NEXT: stp q0, q0, [x0]
183 store <8 x float> zeroinitializer, ptr %a
187 define void @store_v1i64(ptr %a) {
188 ; CHECK-LABEL: store_v1i64:
190 ; CHECK-NEXT: mov z0.d, #0 // =0x0
191 ; CHECK-NEXT: str d0, [x0]
193 store <1 x i64> zeroinitializer, ptr %a
197 define void @store_v1f64(ptr %a) {
198 ; CHECK-LABEL: store_v1f64:
200 ; CHECK-NEXT: fmov d0, xzr
201 ; CHECK-NEXT: str d0, [x0]
203 store <1 x double> zeroinitializer, ptr %a
207 define void @store_v2i64(ptr %a) {
208 ; CHECK-LABEL: store_v2i64:
210 ; CHECK-NEXT: stp xzr, xzr, [x0]
212 store <2 x i64> zeroinitializer, ptr %a
216 define void @store_v2f64(ptr %a) {
217 ; CHECK-LABEL: store_v2f64:
219 ; CHECK-NEXT: stp xzr, xzr, [x0]
221 store <2 x double> zeroinitializer, ptr %a
225 define void @store_v4i64(ptr %a) {
226 ; CHECK-LABEL: store_v4i64:
228 ; CHECK-NEXT: mov z0.d, #0 // =0x0
229 ; CHECK-NEXT: stp q0, q0, [x0]
231 store <4 x i64> zeroinitializer, ptr %a
235 define void @store_v4f64(ptr %a) {
236 ; CHECK-LABEL: store_v4f64:
238 ; CHECK-NEXT: mov z0.d, #0 // =0x0
239 ; CHECK-NEXT: stp q0, q0, [x0]
241 store <4 x double> zeroinitializer, ptr %a