; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py ; RUN: opt < %s -mtriple=aarch64-unknown-linux-gnu -mattr=+sve -passes="print" -cost-kind=all 2>&1 -disable-output | FileCheck %s target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" define void @umin() { ; CHECK-LABEL: 'umin' ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V4i8 = call @llvm.umin.nxv4i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V8i8 = call @llvm.umin.nxv8i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V16i8 = call @llvm.umin.nxv16i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V32i8 = call @llvm.umin.nxv32i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V64i8 = call @llvm.umin.nxv64i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V2i16 = call @llvm.umin.nxv2i16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V4i16 = call @llvm.umin.nxv4i16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V8i16 = call @llvm.umin.nxv8i16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V16i16 = call @llvm.umin.nxv16i16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %V1i32 = call @llvm.umin.nxv1i32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V2i32 = call @llvm.umin.nxv2i32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V4i32 = call @llvm.umin.nxv4i32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V8i32 = call @llvm.umin.nxv8i32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V2i64 = call @llvm.umin.nxv2i64( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V4i64 = call @llvm.umin.nxv4i64( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %V4i8 = call @llvm.umin.nxv4i8( undef, undef) %V8i8 = call @llvm.umin.nxv8i8( undef, undef) %V16i8 = call @llvm.umin.nxv16i8( undef, undef) %V32i8 = call @llvm.umin.nxv32i8( undef, undef) %V64i8 = call @llvm.umin.nxv64i8( undef, undef) %V2i16 = call @llvm.umin.nxv2i16( undef, undef) %V4i16 = call @llvm.umin.nxv4i16( undef, undef) %V8i16 = call @llvm.umin.nxv8i16( undef, undef) %V16i16 = call @llvm.umin.nxv16i16( undef, undef) %V1i32 = call @llvm.umin.nxv1i32( undef, undef) %V2i32 = call @llvm.umin.nxv2i32( undef, undef) %V4i32 = call @llvm.umin.nxv4i32( undef, undef) %V8i32 = call @llvm.umin.nxv8i32( undef, undef) %V2i64 = call @llvm.umin.nxv2i64( undef, undef) %V4i64 = call @llvm.umin.nxv4i64( undef, undef) ret void } define void @umax() { ; CHECK-LABEL: 'umax' ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V4i8 = call @llvm.umax.nxv4i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V8i8 = call @llvm.umax.nxv8i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V16i8 = call @llvm.umax.nxv16i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V32i8 = call @llvm.umax.nxv32i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V64i8 = call @llvm.umax.nxv64i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V2i16 = call @llvm.umax.nxv2i16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V4i16 = call @llvm.umax.nxv4i16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V8i16 = call @llvm.umax.nxv8i16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V16i16 = call @llvm.umax.nxv16i16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %V1i32 = call @llvm.umax.nxv1i32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V2i32 = call @llvm.umax.nxv2i32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V4i32 = call @llvm.umax.nxv4i32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V8i32 = call @llvm.umax.nxv8i32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V2i64 = call @llvm.umax.nxv2i64( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V4i64 = call @llvm.umax.nxv4i64( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %V4i8 = call @llvm.umax.nxv4i8( undef, undef) %V8i8 = call @llvm.umax.nxv8i8( undef, undef) %V16i8 = call @llvm.umax.nxv16i8( undef, undef) %V32i8 = call @llvm.umax.nxv32i8( undef, undef) %V64i8 = call @llvm.umax.nxv64i8( undef, undef) %V2i16 = call @llvm.umax.nxv2i16( undef, undef) %V4i16 = call @llvm.umax.nxv4i16( undef, undef) %V8i16 = call @llvm.umax.nxv8i16( undef, undef) %V16i16 = call @llvm.umax.nxv16i16( undef, undef) %V1i32 = call @llvm.umax.nxv1i32( undef, undef) %V2i32 = call @llvm.umax.nxv2i32( undef, undef) %V4i32 = call @llvm.umax.nxv4i32( undef, undef) %V8i32 = call @llvm.umax.nxv8i32( undef, undef) %V2i64 = call @llvm.umax.nxv2i64( undef, undef) %V4i64 = call @llvm.umax.nxv4i64( undef, undef) ret void } define void @smin() { ; CHECK-LABEL: 'smin' ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V4i8 = call @llvm.smin.nxv4i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V8i8 = call @llvm.smin.nxv8i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V16i8 = call @llvm.smin.nxv16i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V32i8 = call @llvm.smin.nxv32i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V64i8 = call @llvm.smin.nxv64i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V2i16 = call @llvm.smin.nxv2i16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V4i16 = call @llvm.smin.nxv4i16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V8i16 = call @llvm.smin.nxv8i16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V16i16 = call @llvm.smin.nxv16i16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %V1i32 = call @llvm.smin.nxv1i32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V2i32 = call @llvm.smin.nxv2i32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V4i32 = call @llvm.smin.nxv4i32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V8i32 = call @llvm.smin.nxv8i32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V2i64 = call @llvm.smin.nxv2i64( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V4i64 = call @llvm.smin.nxv4i64( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %V4i8 = call @llvm.smin.nxv4i8( undef, undef) %V8i8 = call @llvm.smin.nxv8i8( undef, undef) %V16i8 = call @llvm.smin.nxv16i8( undef, undef) %V32i8 = call @llvm.smin.nxv32i8( undef, undef) %V64i8 = call @llvm.smin.nxv64i8( undef, undef) %V2i16 = call @llvm.smin.nxv2i16( undef, undef) %V4i16 = call @llvm.smin.nxv4i16( undef, undef) %V8i16 = call @llvm.smin.nxv8i16( undef, undef) %V16i16 = call @llvm.smin.nxv16i16( undef, undef) %V1i32 = call @llvm.smin.nxv1i32( undef, undef) %V2i32 = call @llvm.smin.nxv2i32( undef, undef) %V4i32 = call @llvm.smin.nxv4i32( undef, undef) %V8i32 = call @llvm.smin.nxv8i32( undef, undef) %V2i64 = call @llvm.smin.nxv2i64( undef, undef) %V4i64 = call @llvm.smin.nxv4i64( undef, undef) ret void } define void @smax() { ; CHECK-LABEL: 'smax' ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V4i8 = call @llvm.smax.nxv4i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V8i8 = call @llvm.smax.nxv8i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V16i8 = call @llvm.smax.nxv16i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V32i8 = call @llvm.smax.nxv32i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V64i8 = call @llvm.smax.nxv64i8( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V2i16 = call @llvm.smax.nxv2i16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V4i16 = call @llvm.smax.nxv4i16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V8i16 = call @llvm.smax.nxv8i16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V16i16 = call @llvm.smax.nxv16i16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %V1i32 = call @llvm.smax.nxv1i32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V2i32 = call @llvm.smax.nxv2i32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V4i32 = call @llvm.smax.nxv4i32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V8i32 = call @llvm.smax.nxv8i32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 1 for: %V2i64 = call @llvm.smax.nxv2i64( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V4i64 = call @llvm.smax.nxv4i64( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %V4i8 = call @llvm.smax.nxv4i8( undef, undef) %V8i8 = call @llvm.smax.nxv8i8( undef, undef) %V16i8 = call @llvm.smax.nxv16i8( undef, undef) %V32i8 = call @llvm.smax.nxv32i8( undef, undef) %V64i8 = call @llvm.smax.nxv64i8( undef, undef) %V2i16 = call @llvm.smax.nxv2i16( undef, undef) %V4i16 = call @llvm.smax.nxv4i16( undef, undef) %V8i16 = call @llvm.smax.nxv8i16( undef, undef) %V16i16 = call @llvm.smax.nxv16i16( undef, undef) %V1i32 = call @llvm.smax.nxv1i32( undef, undef) %V2i32 = call @llvm.smax.nxv2i32( undef, undef) %V4i32 = call @llvm.smax.nxv4i32( undef, undef) %V8i32 = call @llvm.smax.nxv8i32( undef, undef) %V2i64 = call @llvm.smax.nxv2i64( undef, undef) %V4i64 = call @llvm.smax.nxv4i64( undef, undef) ret void } define void @minnum() { ; CHECK-LABEL: 'minnum' ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %V1f32 = call @llvm.minnum.nxv1f32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V2f32 = call @llvm.minnum.nxv2f32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V4f32 = call @llvm.minnum.nxv4f32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V8f32 = call @llvm.minnum.nxv8f32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V2f64 = call @llvm.minnum.nxv2f64( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V4f64 = call @llvm.minnum.nxv4f64( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V2f16 = call @llvm.minnum.nxv2f16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V4f16 = call @llvm.minnum.nxv4f16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V8f16 = call @llvm.minnum.nxv8f16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V16f16 = call @llvm.minnum.nxv16f16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %V1f32 = call @llvm.minnum.nxv1f32( undef, undef) %V2f32 = call @llvm.minnum.nxv2f32( undef, undef) %V4f32 = call @llvm.minnum.nxv4f32( undef, undef) %V8f32 = call @llvm.minnum.nxv8f32( undef, undef) %V2f64 = call @llvm.minnum.nxv2f64( undef, undef) %V4f64 = call @llvm.minnum.nxv4f64( undef, undef) %V2f16 = call @llvm.minnum.nxv2f16( undef, undef) %V4f16 = call @llvm.minnum.nxv4f16( undef, undef) %V8f16 = call @llvm.minnum.nxv8f16( undef, undef) %V16f16 = call @llvm.minnum.nxv16f16( undef, undef) ret void } define void @maxnum() { ; CHECK-LABEL: 'maxnum' ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %V1f32 = call @llvm.maxnum.nxv1f32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V2f32 = call @llvm.maxnum.nxv2f32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V4f32 = call @llvm.maxnum.nxv4f32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V8f32 = call @llvm.maxnum.nxv8f32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V2f64 = call @llvm.maxnum.nxv2f64( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V4f64 = call @llvm.maxnum.nxv4f64( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V2f16 = call @llvm.maxnum.nxv2f16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V4f16 = call @llvm.maxnum.nxv4f16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V8f16 = call @llvm.maxnum.nxv8f16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V16f16 = call @llvm.maxnum.nxv16f16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %V1f32 = call @llvm.maxnum.nxv1f32( undef, undef) %V2f32 = call @llvm.maxnum.nxv2f32( undef, undef) %V4f32 = call @llvm.maxnum.nxv4f32( undef, undef) %V8f32 = call @llvm.maxnum.nxv8f32( undef, undef) %V2f64 = call @llvm.maxnum.nxv2f64( undef, undef) %V4f64 = call @llvm.maxnum.nxv4f64( undef, undef) %V2f16 = call @llvm.maxnum.nxv2f16( undef, undef) %V4f16 = call @llvm.maxnum.nxv4f16( undef, undef) %V8f16 = call @llvm.maxnum.nxv8f16( undef, undef) %V16f16 = call @llvm.maxnum.nxv16f16( undef, undef) ret void } define void @minimum() { ; CHECK-LABEL: 'minimum' ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V2f32 = call @llvm.minimum.nxv2f32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V4f32 = call @llvm.minimum.nxv4f32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V8f32 = call @llvm.minimum.nxv8f32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V2f64 = call @llvm.minimum.nxv2f64( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V4f64 = call @llvm.minimum.nxv4f64( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V2f16 = call @llvm.minimum.nxv2f16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V4f16 = call @llvm.minimum.nxv4f16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V8f16 = call @llvm.minimum.nxv8f16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V16f16 = call @llvm.minimum.nxv16f16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %V2f32 = call @llvm.minimum.nxv2f32( undef, undef) %V4f32 = call @llvm.minimum.nxv4f32( undef, undef) %V8f32 = call @llvm.minimum.nxv8f32( undef, undef) %V2f64 = call @llvm.minimum.nxv2f64( undef, undef) %V4f64 = call @llvm.minimum.nxv4f64( undef, undef) %V2f16 = call @llvm.minimum.nxv2f16( undef, undef) %V4f16 = call @llvm.minimum.nxv4f16( undef, undef) %V8f16 = call @llvm.minimum.nxv8f16( undef, undef) %V16f16 = call @llvm.minimum.nxv16f16( undef, undef) ret void } define void @maximum() { ; CHECK-LABEL: 'maximum' ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V2f32 = call @llvm.maximum.nxv2f32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V4f32 = call @llvm.maximum.nxv4f32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V8f32 = call @llvm.maximum.nxv8f32( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V2f64 = call @llvm.maximum.nxv2f64( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V4f64 = call @llvm.maximum.nxv4f64( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V2f16 = call @llvm.maximum.nxv2f16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V4f16 = call @llvm.maximum.nxv4f16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 2 for: %V8f16 = call @llvm.maximum.nxv8f16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of 4 for: %V16f16 = call @llvm.maximum.nxv16f16( undef, undef) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; %V2f32 = call @llvm.maximum.nxv2f32( undef, undef) %V4f32 = call @llvm.maximum.nxv4f32( undef, undef) %V8f32 = call @llvm.maximum.nxv8f32( undef, undef) %V2f64 = call @llvm.maximum.nxv2f64( undef, undef) %V4f64 = call @llvm.maximum.nxv4f64( undef, undef) %V2f16 = call @llvm.maximum.nxv2f16( undef, undef) %V4f16 = call @llvm.maximum.nxv4f16( undef, undef) %V8f16 = call @llvm.maximum.nxv8f16( undef, undef) %V16f16 = call @llvm.maximum.nxv16f16( undef, undef) ret void } define void @minimumnum() { ; CHECK-LABEL: 'minimumnum' ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %1 = call @llvm.minimumnum.nxv2f32( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %2 = call @llvm.minimumnum.nxv4f32( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %3 = call @llvm.minimumnum.nxv8f32( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %4 = call @llvm.minimumnum.nxv16f32( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %5 = call @llvm.minimumnum.nxv2f64( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %6 = call @llvm.minimumnum.nxv4f64( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %7 = call @llvm.minimumnum.nxv8f64( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %8 = call @llvm.minimumnum.nxv16f64( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %10 = call @llvm.minimumnum.nxv2f16( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %11 = call @llvm.minimumnum.nxv4f16( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %12 = call @llvm.minimumnum.nxv8f16( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %13 = call @llvm.minimumnum.nxv16f16( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %14 = call @llvm.minimumnum.nxv2bf16( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %15 = call @llvm.minimumnum.nxv4bf16( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %16 = call @llvm.minimumnum.nxv8bf16( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %17 = call @llvm.minimumnum.nxv16bf16( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; call @llvm.minimumnum( poison, poison) call @llvm.minimumnum( poison, poison) call @llvm.minimumnum( poison, poison) call @llvm.minimumnum( poison, poison) call @llvm.minimumnum( poison, poison) call @llvm.minimumnum( poison, poison) call @llvm.minimumnum( poison, poison) call @llvm.minimumnum( poison, poison) ret void call @llvm.minimumnum( poison, poison) call @llvm.minimumnum( poison, poison) call @llvm.minimumnum( poison, poison) call @llvm.minimumnum( poison, poison) call @llvm.minimumnum( poison, poison) call @llvm.minimumnum( poison, poison) call @llvm.minimumnum( poison, poison) call @llvm.minimumnum( poison, poison) ret void } define void @maximumnum() { ; CHECK-LABEL: 'maximumnum' ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %1 = call @llvm.maximumnum.nxv2f32( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %2 = call @llvm.maximumnum.nxv4f32( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %3 = call @llvm.maximumnum.nxv8f32( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %4 = call @llvm.maximumnum.nxv16f32( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %5 = call @llvm.maximumnum.nxv2f64( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %6 = call @llvm.maximumnum.nxv4f64( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %7 = call @llvm.maximumnum.nxv8f64( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %8 = call @llvm.maximumnum.nxv16f64( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %10 = call @llvm.maximumnum.nxv2f16( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %11 = call @llvm.maximumnum.nxv4f16( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %12 = call @llvm.maximumnum.nxv8f16( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %13 = call @llvm.maximumnum.nxv16f16( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %14 = call @llvm.maximumnum.nxv2bf16( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %15 = call @llvm.maximumnum.nxv4bf16( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %16 = call @llvm.maximumnum.nxv8bf16( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of Invalid for: %17 = call @llvm.maximumnum.nxv16bf16( poison, poison) ; CHECK-NEXT: Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret void ; call @llvm.maximumnum( poison, poison) call @llvm.maximumnum( poison, poison) call @llvm.maximumnum( poison, poison) call @llvm.maximumnum( poison, poison) call @llvm.maximumnum( poison, poison) call @llvm.maximumnum( poison, poison) call @llvm.maximumnum( poison, poison) call @llvm.maximumnum( poison, poison) ret void call @llvm.maximumnum( poison, poison) call @llvm.maximumnum( poison, poison) call @llvm.maximumnum( poison, poison) call @llvm.maximumnum( poison, poison) call @llvm.maximumnum( poison, poison) call @llvm.maximumnum( poison, poison) call @llvm.maximumnum( poison, poison) call @llvm.maximumnum( poison, poison) ret void } declare @llvm.umin.nxv4i8(, ) declare @llvm.umin.nxv8i8(, ) declare @llvm.umin.nxv16i8(, ) declare @llvm.umin.nxv32i8(, ) declare @llvm.umin.nxv64i8(, ) declare @llvm.umin.nxv2i16(, ) declare @llvm.umin.nxv4i16(, ) declare @llvm.umin.nxv8i16(, ) declare @llvm.umin.nxv16i16(, ) declare @llvm.umin.nxv2i32(, ) declare @llvm.umin.nxv4i32(, ) declare @llvm.umin.nxv8i32(, ) declare @llvm.umin.nxv2i64(, ) declare @llvm.umin.nxv4i64(, ) declare @llvm.umax.nxv4i8(, ) declare @llvm.umax.nxv8i8(, ) declare @llvm.umax.nxv16i8(, ) declare @llvm.umax.nxv32i8(, ) declare @llvm.umax.nxv64i8(, ) declare @llvm.umax.nxv2i16(, ) declare @llvm.umax.nxv4i16(, ) declare @llvm.umax.nxv8i16(, ) declare @llvm.umax.nxv16i16(, ) declare @llvm.umax.nxv2i32(, ) declare @llvm.umax.nxv4i32(, ) declare @llvm.umax.nxv8i32(, ) declare @llvm.umax.nxv2i64(, ) declare @llvm.umax.nxv4i64(, ) declare @llvm.smin.nxv4i8(, ) declare @llvm.smin.nxv8i8(, ) declare @llvm.smin.nxv16i8(, ) declare @llvm.smin.nxv32i8(, ) declare @llvm.smin.nxv64i8(, ) declare @llvm.smin.nxv2i16(, ) declare @llvm.smin.nxv4i16(, ) declare @llvm.smin.nxv8i16(, ) declare @llvm.smin.nxv16i16(, ) declare @llvm.smin.nxv2i32(, ) declare @llvm.smin.nxv4i32(, ) declare @llvm.smin.nxv8i32(, ) declare @llvm.smin.nxv2i64(, ) declare @llvm.smin.nxv4i64(, ) declare @llvm.smax.nxv4i8(, ) declare @llvm.smax.nxv8i8(, ) declare @llvm.smax.nxv16i8(, ) declare @llvm.smax.nxv32i8(, ) declare @llvm.smax.nxv64i8(, ) declare @llvm.smax.nxv2i16(, ) declare @llvm.smax.nxv4i16(, ) declare @llvm.smax.nxv8i16(, ) declare @llvm.smax.nxv16i16(, ) declare @llvm.smax.nxv2i32(, ) declare @llvm.smax.nxv4i32(, ) declare @llvm.smax.nxv8i32(, ) declare @llvm.smax.nxv2i64(, ) declare @llvm.smax.nxv4i64(, ) declare @llvm.minnum.nxv2f16(, ) declare @llvm.minnum.nxv4f16(, ) declare @llvm.minnum.nxv8f16(, ) declare @llvm.minnum.nxv16f16(, ) declare @llvm.minnum.nxv2f32(, ) declare @llvm.minnum.nxv4f32(, ) declare @llvm.minnum.nxv8f32(, ) declare @llvm.minnum.nxv2f64(, ) declare @llvm.minnum.nxv4f64(, ) declare @llvm.maxnum.nxv2f16(, ) declare @llvm.maxnum.nxv4f16(, ) declare @llvm.maxnum.nxv8f16(, ) declare @llvm.maxnum.nxv16f16(, ) declare @llvm.maxnum.nxv2f32(, ) declare @llvm.maxnum.nxv4f32(, ) declare @llvm.maxnum.nxv8f32(, ) declare @llvm.maxnum.nxv2f64(, ) declare @llvm.maxnum.nxv4f64(, ) declare @llvm.minimum.nxv2f16(, ) declare @llvm.minimum.nxv4f16(, ) declare @llvm.minimum.nxv8f16(, ) declare @llvm.minimum.nxv16f16(, ) declare @llvm.minimum.nxv2f32(, ) declare @llvm.minimum.nxv4f32(, ) declare @llvm.minimum.nxv8f32(, ) declare @llvm.minimum.nxv2f64(, ) declare @llvm.minimum.nxv4f64(, ) declare @llvm.maximum.nxv2f16(, ) declare @llvm.maximum.nxv4f16(, ) declare @llvm.maximum.nxv8f16(, ) declare @llvm.maximum.nxv16f16(, ) declare @llvm.maximum.nxv2f32(, ) declare @llvm.maximum.nxv4f32(, ) declare @llvm.maximum.nxv8f32(, ) declare @llvm.maximum.nxv2f64(, ) declare @llvm.maximum.nxv4f64(, )