1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve < %s | FileCheck %s
5 ; ST1B, ST1W, ST1H, ST1D: base + 64-bit unscaled offset
6 ; e.g. st1h { z0.d }, p0, [x0, z1.d]
9 define void @sst1b_d(<vscale x 2 x i64> %data, <vscale x 2 x i1> %pg, ptr %base, <vscale x 2 x i64> %b) {
10 ; CHECK-LABEL: sst1b_d:
12 ; CHECK-NEXT: st1b { z0.d }, p0, [x0, z1.d]
14 %data_trunc = trunc <vscale x 2 x i64> %data to <vscale x 2 x i8>
15 call void @llvm.aarch64.sve.st1.scatter.nxv2i8(<vscale x 2 x i8> %data_trunc,
16 <vscale x 2 x i1> %pg,
18 <vscale x 2 x i64> %b)
22 define void @sst1h_d(<vscale x 2 x i64> %data, <vscale x 2 x i1> %pg, ptr %base, <vscale x 2 x i64> %b) {
23 ; CHECK-LABEL: sst1h_d:
25 ; CHECK-NEXT: st1h { z0.d }, p0, [x0, z1.d]
27 %data_trunc = trunc <vscale x 2 x i64> %data to <vscale x 2 x i16>
28 call void @llvm.aarch64.sve.st1.scatter.nxv2i16(<vscale x 2 x i16> %data_trunc,
29 <vscale x 2 x i1> %pg,
31 <vscale x 2 x i64> %b)
35 define void @sst1w_d(<vscale x 2 x i64> %data, <vscale x 2 x i1> %pg, ptr %base, <vscale x 2 x i64> %b) {
36 ; CHECK-LABEL: sst1w_d:
38 ; CHECK-NEXT: st1w { z0.d }, p0, [x0, z1.d]
40 %data_trunc = trunc <vscale x 2 x i64> %data to <vscale x 2 x i32>
41 call void @llvm.aarch64.sve.st1.scatter.nxv2i32(<vscale x 2 x i32> %data_trunc,
42 <vscale x 2 x i1> %pg,
44 <vscale x 2 x i64> %b)
48 define void @sst1d_d(<vscale x 2 x i64> %data, <vscale x 2 x i1> %pg, ptr %base, <vscale x 2 x i64> %b) {
49 ; CHECK-LABEL: sst1d_d:
51 ; CHECK-NEXT: st1d { z0.d }, p0, [x0, z1.d]
53 call void @llvm.aarch64.sve.st1.scatter.nxv2i64(<vscale x 2 x i64> %data,
54 <vscale x 2 x i1> %pg,
56 <vscale x 2 x i64> %b)
60 define void @sst1d_d_double(<vscale x 2 x double> %data, <vscale x 2 x i1> %pg, ptr %base, <vscale x 2 x i64> %b) {
61 ; CHECK-LABEL: sst1d_d_double:
63 ; CHECK-NEXT: st1d { z0.d }, p0, [x0, z1.d]
65 call void @llvm.aarch64.sve.st1.scatter.nxv2f64(<vscale x 2 x double> %data,
66 <vscale x 2 x i1> %pg,
68 <vscale x 2 x i64> %b)
72 declare void @llvm.aarch64.sve.st1.scatter.nxv2i8(<vscale x 2 x i8>, <vscale x 2 x i1>, ptr, <vscale x 2 x i64>)
73 declare void @llvm.aarch64.sve.st1.scatter.nxv2i16(<vscale x 2 x i16>, <vscale x 2 x i1>, ptr, <vscale x 2 x i64>)
74 declare void @llvm.aarch64.sve.st1.scatter.nxv2i32(<vscale x 2 x i32>, <vscale x 2 x i1>, ptr, <vscale x 2 x i64>)
75 declare void @llvm.aarch64.sve.st1.scatter.nxv2i64(<vscale x 2 x i64>, <vscale x 2 x i1>, ptr, <vscale x 2 x i64>)
76 declare void @llvm.aarch64.sve.st1.scatter.nxv2f64(<vscale x 2 x double>, <vscale x 2 x i1>, ptr, <vscale x 2 x i64>)