; 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 ; ; LDNT1B, LDNT1W, LDNT1H, LDNT1D: base + 32-bit unscaled offsets, zero (uxtw) ; extended to 64 bits. ; e.g. ldnt1h { z0.s }, p0/z, [z0.s, x0] ; ; LDNT1B define @gldnt1b_s_uxtw( %pg, i8* %base, %b) { ; CHECK-LABEL: gldnt1b_s_uxtw: ; CHECK: ldnt1b { z0.s }, p0/z, [z0.s, x0] ; CHECK-NEXT: ret %load = call @llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i8( %pg, i8* %base, %b) %res = zext %load to ret %res } ; LDNT1H define @gldnt1h_s_uxtw( %pg, i16* %base, %b) { ; CHECK-LABEL: gldnt1h_s_uxtw: ; CHECK: ldnt1h { z0.s }, p0/z, [z0.s, x0] ; CHECK-NEXT: ret %load = call @llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i16( %pg, i16* %base, %b) %res = zext %load to ret %res } ; LDNT1W define @gldnt1w_s_uxtw( %pg, i32* %base, %b) { ; CHECK-LABEL: gldnt1w_s_uxtw: ; CHECK: ldnt1w { z0.s }, p0/z, [z0.s, x0] ; CHECK-NEXT: ret %load = call @llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i32( %pg, i32* %base, %b) ret %load } define @gldnt1w_s_uxtw_float( %pg, float* %base, %b) { ; CHECK-LABEL: gldnt1w_s_uxtw_float: ; CHECK: ldnt1w { z0.s }, p0/z, [z0.s, x0] ; CHECK-NEXT: ret %load = call @llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4f32( %pg, float* %base, %b) ret %load } ; LDNT1SB, LDNT1SW, LDNT1SH: base + 32-bit unscaled offsets, zero (uxtw) ; extended to 64 bits. ; e.g. ldnt1sh { z0.s }, p0/z, [z0.s, x0] ; ; LDNT1SB define @gldnt1sb_s_uxtw( %pg, i8* %base, %b) { ; CHECK-LABEL: gldnt1sb_s_uxtw: ; CHECK: ldnt1sb { z0.s }, p0/z, [z0.s, x0] ; CHECK-NEXT: ret %load = call @llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i8( %pg, i8* %base, %b) %res = sext %load to ret %res } ; LDNT1SH define @gldnt1sh_s_uxtw( %pg, i16* %base, %b) { ; CHECK-LABEL: gldnt1sh_s_uxtw: ; CHECK: ldnt1sh { z0.s }, p0/z, [z0.s, x0] ; CHECK-NEXT: ret %load = call @llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i16( %pg, i16* %base, %b) %res = sext %load to ret %res } ; LDNT1B/LDNT1SB declare @llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i8(, i8*, ) declare @llvm.aarch64.sve.ldnt1.gather.sxtw.nxv4i8(, i8*, ) ; LDNT1H/LDNT1SH declare @llvm.aarch64.sve.ldnt1.gather.sxtw.nxv4i16(, i16*, ) declare @llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i16(, i16*, ) ; LDNT1W/LDNT1SW declare @llvm.aarch64.sve.ldnt1.gather.sxtw.nxv4i32(, i32*, ) declare @llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4i32(, i32*, ) declare @llvm.aarch64.sve.ldnt1.gather.sxtw.nxv4f32(, float*, ) declare @llvm.aarch64.sve.ldnt1.gather.uxtw.nxv4f32(, float*, )