; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2 < %s 2>%t | FileCheck %s ; RUN: FileCheck --check-prefix=WARN --allow-empty %s <%t ; If this check fails please read test/CodeGen/AArch64/README for instructions on how to resolve it. ; WARN-NOT: warning ; ; STNT1B, STNT1W, STNT1H, STNT1D: base + 32-bit unscaled offset, zero (uxtw) ; extended to 64 bits. ; e.g. stnt1h { z0.d }, p0, [z1.d, x0] ; ; STNT1B define void @sstnt1b_s_uxtw( %data, %pg, i8* %base, %offsets) { ; CHECK-LABEL: sstnt1b_s_uxtw: ; CHECK: stnt1b { z0.s }, p0, [z1.s, x0] ; CHECK-NEXT: ret %data_trunc = trunc %data to call void @llvm.aarch64.sve.stnt1.scatter.uxtw.nxv4i8( %data_trunc, %pg, i8* %base, %offsets) ret void } ; STNT1H define void @sstnt1h_s_uxtw( %data, %pg, i16* %base, %offsets) { ; CHECK-LABEL: sstnt1h_s_uxtw: ; CHECK: stnt1h { z0.s }, p0, [z1.s, x0] ; CHECK-NEXT: ret %data_trunc = trunc %data to call void @llvm.aarch64.sve.stnt1.scatter.uxtw.nxv4i16( %data_trunc, %pg, i16* %base, %offsets) ret void } ; STNT1W define void @sstnt1w_s_uxtw( %data, %pg, i32* %base, %offsets) { ; CHECK-LABEL: sstnt1w_s_uxtw: ; CHECK: stnt1w { z0.s }, p0, [z1.s, x0] ; CHECK-NEXT: ret call void @llvm.aarch64.sve.stnt1.scatter.uxtw.nxv4i32( %data, %pg, i32* %base, %offsets) ret void } define void @sstnt1w_s_uxtw_float( %data, %pg, float* %base, %offsets) { ; CHECK-LABEL: sstnt1w_s_uxtw_float: ; CHECK: stnt1w { z0.s }, p0, [z1.s, x0] ; CHECK-NEXT: ret call void @llvm.aarch64.sve.stnt1.scatter.uxtw.nxv4f32( %data, %pg, float* %base, %offsets) ret void } ; STNT1B declare void @llvm.aarch64.sve.stnt1.scatter.uxtw.nxv4i8(, , i8*, ) declare void @llvm.aarch64.sve.stnt1.scatter.uxtw.nxv2i8(, , i8*, ) declare void @llvm.aarch64.sve.stnt1.scatter.sxtw.nxv4i8(, , i8*, ) declare void @llvm.aarch64.sve.stnt1.scatter.sxtw.nxv2i8(, , i8*, ) ; STNT1H declare void @llvm.aarch64.sve.stnt1.scatter.sxtw.nxv4i16(, , i16*, ) declare void @llvm.aarch64.sve.stnt1.scatter.sxtw.nxv2i16(, , i16*, ) declare void @llvm.aarch64.sve.stnt1.scatter.uxtw.nxv4i16(, , i16*, ) declare void @llvm.aarch64.sve.stnt1.scatter.uxtw.nxv2i16(, , i16*, ) ; STNT1W declare void @llvm.aarch64.sve.stnt1.scatter.sxtw.nxv4i32(, , i32*, ) declare void @llvm.aarch64.sve.stnt1.scatter.sxtw.nxv2i32(, , i32*, ) declare void @llvm.aarch64.sve.stnt1.scatter.uxtw.nxv4i32(, , i32*, ) declare void @llvm.aarch64.sve.stnt1.scatter.uxtw.nxv2i32(, , i32*, ) declare void @llvm.aarch64.sve.stnt1.scatter.sxtw.nxv4f32(, , float*, ) declare void @llvm.aarch64.sve.stnt1.scatter.uxtw.nxv4f32(, , float*, )