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
5 target triple = "aarch64-unknown-linux-gnu"
7 define void @store_v4i8(ptr %a) {
8 ; CHECK-LABEL: store_v4i8:
10 ; CHECK-NEXT: ptrue p0.h, vl4
11 ; CHECK-NEXT: mov z0.h, #0 // =0x0
12 ; CHECK-NEXT: st1b { z0.h }, p0, [x0]
14 store <4 x i8> zeroinitializer, ptr %a
18 define void @store_v8i8(ptr %a) {
19 ; CHECK-LABEL: store_v8i8:
21 ; CHECK-NEXT: mov z0.b, #0 // =0x0
22 ; CHECK-NEXT: str d0, [x0]
24 store <8 x i8> zeroinitializer, ptr %a
28 define void @store_v16i8(ptr %a) {
29 ; CHECK-LABEL: store_v16i8:
31 ; CHECK-NEXT: mov z0.b, #0 // =0x0
32 ; CHECK-NEXT: str q0, [x0]
34 store <16 x i8> zeroinitializer, ptr %a
38 define void @store_v32i8(ptr %a) {
39 ; CHECK-LABEL: store_v32i8:
41 ; CHECK-NEXT: mov z0.b, #0 // =0x0
42 ; CHECK-NEXT: stp q0, q0, [x0]
44 store <32 x i8> zeroinitializer, ptr %a
48 define void @store_v2i16(ptr %a) {
49 ; CHECK-LABEL: store_v2i16:
51 ; CHECK-NEXT: ptrue p0.s, vl2
52 ; CHECK-NEXT: mov z0.s, #0 // =0x0
53 ; CHECK-NEXT: st1h { z0.s }, p0, [x0]
55 store <2 x i16> zeroinitializer, ptr %a
59 define void @store_v2f16(ptr %a) {
60 ; CHECK-LABEL: store_v2f16:
62 ; CHECK-NEXT: mov z0.h, #0 // =0x0
63 ; CHECK-NEXT: fmov w8, s0
64 ; CHECK-NEXT: str w8, [x0]
66 store <2 x half> zeroinitializer, ptr %a
70 define void @store_v4i16(ptr %a) {
71 ; CHECK-LABEL: store_v4i16:
73 ; CHECK-NEXT: mov z0.h, #0 // =0x0
74 ; CHECK-NEXT: str d0, [x0]
76 store <4 x i16> zeroinitializer, ptr %a
80 define void @store_v4f16(ptr %a) {
81 ; CHECK-LABEL: store_v4f16:
83 ; CHECK-NEXT: mov z0.h, #0 // =0x0
84 ; CHECK-NEXT: str d0, [x0]
86 store <4 x half> zeroinitializer, ptr %a
90 define void @store_v8i16(ptr %a) {
91 ; CHECK-LABEL: store_v8i16:
93 ; CHECK-NEXT: mov z0.h, #0 // =0x0
94 ; CHECK-NEXT: str q0, [x0]
96 store <8 x i16> zeroinitializer, ptr %a
100 define void @store_v8f16(ptr %a) {
101 ; CHECK-LABEL: store_v8f16:
103 ; CHECK-NEXT: mov z0.h, #0 // =0x0
104 ; CHECK-NEXT: str q0, [x0]
106 store <8 x half> zeroinitializer, ptr %a
110 define void @store_v16i16(ptr %a) {
111 ; CHECK-LABEL: store_v16i16:
113 ; CHECK-NEXT: mov z0.h, #0 // =0x0
114 ; CHECK-NEXT: stp q0, q0, [x0]
116 store <16 x i16> zeroinitializer, ptr %a
120 define void @store_v16f16(ptr %a) {
121 ; CHECK-LABEL: store_v16f16:
123 ; CHECK-NEXT: mov z0.h, #0 // =0x0
124 ; CHECK-NEXT: stp q0, q0, [x0]
126 store <16 x half> zeroinitializer, ptr %a
130 define void @store_v2i32(ptr %a) {
131 ; CHECK-LABEL: store_v2i32:
133 ; CHECK-NEXT: str xzr, [x0]
135 store <2 x i32> zeroinitializer, ptr %a
139 define void @store_v2f32(ptr %a) {
140 ; CHECK-LABEL: store_v2f32:
142 ; CHECK-NEXT: str xzr, [x0]
144 store <2 x float> zeroinitializer, ptr %a
148 define void @store_v4i32(ptr %a) {
149 ; CHECK-LABEL: store_v4i32:
151 ; CHECK-NEXT: stp xzr, xzr, [x0]
153 store <4 x i32> zeroinitializer, ptr %a
157 define void @store_v4f32(ptr %a) {
158 ; CHECK-LABEL: store_v4f32:
160 ; CHECK-NEXT: stp xzr, xzr, [x0]
162 store <4 x float> zeroinitializer, ptr %a
166 define void @store_v8i32(ptr %a) {
167 ; CHECK-LABEL: store_v8i32:
169 ; CHECK-NEXT: mov z0.s, #0 // =0x0
170 ; CHECK-NEXT: stp q0, q0, [x0]
172 store <8 x i32> zeroinitializer, ptr %a
176 define void @store_v8f32(ptr %a) {
177 ; CHECK-LABEL: store_v8f32:
179 ; CHECK-NEXT: mov z0.s, #0 // =0x0
180 ; CHECK-NEXT: stp q0, q0, [x0]
182 store <8 x float> zeroinitializer, ptr %a
186 define void @store_v1i64(ptr %a) {
187 ; CHECK-LABEL: store_v1i64:
189 ; CHECK-NEXT: mov z0.d, #0 // =0x0
190 ; CHECK-NEXT: str d0, [x0]
192 store <1 x i64> zeroinitializer, ptr %a
196 define void @store_v1f64(ptr %a) {
197 ; CHECK-LABEL: store_v1f64:
199 ; CHECK-NEXT: fmov d0, xzr
200 ; CHECK-NEXT: str d0, [x0]
202 store <1 x double> zeroinitializer, ptr %a
206 define void @store_v2i64(ptr %a) {
207 ; CHECK-LABEL: store_v2i64:
209 ; CHECK-NEXT: stp xzr, xzr, [x0]
211 store <2 x i64> zeroinitializer, ptr %a
215 define void @store_v2f64(ptr %a) {
216 ; CHECK-LABEL: store_v2f64:
218 ; CHECK-NEXT: stp xzr, xzr, [x0]
220 store <2 x double> zeroinitializer, ptr %a
224 define void @store_v4i64(ptr %a) {
225 ; CHECK-LABEL: store_v4i64:
227 ; CHECK-NEXT: mov z0.d, #0 // =0x0
228 ; CHECK-NEXT: stp q0, q0, [x0]
230 store <4 x i64> zeroinitializer, ptr %a
234 define void @store_v4f64(ptr %a) {
235 ; CHECK-LABEL: store_v4f64:
237 ; CHECK-NEXT: mov z0.d, #0 // =0x0
238 ; CHECK-NEXT: stp q0, q0, [x0]
240 store <4 x double> zeroinitializer, ptr %a