; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py ; RUN: opt < %s -passes="print" 2>&1 -disable-output -S -mtriple=riscv64 -mattr=+v,+f,+d,+zfh,+zvfh -riscv-v-vector-bits-min=-1 | FileCheck %s define void @fabs() { ; CHECK-LABEL: 'fabs' ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = call half @llvm.fabs.f16(half undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %2 = call <2 x half> @llvm.fabs.v2f16(<2 x half> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %3 = call <4 x half> @llvm.fabs.v4f16(<4 x half> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %4 = call <8 x half> @llvm.fabs.v8f16(<8 x half> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %5 = call <16 x half> @llvm.fabs.v16f16(<16 x half> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %6 = call @llvm.fabs.nxv2f16( undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %7 = call @llvm.fabs.nxv4f16( undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %8 = call @llvm.fabs.nxv8f16( undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %9 = call @llvm.fabs.nxv16f16( undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %10 = call float @llvm.fabs.f32(float undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %11 = call <2 x float> @llvm.fabs.v2f32(<2 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %12 = call <4 x float> @llvm.fabs.v4f32(<4 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %13 = call <8 x float> @llvm.fabs.v8f32(<8 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %14 = call <16 x float> @llvm.fabs.v16f32(<16 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %15 = call @llvm.fabs.nxv1f32( undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %16 = call @llvm.fabs.nxv2f32( undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %17 = call @llvm.fabs.nxv4f32( undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %18 = call @llvm.fabs.nxv8f32( undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %19 = call @llvm.fabs.nxv16f32( undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %20 = call double @llvm.fabs.f64(double undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %21 = call <2 x double> @llvm.fabs.v2f64(<2 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %22 = call <4 x double> @llvm.fabs.v4f64(<4 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %23 = call <8 x double> @llvm.fabs.v8f64(<8 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %24 = call <16 x double> @llvm.fabs.v16f64(<16 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %25 = call @llvm.fabs.nxv1f64( undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %26 = call @llvm.fabs.nxv2f64( undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %27 = call @llvm.fabs.nxv4f64( undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %28 = call @llvm.fabs.nxv8f64( undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; call half @llvm.fabs.f16(half undef) call <2 x half> @llvm.fabs.v2f16(<2 x half> undef) call <4 x half> @llvm.fabs.v4f16(<4 x half> undef) call <8 x half> @llvm.fabs.v8f16(<8 x half> undef) call <16 x half> @llvm.fabs.v16f16(<16 x half> undef) call @llvm.fabs.nvx2f16( undef) call @llvm.fabs.nvx4f16( undef) call @llvm.fabs.nvx8f16( undef) call @llvm.fabs.nvx16f16( undef) call float @llvm.fabs.f32(float undef) call <2 x float> @llvm.fabs.v2f32(<2 x float> undef) call <4 x float> @llvm.fabs.v4f32(<4 x float> undef) call <8 x float> @llvm.fabs.v8f32(<8 x float> undef) call <16 x float> @llvm.fabs.v16f32(<16 x float> undef) call @llvm.fabs.nvx1f32( undef) call @llvm.fabs.nvx2f32( undef) call @llvm.fabs.nvx4f32( undef) call @llvm.fabs.nvx8f32( undef) call @llvm.fabs.nvx16f32( undef) call double @llvm.fabs.f64(double undef) call <2 x double> @llvm.fabs.v2f64(<2 x double> undef) call <4 x double> @llvm.fabs.v4f64(<4 x double> undef) call <8 x double> @llvm.fabs.v8f64(<8 x double> undef) call <16 x double> @llvm.fabs.v16f64(<16 x double> undef) call @llvm.fabs.nvx1f64( undef) call @llvm.fabs.nvx2f64( undef) call @llvm.fabs.nvx4f64( undef) call @llvm.fabs.nvx8f64( undef) ret void } define void @minnum() { ; CHECK-LABEL: 'minnum' ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = call float @llvm.minnum.f32(float undef, float undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %2 = call <2 x float> @llvm.minnum.v2f32(<2 x float> undef, <2 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %3 = call <4 x float> @llvm.minnum.v4f32(<4 x float> undef, <4 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %4 = call <8 x float> @llvm.minnum.v8f32(<8 x float> undef, <8 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %5 = call <16 x float> @llvm.minnum.v16f32(<16 x float> undef, <16 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %6 = call @llvm.minnum.nxv1f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %7 = call @llvm.minnum.nxv2f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %8 = call @llvm.minnum.nxv4f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %9 = call @llvm.minnum.nxv8f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %10 = call @llvm.minnum.nxv16f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %11 = call double @llvm.minnum.f64(double undef, double undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %12 = call <2 x double> @llvm.minnum.v2f64(<2 x double> undef, <2 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %13 = call <4 x double> @llvm.minnum.v4f64(<4 x double> undef, <4 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %14 = call <8 x double> @llvm.minnum.v8f64(<8 x double> undef, <8 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %15 = call <16 x double> @llvm.minnum.v16f64(<16 x double> undef, <16 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %16 = call @llvm.minnum.nxv1f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %17 = call @llvm.minnum.nxv2f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %18 = call @llvm.minnum.nxv4f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %19 = call @llvm.minnum.nxv8f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; call float @llvm.minnum.f32(float undef, float undef) call <2 x float> @llvm.minnum.v2f32(<2 x float> undef, <2 x float> undef) call <4 x float> @llvm.minnum.v4f32(<4 x float> undef, <4 x float> undef) call <8 x float> @llvm.minnum.v8f32(<8 x float> undef, <8 x float> undef) call <16 x float> @llvm.minnum.v16f32(<16 x float> undef, <16 x float> undef) call @llvm.minnum.nvx1f32( undef, undef) call @llvm.minnum.nvx2f32( undef, undef) call @llvm.minnum.nvx4f32( undef, undef) call @llvm.minnum.nvx8f32( undef, undef) call @llvm.minnum.nvx16f32( undef, undef) call double @llvm.minnum.f64(double undef, double undef) call <2 x double> @llvm.minnum.v2f64(<2 x double> undef, <2 x double> undef) call <4 x double> @llvm.minnum.v4f64(<4 x double> undef, <4 x double> undef) call <8 x double> @llvm.minnum.v8f64(<8 x double> undef, <8 x double> undef) call <16 x double> @llvm.minnum.v16f64(<16 x double> undef, <16 x double> undef) call @llvm.minnum.nvx1f64( undef, undef) call @llvm.minnum.nvx2f64( undef, undef) call @llvm.minnum.nvx4f64( undef, undef) call @llvm.minnum.nvx8f64( undef, undef) ret void } define void @maxnum() { ; CHECK-LABEL: 'maxnum' ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = call float @llvm.maxnum.f32(float undef, float undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %2 = call <2 x float> @llvm.maxnum.v2f32(<2 x float> undef, <2 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %3 = call <4 x float> @llvm.maxnum.v4f32(<4 x float> undef, <4 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %4 = call <8 x float> @llvm.maxnum.v8f32(<8 x float> undef, <8 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %5 = call <16 x float> @llvm.maxnum.v16f32(<16 x float> undef, <16 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %6 = call @llvm.maxnum.nxv1f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %7 = call @llvm.maxnum.nxv2f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %8 = call @llvm.maxnum.nxv4f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %9 = call @llvm.maxnum.nxv8f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %10 = call @llvm.maxnum.nxv16f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %11 = call double @llvm.maxnum.f64(double undef, double undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %12 = call <2 x double> @llvm.maxnum.v2f64(<2 x double> undef, <2 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %13 = call <4 x double> @llvm.maxnum.v4f64(<4 x double> undef, <4 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %14 = call <8 x double> @llvm.maxnum.v8f64(<8 x double> undef, <8 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %15 = call <16 x double> @llvm.maxnum.v16f64(<16 x double> undef, <16 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %16 = call @llvm.maxnum.nxv1f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %17 = call @llvm.maxnum.nxv2f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %18 = call @llvm.maxnum.nxv4f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %19 = call @llvm.maxnum.nxv8f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; call float @llvm.maxnum.f32(float undef, float undef) call <2 x float> @llvm.maxnum.v2f32(<2 x float> undef, <2 x float> undef) call <4 x float> @llvm.maxnum.v4f32(<4 x float> undef, <4 x float> undef) call <8 x float> @llvm.maxnum.v8f32(<8 x float> undef, <8 x float> undef) call <16 x float> @llvm.maxnum.v16f32(<16 x float> undef, <16 x float> undef) call @llvm.maxnum.nvx1f32( undef, undef) call @llvm.maxnum.nvx2f32( undef, undef) call @llvm.maxnum.nvx4f32( undef, undef) call @llvm.maxnum.nvx8f32( undef, undef) call @llvm.maxnum.nvx16f32( undef, undef) call double @llvm.maxnum.f64(double undef, double undef) call <2 x double> @llvm.maxnum.v2f64(<2 x double> undef, <2 x double> undef) call <4 x double> @llvm.maxnum.v4f64(<4 x double> undef, <4 x double> undef) call <8 x double> @llvm.maxnum.v8f64(<8 x double> undef, <8 x double> undef) call <16 x double> @llvm.maxnum.v16f64(<16 x double> undef, <16 x double> undef) call @llvm.maxnum.nvx1f64( undef, undef) call @llvm.maxnum.nvx2f64( undef, undef) call @llvm.maxnum.nvx4f64( undef, undef) call @llvm.maxnum.nvx8f64( undef, undef) ret void } define void @minimum() { ; CHECK-LABEL: 'minimum' ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %1 = call float @llvm.minimum.f32(float undef, float undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %2 = call <2 x float> @llvm.minimum.v2f32(<2 x float> undef, <2 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %3 = call <4 x float> @llvm.minimum.v4f32(<4 x float> undef, <4 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %4 = call <8 x float> @llvm.minimum.v8f32(<8 x float> undef, <8 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %5 = call <16 x float> @llvm.minimum.v16f32(<16 x float> undef, <16 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %6 = call @llvm.minimum.nxv1f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %7 = call @llvm.minimum.nxv2f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %8 = call @llvm.minimum.nxv4f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %9 = call @llvm.minimum.nxv8f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %10 = call @llvm.minimum.nxv16f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %11 = call double @llvm.minimum.f64(double undef, double undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %12 = call <2 x double> @llvm.minimum.v2f64(<2 x double> undef, <2 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %13 = call <4 x double> @llvm.minimum.v4f64(<4 x double> undef, <4 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %14 = call <8 x double> @llvm.minimum.v8f64(<8 x double> undef, <8 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %15 = call <16 x double> @llvm.minimum.v16f64(<16 x double> undef, <16 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %16 = call @llvm.minimum.nxv1f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %17 = call @llvm.minimum.nxv2f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %18 = call @llvm.minimum.nxv4f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %19 = call @llvm.minimum.nxv8f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; call float @llvm.minimum.f32(float undef, float undef) call <2 x float> @llvm.minimum.v2f32(<2 x float> undef, <2 x float> undef) call <4 x float> @llvm.minimum.v4f32(<4 x float> undef, <4 x float> undef) call <8 x float> @llvm.minimum.v8f32(<8 x float> undef, <8 x float> undef) call <16 x float> @llvm.minimum.v16f32(<16 x float> undef, <16 x float> undef) call @llvm.minimum.nvx1f32( undef, undef) call @llvm.minimum.nvx2f32( undef, undef) call @llvm.minimum.nvx4f32( undef, undef) call @llvm.minimum.nvx8f32( undef, undef) call @llvm.minimum.nvx16f32( undef, undef) call double @llvm.minimum.f64(double undef, double undef) call <2 x double> @llvm.minimum.v2f64(<2 x double> undef, <2 x double> undef) call <4 x double> @llvm.minimum.v4f64(<4 x double> undef, <4 x double> undef) call <8 x double> @llvm.minimum.v8f64(<8 x double> undef, <8 x double> undef) call <16 x double> @llvm.minimum.v16f64(<16 x double> undef, <16 x double> undef) call @llvm.minimum.nvx1f64( undef, undef) call @llvm.minimum.nvx2f64( undef, undef) call @llvm.minimum.nvx4f64( undef, undef) call @llvm.minimum.nvx8f64( undef, undef) ret void } define void @maximum() { ; CHECK-LABEL: 'maximum' ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %1 = call float @llvm.maximum.f32(float undef, float undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %2 = call <2 x float> @llvm.maximum.v2f32(<2 x float> undef, <2 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %3 = call <4 x float> @llvm.maximum.v4f32(<4 x float> undef, <4 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %4 = call <8 x float> @llvm.maximum.v8f32(<8 x float> undef, <8 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %5 = call <16 x float> @llvm.maximum.v16f32(<16 x float> undef, <16 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %6 = call @llvm.maximum.nxv1f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %7 = call @llvm.maximum.nxv2f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %8 = call @llvm.maximum.nxv4f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %9 = call @llvm.maximum.nxv8f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %10 = call @llvm.maximum.nxv16f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %11 = call double @llvm.maximum.f64(double undef, double undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %12 = call <2 x double> @llvm.maximum.v2f64(<2 x double> undef, <2 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %13 = call <4 x double> @llvm.maximum.v4f64(<4 x double> undef, <4 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %14 = call <8 x double> @llvm.maximum.v8f64(<8 x double> undef, <8 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %15 = call <16 x double> @llvm.maximum.v16f64(<16 x double> undef, <16 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %16 = call @llvm.maximum.nxv1f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %17 = call @llvm.maximum.nxv2f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %18 = call @llvm.maximum.nxv4f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %19 = call @llvm.maximum.nxv8f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; call float @llvm.maximum.f32(float undef, float undef) call <2 x float> @llvm.maximum.v2f32(<2 x float> undef, <2 x float> undef) call <4 x float> @llvm.maximum.v4f32(<4 x float> undef, <4 x float> undef) call <8 x float> @llvm.maximum.v8f32(<8 x float> undef, <8 x float> undef) call <16 x float> @llvm.maximum.v16f32(<16 x float> undef, <16 x float> undef) call @llvm.maximum.nvx1f32( undef, undef) call @llvm.maximum.nvx2f32( undef, undef) call @llvm.maximum.nvx4f32( undef, undef) call @llvm.maximum.nvx8f32( undef, undef) call @llvm.maximum.nvx16f32( undef, undef) call double @llvm.maximum.f64(double undef, double undef) call <2 x double> @llvm.maximum.v2f64(<2 x double> undef, <2 x double> undef) call <4 x double> @llvm.maximum.v4f64(<4 x double> undef, <4 x double> undef) call <8 x double> @llvm.maximum.v8f64(<8 x double> undef, <8 x double> undef) call <16 x double> @llvm.maximum.v16f64(<16 x double> undef, <16 x double> undef) call @llvm.maximum.nvx1f64( undef, undef) call @llvm.maximum.nvx2f64( undef, undef) call @llvm.maximum.nvx4f64( undef, undef) call @llvm.maximum.nvx8f64( undef, undef) ret void } define void @copysign() { ; CHECK-LABEL: 'copysign' ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = call float @llvm.copysign.f32(float undef, float undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %2 = call <2 x float> @llvm.copysign.v2f32(<2 x float> undef, <2 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %3 = call <4 x float> @llvm.copysign.v4f32(<4 x float> undef, <4 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %4 = call <8 x float> @llvm.copysign.v8f32(<8 x float> undef, <8 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %5 = call <16 x float> @llvm.copysign.v16f32(<16 x float> undef, <16 x float> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %6 = call @llvm.copysign.nxv1f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %7 = call @llvm.copysign.nxv2f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %8 = call @llvm.copysign.nxv4f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %9 = call @llvm.copysign.nxv8f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %10 = call @llvm.copysign.nxv16f32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %11 = call double @llvm.copysign.f64(double undef, double undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %12 = call <2 x double> @llvm.copysign.v2f64(<2 x double> undef, <2 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %13 = call <4 x double> @llvm.copysign.v4f64(<4 x double> undef, <4 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %14 = call <8 x double> @llvm.copysign.v8f64(<8 x double> undef, <8 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %15 = call <16 x double> @llvm.copysign.v16f64(<16 x double> undef, <16 x double> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %16 = call @llvm.copysign.nxv1f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %17 = call @llvm.copysign.nxv2f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %18 = call @llvm.copysign.nxv4f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %19 = call @llvm.copysign.nxv8f64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; call float @llvm.copysign.f32(float undef, float undef) call <2 x float> @llvm.copysign.v2f32(<2 x float> undef, <2 x float> undef) call <4 x float> @llvm.copysign.v4f32(<4 x float> undef, <4 x float> undef) call <8 x float> @llvm.copysign.v8f32(<8 x float> undef, <8 x float> undef) call <16 x float> @llvm.copysign.v16f32(<16 x float> undef, <16 x float> undef) call @llvm.copysign.nvx1f32( undef, undef) call @llvm.copysign.nvx2f32( undef, undef) call @llvm.copysign.nvx4f32( undef, undef) call @llvm.copysign.nvx8f32( undef, undef) call @llvm.copysign.nvx16f32( undef, undef) call double @llvm.copysign.f64(double undef, double undef) call <2 x double> @llvm.copysign.v2f64(<2 x double> undef, <2 x double> undef) call <4 x double> @llvm.copysign.v4f64(<4 x double> undef, <4 x double> undef) call <8 x double> @llvm.copysign.v8f64(<8 x double> undef, <8 x double> undef) call <16 x double> @llvm.copysign.v16f64(<16 x double> undef, <16 x double> undef) call @llvm.copysign.nvx1f64( undef, undef) call @llvm.copysign.nvx2f64( undef, undef) call @llvm.copysign.nvx4f64( undef, undef) call @llvm.copysign.nvx8f64( undef, undef) ret void } declare half @llvm.fabs.f16(half) declare <2 x half> @llvm.fabs.v2f16(<2 x half>) declare <4 x half> @llvm.fabs.v4f16(<4 x half>) declare <8 x half> @llvm.fabs.v8f16(<8 x half>) declare <16 x half> @llvm.fabs.v16f16(<16 x half>) declare @llvm.fabs.nvx2f16() declare @llvm.fabs.nvx4f16() declare @llvm.fabs.nvx8f16() declare @llvm.fabs.nvx16f16() declare float @llvm.fabs.f32(float) declare <2 x float> @llvm.fabs.v2f32(<2 x float>) declare <4 x float> @llvm.fabs.v4f32(<4 x float>) declare <8 x float> @llvm.fabs.v8f32(<8 x float>) declare <16 x float> @llvm.fabs.v16f32(<16 x float>) declare @llvm.fabs.nvx1f32() declare @llvm.fabs.nvx2f32() declare @llvm.fabs.nvx4f32() declare @llvm.fabs.nvx8f32() declare @llvm.fabs.nvx16f32() declare double @llvm.fabs.f64(double) declare <2 x double> @llvm.fabs.v2f64(<2 x double>) declare <4 x double> @llvm.fabs.v4f64(<4 x double>) declare <8 x double> @llvm.fabs.v8f64(<8 x double>) declare <16 x double> @llvm.fabs.v16f64(<16 x double>) declare @llvm.fabs.nvx1f64() declare @llvm.fabs.nvx2f64() declare @llvm.fabs.nvx4f64() declare @llvm.fabs.nvx8f64() declare float @llvm.minnum.f32(float, float) declare <2 x float> @llvm.minnum.v2f32(<2 x float>, <2 x float>) declare <4 x float> @llvm.minnum.v4f32(<4 x float>, <4 x float>) declare <8 x float> @llvm.minnum.v8f32(<8 x float>, <8 x float>) declare <16 x float> @llvm.minnum.v16f32(<16 x float>, <16 x float>) declare @llvm.minnum.nvx1f32(, ) declare @llvm.minnum.nvx2f32(, ) declare @llvm.minnum.nvx4f32(, ) declare @llvm.minnum.nvx8f32(, ) declare @llvm.minnum.nvx16f32(, ) declare double @llvm.minnum.f64(double, double) declare <2 x double> @llvm.minnum.v2f64(<2 x double>, <2 x double>) declare <4 x double> @llvm.minnum.v4f64(<4 x double>, <4 x double>) declare <8 x double> @llvm.minnum.v8f64(<8 x double>, <8 x double>) declare <16 x double> @llvm.minnum.v16f64(<16 x double>, <16 x double>) declare @llvm.minnum.nvx1f64(, ) declare @llvm.minnum.nvx2f64(, ) declare @llvm.minnum.nvx4f64(, ) declare @llvm.minnum.nvx8f64(, ) declare float @llvm.maxnum.f32(float, float) declare <2 x float> @llvm.maxnum.v2f32(<2 x float>, <2 x float>) declare <4 x float> @llvm.maxnum.v4f32(<4 x float>, <4 x float>) declare <8 x float> @llvm.maxnum.v8f32(<8 x float>, <8 x float>) declare <16 x float> @llvm.maxnum.v16f32(<16 x float>, <16 x float>) declare @llvm.maxnum.nvx1f32(, ) declare @llvm.maxnum.nvx2f32(, ) declare @llvm.maxnum.nvx4f32(, ) declare @llvm.maxnum.nvx8f32(, ) declare @llvm.maxnum.nvx16f32(, ) declare double @llvm.maxnum.f64(double, double) declare <2 x double> @llvm.maxnum.v2f64(<2 x double>, <2 x double>) declare <4 x double> @llvm.maxnum.v4f64(<4 x double>, <4 x double>) declare <8 x double> @llvm.maxnum.v8f64(<8 x double>, <8 x double>) declare <16 x double> @llvm.maxnum.v16f64(<16 x double>, <16 x double>) declare @llvm.maxnum.nvx1f64(, ) declare @llvm.maxnum.nvx2f64(, ) declare @llvm.maxnum.nvx4f64(, ) declare @llvm.maxnum.nvx8f64(, ) declare float @llvm.minimum.f32(float, float) declare <2 x float> @llvm.minimum.v2f32(<2 x float>, <2 x float>) declare <4 x float> @llvm.minimum.v4f32(<4 x float>, <4 x float>) declare <8 x float> @llvm.minimum.v8f32(<8 x float>, <8 x float>) declare <16 x float> @llvm.minimum.v16f32(<16 x float>, <16 x float>) declare @llvm.minimum.nvx1f32(, ) declare @llvm.minimum.nvx2f32(, ) declare @llvm.minimum.nvx4f32(, ) declare @llvm.minimum.nvx8f32(, ) declare @llvm.minimum.nvx16f32(, ) declare double @llvm.minimum.f64(double, double) declare <2 x double> @llvm.minimum.v2f64(<2 x double>, <2 x double>) declare <4 x double> @llvm.minimum.v4f64(<4 x double>, <4 x double>) declare <8 x double> @llvm.minimum.v8f64(<8 x double>, <8 x double>) declare <16 x double> @llvm.minimum.v16f64(<16 x double>, <16 x double>) declare @llvm.minimum.nvx1f64(, ) declare @llvm.minimum.nvx2f64(, ) declare @llvm.minimum.nvx4f64(, ) declare @llvm.minimum.nvx8f64(, ) declare float @llvm.maximum.f32(float, float) declare <2 x float> @llvm.maximum.v2f32(<2 x float>, <2 x float>) declare <4 x float> @llvm.maximum.v4f32(<4 x float>, <4 x float>) declare <8 x float> @llvm.maximum.v8f32(<8 x float>, <8 x float>) declare <16 x float> @llvm.maximum.v16f32(<16 x float>, <16 x float>) declare @llvm.maximum.nvx1f32(, ) declare @llvm.maximum.nvx2f32(, ) declare @llvm.maximum.nvx4f32(, ) declare @llvm.maximum.nvx8f32(, ) declare @llvm.maximum.nvx16f32(, ) declare double @llvm.maximum.f64(double, double) declare <2 x double> @llvm.maximum.v2f64(<2 x double>, <2 x double>) declare <4 x double> @llvm.maximum.v4f64(<4 x double>, <4 x double>) declare <8 x double> @llvm.maximum.v8f64(<8 x double>, <8 x double>) declare <16 x double> @llvm.maximum.v16f64(<16 x double>, <16 x double>) declare @llvm.maximum.nvx1f64(, ) declare @llvm.maximum.nvx2f64(, ) declare @llvm.maximum.nvx4f64(, ) declare @llvm.maximum.nvx8f64(, ) declare float @llvm.copysign.f32(float, float) declare <2 x float> @llvm.copysign.v2f32(<2 x float>, <2 x float>) declare <4 x float> @llvm.copysign.v4f32(<4 x float>, <4 x float>) declare <8 x float> @llvm.copysign.v8f32(<8 x float>, <8 x float>) declare <16 x float> @llvm.copysign.v16f32(<16 x float>, <16 x float>) declare @llvm.copysign.nvx1f32(, ) declare @llvm.copysign.nvx2f32(, ) declare @llvm.copysign.nvx4f32(, ) declare @llvm.copysign.nvx8f32(, ) declare @llvm.copysign.nvx16f32(, ) declare double @llvm.copysign.f64(double, double) declare <2 x double> @llvm.copysign.v2f64(<2 x double>, <2 x double>) declare <4 x double> @llvm.copysign.v4f64(<4 x double>, <4 x double>) declare <8 x double> @llvm.copysign.v8f64(<8 x double>, <8 x double>) declare <16 x double> @llvm.copysign.v16f64(<16 x double>, <16 x double>) declare @llvm.copysign.nvx1f64(, ) declare @llvm.copysign.nvx2f64(, ) declare @llvm.copysign.nvx4f64(, ) declare @llvm.copysign.nvx8f64(, )