1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2 -mattr=+use-experimental-zeroing-pseudos < %s | FileCheck %s
8 define <vscale x 16 x i8> @sqshlu_i8(<vscale x 16 x i1> %pg, <vscale x 16 x i8> %a) {
9 ; CHECK-LABEL: sqshlu_i8:
11 ; CHECK-NEXT: movprfx z0.b, p0/z, z0.b
12 ; CHECK-NEXT: sqshlu z0.b, p0/m, z0.b, #2
14 %a_z = select <vscale x 16 x i1> %pg, <vscale x 16 x i8> %a, <vscale x 16 x i8> zeroinitializer
15 %out = call <vscale x 16 x i8> @llvm.aarch64.sve.sqshlu.nxv16i8(<vscale x 16 x i1> %pg,
16 <vscale x 16 x i8> %a_z,
18 ret <vscale x 16 x i8> %out
21 define <vscale x 8 x i16> @sqshlu_i16(<vscale x 8 x i1> %pg, <vscale x 8 x i16> %a) {
22 ; CHECK-LABEL: sqshlu_i16:
24 ; CHECK-NEXT: movprfx z0.h, p0/z, z0.h
25 ; CHECK-NEXT: sqshlu z0.h, p0/m, z0.h, #3
27 %a_z = select <vscale x 8 x i1> %pg, <vscale x 8 x i16> %a, <vscale x 8 x i16> zeroinitializer
28 %out = call <vscale x 8 x i16> @llvm.aarch64.sve.sqshlu.nxv8i16(<vscale x 8 x i1> %pg,
29 <vscale x 8 x i16> %a_z,
31 ret <vscale x 8 x i16> %out
34 define <vscale x 4 x i32> @sqshlu_i32(<vscale x 4 x i1> %pg, <vscale x 4 x i32> %a) {
35 ; CHECK-LABEL: sqshlu_i32:
37 ; CHECK-NEXT: movprfx z0.s, p0/z, z0.s
38 ; CHECK-NEXT: sqshlu z0.s, p0/m, z0.s, #29
40 %a_z = select <vscale x 4 x i1> %pg, <vscale x 4 x i32> %a, <vscale x 4 x i32> zeroinitializer
41 %out = call <vscale x 4 x i32> @llvm.aarch64.sve.sqshlu.nxv4i32(<vscale x 4 x i1> %pg,
42 <vscale x 4 x i32> %a_z,
44 ret <vscale x 4 x i32> %out
47 define <vscale x 2 x i64> @sqshlu_i64(<vscale x 2 x i1> %pg, <vscale x 2 x i64> %a) {
48 ; CHECK-LABEL: sqshlu_i64:
50 ; CHECK-NEXT: movprfx z0.d, p0/z, z0.d
51 ; CHECK-NEXT: sqshlu z0.d, p0/m, z0.d, #62
53 %a_z = select <vscale x 2 x i1> %pg, <vscale x 2 x i64> %a, <vscale x 2 x i64> zeroinitializer
54 %out = call <vscale x 2 x i64> @llvm.aarch64.sve.sqshlu.nxv2i64(<vscale x 2 x i1> %pg,
55 <vscale x 2 x i64> %a_z,
57 ret <vscale x 2 x i64> %out
60 declare <vscale x 16 x i8> @llvm.aarch64.sve.sqshlu.nxv16i8(<vscale x 16 x i1>, <vscale x 16 x i8>, i32)
61 declare <vscale x 8 x i16> @llvm.aarch64.sve.sqshlu.nxv8i16(<vscale x 8 x i1>, <vscale x 8 x i16>, i32)
62 declare <vscale x 4 x i32> @llvm.aarch64.sve.sqshlu.nxv4i32(<vscale x 4 x i1>, <vscale x 4 x i32>, i32)
63 declare <vscale x 2 x i64> @llvm.aarch64.sve.sqshlu.nxv2i64(<vscale x 2 x i1>, <vscale x 2 x i64>, i32)