; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve < %s | FileCheck %s ; ; SXTB ; define @sxtb_i16( %a, %pg, %b) { ; CHECK-LABEL: sxtb_i16: ; CHECK: sxtb z0.h, p0/m, z1.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.sxtb.nxv8i16( %a, %pg, %b) ret %out } define @sxtb_i32( %a, %pg, %b) { ; CHECK-LABEL: sxtb_i32: ; CHECK: sxtb z0.s, p0/m, z1.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.sxtb.nxv4i32( %a, %pg, %b) ret %out } define @sxtb_i64( %a, %pg, %b) { ; CHECK-LABEL: sxtb_i64: ; CHECK: sxtb z0.d, p0/m, z1.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.sxtb.nxv2i64( %a, %pg, %b) ret %out } ; ; SXTH ; define @sxth_i32( %a, %pg, %b) { ; CHECK-LABEL: sxth_i32: ; CHECK: sxth z0.s, p0/m, z1.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.sxth.nxv4i32( %a, %pg, %b) ret %out } define @sxth_i64( %a, %pg, %b) { ; CHECK-LABEL: sxth_i64: ; CHECK: sxth z0.d, p0/m, z1.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.sxth.nxv2i64( %a, %pg, %b) ret %out } ; ; SXTW ; define @sxtw_i64( %a, %pg, %b) { ; CHECK-LABEL: sxtw_i64: ; CHECK: sxtw z0.d, p0/m, z1.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.sxtw.nxv2i64( %a, %pg, %b) ret %out } ; ; UXTB ; define @uxtb_i16( %a, %pg, %b) { ; CHECK-LABEL: uxtb_i16: ; CHECK: uxtb z0.h, p0/m, z1.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.uxtb.nxv8i16( %a, %pg, %b) ret %out } define @uxtb_i32( %a, %pg, %b) { ; CHECK-LABEL: uxtb_i32: ; CHECK: uxtb z0.s, p0/m, z1.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.uxtb.nxv4i32( %a, %pg, %b) ret %out } define @uxtb_i64( %a, %pg, %b) { ; CHECK-LABEL: uxtb_i64: ; CHECK: uxtb z0.d, p0/m, z1.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.uxtb.nxv2i64( %a, %pg, %b) ret %out } ; ; UXTH ; define @uxth_i32( %a, %pg, %b) { ; CHECK-LABEL: uxth_i32: ; CHECK: uxth z0.s, p0/m, z1.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.uxth.nxv4i32( %a, %pg, %b) ret %out } define @uxth_i64( %a, %pg, %b) { ; CHECK-LABEL: uxth_i64: ; CHECK: uxth z0.d, p0/m, z1.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.uxth.nxv2i64( %a, %pg, %b) ret %out } ; ; UXTW ; define @uxtw_i64( %a, %pg, %b) { ; CHECK-LABEL: uxtw_i64: ; CHECK: uxtw z0.d, p0/m, z1.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.uxtw.nxv2i64( %a, %pg, %b) ret %out } declare @llvm.aarch64.sve.sxtb.nxv8i16(, , ) declare @llvm.aarch64.sve.sxtb.nxv4i32(, , ) declare @llvm.aarch64.sve.sxtb.nxv2i64(, , ) declare @llvm.aarch64.sve.sxth.nxv4i32(, , ) declare @llvm.aarch64.sve.sxth.nxv2i64(, , ) declare @llvm.aarch64.sve.sxtw.nxv2i64(, , ) declare @llvm.aarch64.sve.uxtb.nxv8i16(, , ) declare @llvm.aarch64.sve.uxtb.nxv4i32(, , ) declare @llvm.aarch64.sve.uxtb.nxv2i64(, , ) declare @llvm.aarch64.sve.uxth.nxv4i32(, , ) declare @llvm.aarch64.sve.uxth.nxv2i64(, , ) declare @llvm.aarch64.sve.uxtw.nxv2i64(, , )