1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve < %s | FileCheck %s
3 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sme -force-streaming < %s | FileCheck %s
9 define <vscale x 16 x i1> @ptrue_b8() {
10 ; CHECK-LABEL: ptrue_b8:
12 ; CHECK-NEXT: ptrue p0.b, pow2
14 %out = call <vscale x 16 x i1> @llvm.aarch64.sve.ptrue.nxv16i1(i32 0)
15 ret <vscale x 16 x i1> %out
18 define <vscale x 8 x i1> @ptrue_b16() {
19 ; CHECK-LABEL: ptrue_b16:
21 ; CHECK-NEXT: ptrue p0.h, vl1
23 %out = call <vscale x 8 x i1> @llvm.aarch64.sve.ptrue.nxv8i1(i32 1)
24 ret <vscale x 8 x i1> %out
27 define <vscale x 4 x i1> @ptrue_b32() {
28 ; CHECK-LABEL: ptrue_b32:
30 ; CHECK-NEXT: ptrue p0.s, mul3
32 %out = call <vscale x 4 x i1> @llvm.aarch64.sve.ptrue.nxv4i1(i32 30)
33 ret <vscale x 4 x i1> %out
36 define <vscale x 2 x i1> @ptrue_b64() {
37 ; CHECK-LABEL: ptrue_b64:
39 ; CHECK-NEXT: ptrue p0.d
41 %out = call <vscale x 2 x i1> @llvm.aarch64.sve.ptrue.nxv2i1(i32 31)
42 ret <vscale x 2 x i1> %out
45 declare <vscale x 16 x i1> @llvm.aarch64.sve.ptrue.nxv16i1(i32 %pattern)
46 declare <vscale x 8 x i1> @llvm.aarch64.sve.ptrue.nxv8i1(i32 %pattern)
47 declare <vscale x 4 x i1> @llvm.aarch64.sve.ptrue.nxv4i1(i32 %pattern)
48 declare <vscale x 2 x i1> @llvm.aarch64.sve.ptrue.nxv2i1(i32 %pattern)