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
4 ; This test should belong in sve-intrinsics-reinterpret.ll, but uses types
5 ; that are invalid with sve-streaming
7 define <vscale x 16 x i1> @reinterpret_bool_from_splat() {
8 ; CHECK-LABEL: reinterpret_bool_from_splat:
10 ; CHECK-NEXT: ptrue p0.d
12 %ins = insertelement <vscale x 2 x i1> undef, i1 1, i32 0
13 %splat = shufflevector <vscale x 2 x i1> %ins, <vscale x 2 x i1> undef, <vscale x 2 x i32> zeroinitializer
14 %out = call <vscale x 16 x i1> @llvm.aarch64.sve.convert.to.svbool.nxv2i1(<vscale x 2 x i1> %splat)
15 ret <vscale x 16 x i1> %out
18 declare <vscale x 16 x i1> @llvm.aarch64.sve.convert.to.svbool.nxv2i1(<vscale x 2 x i1>)