; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2 -asm-verbose=0 -mattr=+use-experimental-zeroing-pseudos < %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 ; ; SQSHLU ; define @sqshlu_i8( %pg, %a) { ; CHECK-LABEL: sqshlu_i8: ; CHECK: movprfx z0.b, p0/z, z0.b ; CHECK-NEXT: sqshlu z0.b, p0/m, z0.b, #2 ; CHECK-NEXT: ret %a_z = select %pg, %a, zeroinitializer %out = call @llvm.aarch64.sve.sqshlu.nxv16i8( %pg, %a_z, i32 2) ret %out } define @sqshlu_i16( %pg, %a) { ; CHECK-LABEL: sqshlu_i16: ; CHECK: movprfx z0.h, p0/z, z0.h ; CHECK-NEXT: sqshlu z0.h, p0/m, z0.h, #3 ; CHECK-NEXT: ret %a_z = select %pg, %a, zeroinitializer %out = call @llvm.aarch64.sve.sqshlu.nxv8i16( %pg, %a_z, i32 3) ret %out } define @sqshlu_i32( %pg, %a) { ; CHECK-LABEL: sqshlu_i32: ; CHECK: movprfx z0.s, p0/z, z0.s ; CHECK-NEXT: sqshlu z0.s, p0/m, z0.s, #29 ; CHECK-NEXT: ret %a_z = select %pg, %a, zeroinitializer %out = call @llvm.aarch64.sve.sqshlu.nxv4i32( %pg, %a_z, i32 29) ret %out } define @sqshlu_i64( %pg, %a) { ; CHECK-LABEL: sqshlu_i64: ; CHECK: movprfx z0.d, p0/z, z0.d ; CHECK-NEXT: sqshlu z0.d, p0/m, z0.d, #62 ; CHECK-NEXT: ret %a_z = select %pg, %a, zeroinitializer %out = call @llvm.aarch64.sve.sqshlu.nxv2i64( %pg, %a_z, i32 62) ret %out } declare @llvm.aarch64.sve.sqshlu.nxv16i8(, , i32) declare @llvm.aarch64.sve.sqshlu.nxv8i16(, , i32) declare @llvm.aarch64.sve.sqshlu.nxv4i32(, , i32) declare @llvm.aarch64.sve.sqshlu.nxv2i64(, , i32)