; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2 -asm-verbose=0 < %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 ; ; WHILERW ; define @whilerw_i8(i8* %a, i8* %b) { ; CHECK-LABEL: whilerw_i8: ; CHECK: whilerw p0.b, x0, x1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.whilerw.b.nx16i1(i8* %a, i8* %b) ret %out } define @whilerw_i16(i16* %a, i16* %b) { ; CHECK-LABEL: whilerw_i16: ; CHECK: whilerw p0.h, x0, x1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.whilerw.h.nx8i1(i16* %a, i16* %b) ret %out } define @whilerw_i32(i32* %a, i32* %b) { ; CHECK-LABEL: whilerw_i32: ; CHECK: whilerw p0.s, x0, x1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.whilerw.s.nx4i1(i32* %a, i32* %b) ret %out } define @whilerw_i64(i64* %a, i64* %b) { ; CHECK-LABEL: whilerw_i64: ; CHECK: whilerw p0.d, x0, x1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.whilerw.d.nx2i1(i64* %a, i64* %b) ret %out } define @whilerw_bfloat(bfloat* %a, bfloat* %b) { ; CHECK-LABEL: whilerw_bfloat: ; CHECK: whilerw p0.h, x0, x1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.whilerw.h.nx8i1.bf16.bf16(bfloat* %a, bfloat* %b) ret %out } define @whilerw_half(half* %a, half* %b) { ; CHECK-LABEL: whilerw_half: ; CHECK: whilerw p0.h, x0, x1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.whilerw.h.nx8i1.f16.f16(half* %a, half* %b) ret %out } define @whilerw_float(float* %a, float* %b) { ; CHECK-LABEL: whilerw_float: ; CHECK: whilerw p0.s, x0, x1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.whilerw.s.nx4i1.f32.f32(float* %a, float* %b) ret %out } define @whilerw_double(double* %a, double* %b) { ; CHECK-LABEL: whilerw_double: ; CHECK: whilerw p0.d, x0, x1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.whilerw.d.nx2i1.f64.f64(double* %a, double* %b) ret %out } ; ; WHILEWR ; define @whilewr_i8(i8* %a, i8* %b) { ; CHECK-LABEL: whilewr_i8: ; CHECK: whilewr p0.b, x0, x1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.whilewr.b.nx16i1(i8* %a, i8* %b) ret %out } define @whilewr_i16(i16* %a, i16* %b) { ; CHECK-LABEL: whilewr_i16: ; CHECK: whilewr p0.h, x0, x1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.whilewr.h.nx8i1(i16* %a, i16* %b) ret %out } define @whilewr_i32(i32* %a, i32* %b) { ; CHECK-LABEL: whilewr_i32: ; CHECK: whilewr p0.s, x0, x1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.whilewr.s.nx4i1(i32* %a, i32* %b) ret %out } define @whilewr_i64(i64* %a, i64* %b) { ; CHECK-LABEL: whilewr_i64: ; CHECK: whilewr p0.d, x0, x1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.whilewr.d.nx2i1(i64* %a, i64* %b) ret %out } define @whilewr_bfloat(bfloat* %a, bfloat* %b) { ; CHECK-LABEL: whilewr_bfloat: ; CHECK: whilewr p0.h, x0, x1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.whilewr.h.nx8i1.bf16.bf16(bfloat* %a, bfloat* %b) ret %out } define @whilewr_half(half* %a, half* %b) { ; CHECK-LABEL: whilewr_half: ; CHECK: whilewr p0.h, x0, x1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.whilewr.h.nx8i1.f16.f16(half* %a, half* %b) ret %out } define @whilewr_float(float* %a, float* %b) { ; CHECK-LABEL: whilewr_float: ; CHECK: whilewr p0.s, x0, x1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.whilewr.s.nx4i1.f32.f32(float* %a, float* %b) ret %out } define @whilewr_double(double* %a, double* %b) { ; CHECK-LABEL: whilewr_double: ; CHECK: whilewr p0.d, x0, x1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.whilewr.d.nx2i1.f64.f64(double* %a, double* %b) ret %out } declare @llvm.aarch64.sve.whilerw.b.nx16i1(i8* %a, i8* %b) declare @llvm.aarch64.sve.whilerw.h.nx8i1(i16* %a, i16* %b) declare @llvm.aarch64.sve.whilerw.s.nx4i1(i32* %a, i32* %b) declare @llvm.aarch64.sve.whilerw.d.nx2i1(i64* %a, i64* %b) declare @llvm.aarch64.sve.whilerw.h.nx8i1.bf16.bf16(bfloat* %a, bfloat* %b) declare @llvm.aarch64.sve.whilerw.h.nx8i1.f16.f16(half* %a, half* %b) declare @llvm.aarch64.sve.whilerw.s.nx4i1.f32.f32(float* %a, float* %b) declare @llvm.aarch64.sve.whilerw.d.nx2i1.f64.f64(double* %a, double* %b) declare @llvm.aarch64.sve.whilewr.b.nx16i1(i8* %a, i8* %b) declare @llvm.aarch64.sve.whilewr.h.nx8i1(i16* %a, i16* %b) declare @llvm.aarch64.sve.whilewr.s.nx4i1(i32* %a, i32* %b) declare @llvm.aarch64.sve.whilewr.d.nx2i1(i64* %a, i64* %b) declare @llvm.aarch64.sve.whilewr.h.nx8i1.bf16.bf16(bfloat* %a, bfloat* %b) declare @llvm.aarch64.sve.whilewr.h.nx8i1.f16.f16(half* %a, half* %b) declare @llvm.aarch64.sve.whilewr.s.nx4i1.f32.f32(float* %a, float* %b) declare @llvm.aarch64.sve.whilewr.d.nx2i1.f64.f64(double* %a, double* %b)