1 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve < %s | FileCheck %s
4 ; ST1B, ST1W, ST1H, ST1D: base + 64-bit unscaled offset
5 ; e.g. st1h { z0.d }, p0, [x0, z1.d]
8 define void @sst1b_d(<vscale x 2 x i64> %data, <vscale x 2 x i1> %pg, i8* %base, <vscale x 2 x i64> %b) {
9 ; CHECK-LABEL: sst1b_d:
10 ; CHECK: st1b { z0.d }, p0, [x0, z1.d]
12 %data_trunc = trunc <vscale x 2 x i64> %data to <vscale x 2 x i8>
13 call void @llvm.aarch64.sve.st1.scatter.nxv2i8(<vscale x 2 x i8> %data_trunc,
14 <vscale x 2 x i1> %pg,
16 <vscale x 2 x i64> %b)
20 define void @sst1h_d(<vscale x 2 x i64> %data, <vscale x 2 x i1> %pg, i16* %base, <vscale x 2 x i64> %b) {
21 ; CHECK-LABEL: sst1h_d:
22 ; CHECK: st1h { z0.d }, p0, [x0, z1.d]
24 %data_trunc = trunc <vscale x 2 x i64> %data to <vscale x 2 x i16>
25 call void @llvm.aarch64.sve.st1.scatter.nxv2i16(<vscale x 2 x i16> %data_trunc,
26 <vscale x 2 x i1> %pg,
28 <vscale x 2 x i64> %b)
32 define void @sst1w_d(<vscale x 2 x i64> %data, <vscale x 2 x i1> %pg, i32* %base, <vscale x 2 x i64> %b) {
33 ; CHECK-LABEL: sst1w_d:
34 ; CHECK: st1w { z0.d }, p0, [x0, z1.d]
36 %data_trunc = trunc <vscale x 2 x i64> %data to <vscale x 2 x i32>
37 call void @llvm.aarch64.sve.st1.scatter.nxv2i32(<vscale x 2 x i32> %data_trunc,
38 <vscale x 2 x i1> %pg,
40 <vscale x 2 x i64> %b)
44 define void @sst1d_d(<vscale x 2 x i64> %data, <vscale x 2 x i1> %pg, i64* %base, <vscale x 2 x i64> %b) {
45 ; CHECK-LABEL: sst1d_d:
46 ; CHECK: st1d { z0.d }, p0, [x0, z1.d]
48 call void @llvm.aarch64.sve.st1.scatter.nxv2i64(<vscale x 2 x i64> %data,
49 <vscale x 2 x i1> %pg,
51 <vscale x 2 x i64> %b)
55 define void @sst1d_d_double(<vscale x 2 x double> %data, <vscale x 2 x i1> %pg, double* %base, <vscale x 2 x i64> %b) {
56 ; CHECK-LABEL: sst1d_d_double:
57 ; CHECK: st1d { z0.d }, p0, [x0, z1.d]
59 call void @llvm.aarch64.sve.st1.scatter.nxv2f64(<vscale x 2 x double> %data,
60 <vscale x 2 x i1> %pg,
62 <vscale x 2 x i64> %b)
66 declare void @llvm.aarch64.sve.st1.scatter.nxv2i8(<vscale x 2 x i8>, <vscale x 2 x i1>, i8*, <vscale x 2 x i64>)
67 declare void @llvm.aarch64.sve.st1.scatter.nxv2i16(<vscale x 2 x i16>, <vscale x 2 x i1>, i16*, <vscale x 2 x i64>)
68 declare void @llvm.aarch64.sve.st1.scatter.nxv2i32(<vscale x 2 x i32>, <vscale x 2 x i1>, i32*, <vscale x 2 x i64>)
69 declare void @llvm.aarch64.sve.st1.scatter.nxv2i64(<vscale x 2 x i64>, <vscale x 2 x i1>, i64*, <vscale x 2 x i64>)
70 declare void @llvm.aarch64.sve.st1.scatter.nxv2f64(<vscale x 2 x double>, <vscale x 2 x i1>, double*, <vscale x 2 x i64>)