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 ; ST1H, ST1W, ST1D: base + 64-bit scaled offset
6 ; e.g. st1h { z0.d }, p0, [x0, z0.d, lsl #1]
9 define void @sst1h_index(<vscale x 2 x i64> %data, <vscale x 2 x i1> %pg, ptr %base, <vscale x 2 x i64> %offsets) {
10 ; CHECK-LABEL: sst1h_index:
12 ; CHECK-NEXT: st1h { z0.d }, p0, [x0, z1.d, lsl #1]
14 %data_trunc = trunc <vscale x 2 x i64> %data to <vscale x 2 x i16>
15 call void @llvm.aarch64.sve.st1.scatter.index.nxv2i16(<vscale x 2 x i16> %data_trunc,
16 <vscale x 2 x i1> %pg,
18 <vscale x 2 x i64> %offsets)
22 define void @sst1w_index(<vscale x 2 x i64> %data, <vscale x 2 x i1> %pg, ptr %base, <vscale x 2 x i64> %offsets) {
23 ; CHECK-LABEL: sst1w_index:
25 ; CHECK-NEXT: st1w { z0.d }, p0, [x0, z1.d, lsl #2]
27 %data_trunc = trunc <vscale x 2 x i64> %data to <vscale x 2 x i32>
28 call void @llvm.aarch64.sve.st1.scatter.index.nxv2i32(<vscale x 2 x i32> %data_trunc,
29 <vscale x 2 x i1> %pg,
31 <vscale x 2 x i64> %offsets)
35 define void @sst1d_index(<vscale x 2 x i64> %data, <vscale x 2 x i1> %pg, ptr %base, <vscale x 2 x i64> %offsets) {
36 ; CHECK-LABEL: sst1d_index:
38 ; CHECK-NEXT: st1d { z0.d }, p0, [x0, z1.d, lsl #3]
40 call void @llvm.aarch64.sve.st1.scatter.index.nxv2i64(<vscale x 2 x i64> %data,
41 <vscale x 2 x i1> %pg,
43 <vscale x 2 x i64> %offsets)
47 define void @sst1d_index_double(<vscale x 2 x double> %data, <vscale x 2 x i1> %pg, ptr %base, <vscale x 2 x i64> %offsets) {
48 ; CHECK-LABEL: sst1d_index_double:
50 ; CHECK-NEXT: st1d { z0.d }, p0, [x0, z1.d, lsl #3]
52 call void @llvm.aarch64.sve.st1.scatter.index.nxv2f64(<vscale x 2 x double> %data,
53 <vscale x 2 x i1> %pg,
55 <vscale x 2 x i64> %offsets)
60 declare void @llvm.aarch64.sve.st1.scatter.index.nxv2i16(<vscale x 2 x i16>, <vscale x 2 x i1>, ptr, <vscale x 2 x i64>)
61 declare void @llvm.aarch64.sve.st1.scatter.index.nxv2i32(<vscale x 2 x i32>, <vscale x 2 x i1>, ptr, <vscale x 2 x i64>)
62 declare void @llvm.aarch64.sve.st1.scatter.index.nxv2i64(<vscale x 2 x i64>, <vscale x 2 x i1>, ptr, <vscale x 2 x i64>)
63 declare void @llvm.aarch64.sve.st1.scatter.index.nxv2f64(<vscale x 2 x double>, <vscale x 2 x i1>, ptr, <vscale x 2 x i64>)