39 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mattr=+sve2p1 -verify-machineinstrs < %s | FileCheck %s3; RUN: llc -mattr=+sve,+sme2 -verify-machineinstrs < %s | FileCheck %s4; RUN: llc -mattr=+sme2 -force-streaming -verify-machineinstrs < %s | FileCheck %s5; RUN: llc -mattr=+sme,+sve2p1 -force-streaming -verify-machineinstrs < %s | FileCheck %s6 7target triple = "aarch64-linux-gnu"8 9define <vscale x 8 x half> @test_fclamp_f16(<vscale x 8 x half> %a, <vscale x 8 x half> %b, <vscale x 8 x half> %c) {10; CHECK-LABEL: test_fclamp_f16:11; CHECK: // %bb.0:12; CHECK-NEXT: fclamp z0.h, z1.h, z2.h13; CHECK-NEXT: ret14 %res = call <vscale x 8 x half> @llvm.aarch64.sve.fclamp.nxv8f16(<vscale x 8 x half> %a, <vscale x 8 x half> %b, <vscale x 8 x half> %c)15 ret <vscale x 8 x half> %res16}17 18define <vscale x 4 x float> @test_fclamp_f32(<vscale x 4 x float> %a, <vscale x 4 x float> %b, <vscale x 4 x float> %c) {19; CHECK-LABEL: test_fclamp_f32:20; CHECK: // %bb.0:21; CHECK-NEXT: fclamp z0.s, z1.s, z2.s22; CHECK-NEXT: ret23 %res = call <vscale x 4 x float> @llvm.aarch64.sve.fclamp.nxv4f32(<vscale x 4 x float> %a, <vscale x 4 x float> %b, <vscale x 4 x float> %c)24 ret <vscale x 4 x float> %res25}26 27define <vscale x 2 x double> @test_fclamp_f64(<vscale x 2 x double> %a, <vscale x 2 x double> %b, <vscale x 2 x double> %c) {28; CHECK-LABEL: test_fclamp_f64:29; CHECK: // %bb.0:30; CHECK-NEXT: fclamp z0.d, z1.d, z2.d31; CHECK-NEXT: ret32 %res = call <vscale x 2 x double> @llvm.aarch64.sve.fclamp.nxv2f64(<vscale x 2 x double> %a, <vscale x 2 x double> %b, <vscale x 2 x double> %c)33 ret <vscale x 2 x double> %res34}35 36declare <vscale x 8 x half> @llvm.aarch64.sve.fclamp.nxv8f16(<vscale x 8 x half>, <vscale x 8 x half>, <vscale x 8 x half>)37declare <vscale x 4 x float> @llvm.aarch64.sve.fclamp.nxv4f32(<vscale x 4 x float>, <vscale x 4 x float>, <vscale x 4 x float>)38declare <vscale x 2 x double> @llvm.aarch64.sve.fclamp.nxv2f64(<vscale x 2 x double>, <vscale x 2 x double>, <vscale x 2 x double>)39