; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve < %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 ; ; PTRUE ; define @ptrue_b8() { ; CHECK-LABEL: ptrue_b8: ; CHECK: ptrue p0.b, pow2 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.ptrue.nxv16i1(i32 0) ret %out } define @ptrue_b16() { ; CHECK-LABEL: ptrue_b16: ; CHECK: ptrue p0.h, vl1 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.ptrue.nxv8i1(i32 1) ret %out } define @ptrue_b32() { ; CHECK-LABEL: ptrue_b32: ; CHECK: ptrue p0.s, mul3 ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.ptrue.nxv4i1(i32 30) ret %out } define @ptrue_b64() { ; CHECK-LABEL: ptrue_b64: ; CHECK: ptrue p0.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.ptrue.nxv2i1(i32 31) ret %out } declare @llvm.aarch64.sve.ptrue.nxv16i1(i32 %pattern) declare @llvm.aarch64.sve.ptrue.nxv8i1(i32 %pattern) declare @llvm.aarch64.sve.ptrue.nxv4i1(i32 %pattern) declare @llvm.aarch64.sve.ptrue.nxv2i1(i32 %pattern)