1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2 < %s | FileCheck %s
5 ; STNT1B, STNT1W, STNT1H, STNT1D: base + 64-bit unscaled offset
6 ; e.g. stnt1h { z0.d }, p0, [z1.d, x0]
9 define void @sstnt1b_d(<vscale x 2 x i64> %data, <vscale x 2 x i1> %pg, ptr %base, <vscale x 2 x i64> %b) {
10 ; CHECK-LABEL: sstnt1b_d:
12 ; CHECK-NEXT: stnt1b { z0.d }, p0, [z1.d, x0]
14 %data_trunc = trunc <vscale x 2 x i64> %data to <vscale x 2 x i8>
15 call void @llvm.aarch64.sve.stnt1.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 @sstnt1h_d(<vscale x 2 x i64> %data, <vscale x 2 x i1> %pg, ptr %base, <vscale x 2 x i64> %b) {
23 ; CHECK-LABEL: sstnt1h_d:
25 ; CHECK-NEXT: stnt1h { z0.d }, p0, [z1.d, x0]
27 %data_trunc = trunc <vscale x 2 x i64> %data to <vscale x 2 x i16>
28 call void @llvm.aarch64.sve.stnt1.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 @sstnt1w_d(<vscale x 2 x i64> %data, <vscale x 2 x i1> %pg, ptr %base, <vscale x 2 x i64> %b) {
36 ; CHECK-LABEL: sstnt1w_d:
38 ; CHECK-NEXT: stnt1w { z0.d }, p0, [z1.d, x0]
40 %data_trunc = trunc <vscale x 2 x i64> %data to <vscale x 2 x i32>
41 call void @llvm.aarch64.sve.stnt1.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 @sstnt1d_d(<vscale x 2 x i64> %data, <vscale x 2 x i1> %pg, ptr %base, <vscale x 2 x i64> %b) {
49 ; CHECK-LABEL: sstnt1d_d:
51 ; CHECK-NEXT: stnt1d { z0.d }, p0, [z1.d, x0]
53 call void @llvm.aarch64.sve.stnt1.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 @sstnt1d_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: sstnt1d_d_double:
63 ; CHECK-NEXT: stnt1d { z0.d }, p0, [z1.d, x0]
65 call void @llvm.aarch64.sve.stnt1.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.stnt1.scatter.nxv2i8(<vscale x 2 x i8>, <vscale x 2 x i1>, ptr, <vscale x 2 x i64>)
73 declare void @llvm.aarch64.sve.stnt1.scatter.nxv2i16(<vscale x 2 x i16>, <vscale x 2 x i1>, ptr, <vscale x 2 x i64>)
74 declare void @llvm.aarch64.sve.stnt1.scatter.nxv2i32(<vscale x 2 x i32>, <vscale x 2 x i1>, ptr, <vscale x 2 x i64>)
75 declare void @llvm.aarch64.sve.stnt1.scatter.nxv2i64(<vscale x 2 x i64>, <vscale x 2 x i1>, ptr, <vscale x 2 x i64>)
76 declare void @llvm.aarch64.sve.stnt1.scatter.nxv2f64(<vscale x 2 x double>, <vscale x 2 x i1>, ptr, <vscale x 2 x i64>)