; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc -mattr=+sve2p1 -verify-machineinstrs < %s | FileCheck %s ; RUN: llc -mattr=+sve,+sme -verify-machineinstrs < %s | FileCheck %s ; RUN: llc -mattr=+sme -force-streaming -verify-machineinstrs < %s | FileCheck %s target triple = "aarch64-linux-gnu" define @test_uclamp_i8( %a, %b, %c) { ; CHECK-LABEL: test_uclamp_i8: ; CHECK: // %bb.0: ; CHECK-NEXT: uclamp z0.b, z1.b, z2.b ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.uclamp.nxv16i8( %a, %b, %c) ret %res } define @test_uclamp_i16( %a, %b, %c) { ; CHECK-LABEL: test_uclamp_i16: ; CHECK: // %bb.0: ; CHECK-NEXT: uclamp z0.h, z1.h, z2.h ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.uclamp.nxv8i16( %a, %b, %c) ret %res } define @test_uclamp_i32( %a, %b, %c) { ; CHECK-LABEL: test_uclamp_i32: ; CHECK: // %bb.0: ; CHECK-NEXT: uclamp z0.s, z1.s, z2.s ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.uclamp.nxv4i32( %a, %b, %c) ret %res } define @test_uclamp_i64( %a, %b, %c) { ; CHECK-LABEL: test_uclamp_i64: ; CHECK: // %bb.0: ; CHECK-NEXT: uclamp z0.d, z1.d, z2.d ; CHECK-NEXT: ret %res = call @llvm.aarch64.sve.uclamp.nxv2i64( %a, %b, %c) ret %res } declare @llvm.aarch64.sve.uclamp.nxv16i8(, , ) declare @llvm.aarch64.sve.uclamp.nxv8i16(, , ) declare @llvm.aarch64.sve.uclamp.nxv4i32(, , ) declare @llvm.aarch64.sve.uclamp.nxv2i64(, , )