; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 5 ; RUN: opt < %s -mtriple=riscv32 -mattr=+v,+f -passes="print" -cost-kind=throughput -intrinsic-cost-strategy=type-based-intrinsic-cost 2>&1 -disable-output | FileCheck %s --check-prefixes=CHECK,RV32 ; RUN: opt < %s -mtriple=riscv64 -mattr=+v,+f -passes="print" -cost-kind=throughput -intrinsic-cost-strategy=type-based-intrinsic-cost 2>&1 -disable-output | FileCheck %s --check-prefixes=CHECK,RV64 define void @icmp() { ; CHECK-LABEL: 'icmp' ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = icmp slt <2 x i1> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %2 = icmp slt <2 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %3 = icmp slt <2 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %4 = icmp slt <2 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %5 = icmp slt <2 x i64> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %6 = call <2 x i1> @llvm.vp.icmp.v2i1(<2 x i1> undef, <2 x i1> undef, metadata !"slt", <2 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %7 = call <2 x i1> @llvm.vp.icmp.v2i8(<2 x i8> undef, <2 x i8> undef, metadata !"slt", <2 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %8 = call <2 x i1> @llvm.vp.icmp.v2i16(<2 x i16> undef, <2 x i16> undef, metadata !"slt", <2 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %9 = call <2 x i1> @llvm.vp.icmp.v2i32(<2 x i32> undef, <2 x i32> undef, metadata !"slt", <2 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %10 = call <2 x i1> @llvm.vp.icmp.v2i64(<2 x i64> undef, <2 x i64> undef, metadata !"slt", <2 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %11 = icmp slt <4 x i1> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %12 = icmp slt <4 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %13 = icmp slt <4 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %14 = icmp slt <4 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %15 = icmp slt <4 x i64> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %16 = call <4 x i1> @llvm.vp.icmp.v4i1(<4 x i1> undef, <4 x i1> undef, metadata !"slt", <4 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %17 = call <4 x i1> @llvm.vp.icmp.v4i8(<4 x i8> undef, <4 x i8> undef, metadata !"slt", <4 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %18 = call <4 x i1> @llvm.vp.icmp.v4i16(<4 x i16> undef, <4 x i16> undef, metadata !"slt", <4 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %19 = call <4 x i1> @llvm.vp.icmp.v4i32(<4 x i32> undef, <4 x i32> undef, metadata !"slt", <4 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %20 = call <4 x i1> @llvm.vp.icmp.v4i64(<4 x i64> undef, <4 x i64> undef, metadata !"slt", <4 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %21 = icmp slt <8 x i1> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %22 = icmp slt <8 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %23 = icmp slt <8 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %24 = icmp slt <8 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %25 = icmp slt <8 x i64> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %26 = call <8 x i1> @llvm.vp.icmp.v8i1(<8 x i1> undef, <8 x i1> undef, metadata !"slt", <8 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %27 = call <8 x i1> @llvm.vp.icmp.v8i8(<8 x i8> undef, <8 x i8> undef, metadata !"slt", <8 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %28 = call <8 x i1> @llvm.vp.icmp.v8i16(<8 x i16> undef, <8 x i16> undef, metadata !"slt", <8 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %29 = call <8 x i1> @llvm.vp.icmp.v8i32(<8 x i32> undef, <8 x i32> undef, metadata !"slt", <8 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %30 = call <8 x i1> @llvm.vp.icmp.v8i64(<8 x i64> undef, <8 x i64> undef, metadata !"slt", <8 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %31 = icmp slt <16 x i1> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %32 = icmp slt <16 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %33 = icmp slt <16 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %34 = icmp slt <16 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %35 = icmp slt <16 x i64> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %36 = call <16 x i1> @llvm.vp.icmp.v16i1(<16 x i1> undef, <16 x i1> undef, metadata !"slt", <16 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %37 = call <16 x i1> @llvm.vp.icmp.v16i8(<16 x i8> undef, <16 x i8> undef, metadata !"slt", <16 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %38 = call <16 x i1> @llvm.vp.icmp.v16i16(<16 x i16> undef, <16 x i16> undef, metadata !"slt", <16 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %39 = call <16 x i1> @llvm.vp.icmp.v16i32(<16 x i32> undef, <16 x i32> undef, metadata !"slt", <16 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %40 = call <16 x i1> @llvm.vp.icmp.v16i64(<16 x i64> undef, <16 x i64> undef, metadata !"slt", <16 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %41 = icmp slt <32 x i1> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %42 = icmp slt <32 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %43 = icmp slt <32 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %44 = icmp slt <32 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %45 = icmp slt <32 x i64> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %46 = call <32 x i1> @llvm.vp.icmp.v32i1(<32 x i1> undef, <32 x i1> undef, metadata !"slt", <32 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %47 = call <32 x i1> @llvm.vp.icmp.v32i8(<32 x i8> undef, <32 x i8> undef, metadata !"slt", <32 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %48 = call <32 x i1> @llvm.vp.icmp.v32i16(<32 x i16> undef, <32 x i16> undef, metadata !"slt", <32 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %49 = call <32 x i1> @llvm.vp.icmp.v32i32(<32 x i32> undef, <32 x i32> undef, metadata !"slt", <32 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %50 = call <32 x i1> @llvm.vp.icmp.v32i64(<32 x i64> undef, <32 x i64> undef, metadata !"slt", <32 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %51 = icmp slt <64 x i1> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %52 = icmp slt <64 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %53 = icmp slt <64 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %54 = icmp slt <64 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %55 = icmp slt <64 x i64> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %56 = call <64 x i1> @llvm.vp.icmp.v64i1(<64 x i1> undef, <64 x i1> undef, metadata !"slt", <64 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %57 = call <64 x i1> @llvm.vp.icmp.v64i8(<64 x i8> undef, <64 x i8> undef, metadata !"slt", <64 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %58 = call <64 x i1> @llvm.vp.icmp.v64i16(<64 x i16> undef, <64 x i16> undef, metadata !"slt", <64 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %59 = call <64 x i1> @llvm.vp.icmp.v64i32(<64 x i32> undef, <64 x i32> undef, metadata !"slt", <64 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %60 = call <64 x i1> @llvm.vp.icmp.v64i64(<64 x i64> undef, <64 x i64> undef, metadata !"slt", <64 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %61 = icmp slt <128 x i1> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %62 = icmp slt <128 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %63 = icmp slt <128 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %64 = icmp slt <128 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 64 for instruction: %65 = icmp slt <128 x i64> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %66 = call <128 x i1> @llvm.vp.icmp.v128i1(<128 x i1> undef, <128 x i1> undef, metadata !"slt", <128 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %67 = call <128 x i1> @llvm.vp.icmp.v128i8(<128 x i8> undef, <128 x i8> undef, metadata !"slt", <128 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %68 = call <128 x i1> @llvm.vp.icmp.v128i16(<128 x i16> undef, <128 x i16> undef, metadata !"slt", <128 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %69 = call <128 x i1> @llvm.vp.icmp.v128i32(<128 x i32> undef, <128 x i32> undef, metadata !"slt", <128 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 64 for instruction: %70 = call <128 x i1> @llvm.vp.icmp.v128i64(<128 x i64> undef, <128 x i64> undef, metadata !"slt", <128 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %71 = icmp slt <256 x i1> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %72 = icmp slt <256 x i8> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %73 = icmp slt <256 x i16> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 64 for instruction: %74 = icmp slt <256 x i32> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 128 for instruction: %75 = icmp slt <256 x i64> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %76 = call <256 x i1> @llvm.vp.icmp.v256i1(<256 x i1> undef, <256 x i1> undef, metadata !"slt", <256 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %77 = call <256 x i1> @llvm.vp.icmp.v256i8(<256 x i8> undef, <256 x i8> undef, metadata !"slt", <256 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %78 = call <256 x i1> @llvm.vp.icmp.v256i16(<256 x i16> undef, <256 x i16> undef, metadata !"slt", <256 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 64 for instruction: %79 = call <256 x i1> @llvm.vp.icmp.v256i32(<256 x i32> undef, <256 x i32> undef, metadata !"slt", <256 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 128 for instruction: %80 = call <256 x i1> @llvm.vp.icmp.v256i64(<256 x i64> undef, <256 x i64> undef, metadata !"slt", <256 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %81 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %82 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %83 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %84 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %85 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %86 = call @llvm.vp.icmp.nxv1i1( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %87 = call @llvm.vp.icmp.nxv1i8( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %88 = call @llvm.vp.icmp.nxv1i16( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %89 = call @llvm.vp.icmp.nxv1i32( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %90 = call @llvm.vp.icmp.nxv1i64( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %91 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %92 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %93 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %94 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %95 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %96 = call @llvm.vp.icmp.nxv2i1( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %97 = call @llvm.vp.icmp.nxv2i8( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %98 = call @llvm.vp.icmp.nxv2i16( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %99 = call @llvm.vp.icmp.nxv2i32( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %100 = call @llvm.vp.icmp.nxv2i64( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %101 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %102 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %103 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %104 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %105 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %106 = call @llvm.vp.icmp.nxv4i1( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %107 = call @llvm.vp.icmp.nxv4i8( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %108 = call @llvm.vp.icmp.nxv4i16( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %109 = call @llvm.vp.icmp.nxv4i32( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %110 = call @llvm.vp.icmp.nxv4i64( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %111 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %112 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %113 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %114 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %115 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %116 = call @llvm.vp.icmp.nxv8i1( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %117 = call @llvm.vp.icmp.nxv8i8( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %118 = call @llvm.vp.icmp.nxv8i16( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %119 = call @llvm.vp.icmp.nxv8i32( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %120 = call @llvm.vp.icmp.nxv8i64( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %121 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %122 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %123 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %124 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %125 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %126 = call @llvm.vp.icmp.nxv16i1( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %127 = call @llvm.vp.icmp.nxv16i8( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %128 = call @llvm.vp.icmp.nxv16i16( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %129 = call @llvm.vp.icmp.nxv16i32( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %130 = call @llvm.vp.icmp.nxv16i64( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %131 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %132 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %133 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %134 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %135 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %136 = call @llvm.vp.icmp.nxv32i1( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %137 = call @llvm.vp.icmp.nxv32i8( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %138 = call @llvm.vp.icmp.nxv32i16( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %139 = call @llvm.vp.icmp.nxv32i32( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %140 = call @llvm.vp.icmp.nxv32i64( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %141 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %142 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %143 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %144 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 64 for instruction: %145 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %146 = call @llvm.vp.icmp.nxv64i1( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %147 = call @llvm.vp.icmp.nxv64i8( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %148 = call @llvm.vp.icmp.nxv64i16( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %149 = call @llvm.vp.icmp.nxv64i32( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 64 for instruction: %150 = call @llvm.vp.icmp.nxv64i64( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %151 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %152 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %153 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 64 for instruction: %154 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 128 for instruction: %155 = icmp slt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %156 = call @llvm.vp.icmp.nxv128i1( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %157 = call @llvm.vp.icmp.nxv128i8( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %158 = call @llvm.vp.icmp.nxv128i16( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 64 for instruction: %159 = call @llvm.vp.icmp.nxv128i32( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 128 for instruction: %160 = call @llvm.vp.icmp.nxv128i64( undef, undef, metadata !"slt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; icmp slt <2 x i1> undef, undef icmp slt <2 x i8> undef, undef icmp slt <2 x i16> undef, undef icmp slt <2 x i32> undef, undef icmp slt <2 x i64> undef, undef call <2 x i1> @llvm.vp.icmp.v2i1(<2 x i1> undef, <2 x i1> undef, metadata !"slt", <2 x i1> undef, i32 undef) call <2 x i1> @llvm.vp.icmp.v2i8(<2 x i8> undef, <2 x i8> undef, metadata !"slt", <2 x i1> undef, i32 undef) call <2 x i1> @llvm.vp.icmp.v2i16(<2 x i16> undef, <2 x i16> undef, metadata !"slt", <2 x i1> undef, i32 undef) call <2 x i1> @llvm.vp.icmp.v2i32(<2 x i32> undef, <2 x i32> undef, metadata !"slt", <2 x i1> undef, i32 undef) call <2 x i1> @llvm.vp.icmp.v2i64(<2 x i64> undef, <2 x i64> undef, metadata !"slt", <2 x i1> undef, i32 undef) icmp slt <4 x i1> undef, undef icmp slt <4 x i8> undef, undef icmp slt <4 x i16> undef, undef icmp slt <4 x i32> undef, undef icmp slt <4 x i64> undef, undef call <4 x i1> @llvm.vp.icmp.v4i1(<4 x i1> undef, <4 x i1> undef, metadata !"slt", <4 x i1> undef, i32 undef) call <4 x i1> @llvm.vp.icmp.v4i8(<4 x i8> undef, <4 x i8> undef, metadata !"slt", <4 x i1> undef, i32 undef) call <4 x i1> @llvm.vp.icmp.v4i16(<4 x i16> undef, <4 x i16> undef, metadata !"slt", <4 x i1> undef, i32 undef) call <4 x i1> @llvm.vp.icmp.v4i32(<4 x i32> undef, <4 x i32> undef, metadata !"slt", <4 x i1> undef, i32 undef) call <4 x i1> @llvm.vp.icmp.v4i64(<4 x i64> undef, <4 x i64> undef, metadata !"slt", <4 x i1> undef, i32 undef) icmp slt <8 x i1> undef, undef icmp slt <8 x i8> undef, undef icmp slt <8 x i16> undef, undef icmp slt <8 x i32> undef, undef icmp slt <8 x i64> undef, undef call <8 x i1> @llvm.vp.icmp.v8i1(<8 x i1> undef, <8 x i1> undef, metadata !"slt", <8 x i1> undef, i32 undef) call <8 x i1> @llvm.vp.icmp.v8i8(<8 x i8> undef, <8 x i8> undef, metadata !"slt", <8 x i1> undef, i32 undef) call <8 x i1> @llvm.vp.icmp.v8i16(<8 x i16> undef, <8 x i16> undef, metadata !"slt", <8 x i1> undef, i32 undef) call <8 x i1> @llvm.vp.icmp.v8i32(<8 x i32> undef, <8 x i32> undef, metadata !"slt", <8 x i1> undef, i32 undef) call <8 x i1> @llvm.vp.icmp.v8i64(<8 x i64> undef, <8 x i64> undef, metadata !"slt", <8 x i1> undef, i32 undef) icmp slt <16 x i1> undef, undef icmp slt <16 x i8> undef, undef icmp slt <16 x i16> undef, undef icmp slt <16 x i32> undef, undef icmp slt <16 x i64> undef, undef call <16 x i1> @llvm.vp.icmp.v16i1(<16 x i1> undef, <16 x i1> undef, metadata !"slt", <16 x i1> undef, i32 undef) call <16 x i1> @llvm.vp.icmp.v16i8(<16 x i8> undef, <16 x i8> undef, metadata !"slt", <16 x i1> undef, i32 undef) call <16 x i1> @llvm.vp.icmp.v16i16(<16 x i16> undef, <16 x i16> undef, metadata !"slt", <16 x i1> undef, i32 undef) call <16 x i1> @llvm.vp.icmp.v16i32(<16 x i32> undef, <16 x i32> undef, metadata !"slt", <16 x i1> undef, i32 undef) call <16 x i1> @llvm.vp.icmp.v16i64(<16 x i64> undef, <16 x i64> undef, metadata !"slt", <16 x i1> undef, i32 undef) icmp slt <32 x i1> undef, undef icmp slt <32 x i8> undef, undef icmp slt <32 x i16> undef, undef icmp slt <32 x i32> undef, undef icmp slt <32 x i64> undef, undef call <32 x i1> @llvm.vp.icmp.v32i1(<32 x i1> undef, <32 x i1> undef, metadata !"slt", <32 x i1> undef, i32 undef) call <32 x i1> @llvm.vp.icmp.v32i8(<32 x i8> undef, <32 x i8> undef, metadata !"slt", <32 x i1> undef, i32 undef) call <32 x i1> @llvm.vp.icmp.v32i16(<32 x i16> undef, <32 x i16> undef, metadata !"slt", <32 x i1> undef, i32 undef) call <32 x i1> @llvm.vp.icmp.v32i32(<32 x i32> undef, <32 x i32> undef, metadata !"slt", <32 x i1> undef, i32 undef) call <32 x i1> @llvm.vp.icmp.v32i64(<32 x i64> undef, <32 x i64> undef, metadata !"slt", <32 x i1> undef, i32 undef) icmp slt <64 x i1> undef, undef icmp slt <64 x i8> undef, undef icmp slt <64 x i16> undef, undef icmp slt <64 x i32> undef, undef icmp slt <64 x i64> undef, undef call <64 x i1> @llvm.vp.icmp.v64i1(<64 x i1> undef, <64 x i1> undef, metadata !"slt", <64 x i1> undef, i32 undef) call <64 x i1> @llvm.vp.icmp.v64i8(<64 x i8> undef, <64 x i8> undef, metadata !"slt", <64 x i1> undef, i32 undef) call <64 x i1> @llvm.vp.icmp.v64i16(<64 x i16> undef, <64 x i16> undef, metadata !"slt", <64 x i1> undef, i32 undef) call <64 x i1> @llvm.vp.icmp.v64i32(<64 x i32> undef, <64 x i32> undef, metadata !"slt", <64 x i1> undef, i32 undef) call <64 x i1> @llvm.vp.icmp.v64i64(<64 x i64> undef, <64 x i64> undef, metadata !"slt", <64 x i1> undef, i32 undef) icmp slt <128 x i1> undef, undef icmp slt <128 x i8> undef, undef icmp slt <128 x i16> undef, undef icmp slt <128 x i32> undef, undef icmp slt <128 x i64> undef, undef call <128 x i1> @llvm.vp.icmp.v128i1(<128 x i1> undef, <128 x i1> undef, metadata !"slt", <128 x i1> undef, i32 undef) call <128 x i1> @llvm.vp.icmp.v128i8(<128 x i8> undef, <128 x i8> undef, metadata !"slt", <128 x i1> undef, i32 undef) call <128 x i1> @llvm.vp.icmp.v128i16(<128 x i16> undef, <128 x i16> undef, metadata !"slt", <128 x i1> undef, i32 undef) call <128 x i1> @llvm.vp.icmp.v128i32(<128 x i32> undef, <128 x i32> undef, metadata !"slt", <128 x i1> undef, i32 undef) call <128 x i1> @llvm.vp.icmp.v128i64(<128 x i64> undef, <128 x i64> undef, metadata !"slt", <128 x i1> undef, i32 undef) icmp slt <256 x i1> undef, undef icmp slt <256 x i8> undef, undef icmp slt <256 x i16> undef, undef icmp slt <256 x i32> undef, undef icmp slt <256 x i64> undef, undef call <256 x i1> @llvm.vp.icmp.v256i1(<256 x i1> undef, <256 x i1> undef, metadata !"slt", <256 x i1> undef, i32 undef) call <256 x i1> @llvm.vp.icmp.v256i8(<256 x i8> undef, <256 x i8> undef, metadata !"slt", <256 x i1> undef, i32 undef) call <256 x i1> @llvm.vp.icmp.v256i16(<256 x i16> undef, <256 x i16> undef, metadata !"slt", <256 x i1> undef, i32 undef) call <256 x i1> @llvm.vp.icmp.v256i32(<256 x i32> undef, <256 x i32> undef, metadata !"slt", <256 x i1> undef, i32 undef) call <256 x i1> @llvm.vp.icmp.v256i64(<256 x i64> undef, <256 x i64> undef, metadata !"slt", <256 x i1> undef, i32 undef) icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef call @llvm.vp.icmp.nxv1i1( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv1i8( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv1i16( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv1i32( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv1i64( undef, undef, metadata !"slt", undef, i32 undef) icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef call @llvm.vp.icmp.nxv2i1( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv2i8( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv2i16( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv2i32( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv2i64( undef, undef, metadata !"slt", undef, i32 undef) icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef call @llvm.vp.icmp.nxv4i1( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv4i8( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv4i16( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv4i32( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv4i64( undef, undef, metadata !"slt", undef, i32 undef) icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef call @llvm.vp.icmp.nxv8i1( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv8i8( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv8i16( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv8i32( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv8i64( undef, undef, metadata !"slt", undef, i32 undef) icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef call @llvm.vp.icmp.nxv16i1( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv16i8( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv16i16( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv16i32( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv16i64( undef, undef, metadata !"slt", undef, i32 undef) icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef call @llvm.vp.icmp.nxv32i1( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv32i8( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv32i16( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv32i32( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv32i64( undef, undef, metadata !"slt", undef, i32 undef) icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef call @llvm.vp.icmp.nxv64i1( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv64i8( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv64i16( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv64i32( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv64i64( undef, undef, metadata !"slt", undef, i32 undef) icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef icmp slt undef, undef call @llvm.vp.icmp.nxv128i1( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv128i8( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv128i16( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv128i32( undef, undef, metadata !"slt", undef, i32 undef) call @llvm.vp.icmp.nxv128i64( undef, undef, metadata !"slt", undef, i32 undef) ret void } define void @fcmp() { ; CHECK-LABEL: 'fcmp' ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = fcmp olt <2 x float> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %2 = fcmp olt <2 x double> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %3 = call <2 x i1> @llvm.vp.fcmp.v2f32(<2 x float> undef, <2 x float> undef, metadata !"olt", <2 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %4 = call <2 x i1> @llvm.vp.fcmp.v2f64(<2 x double> undef, <2 x double> undef, metadata !"olt", <2 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %5 = fcmp olt <4 x float> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %6 = fcmp olt <4 x double> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %7 = call <4 x i1> @llvm.vp.fcmp.v4f32(<4 x float> undef, <4 x float> undef, metadata !"olt", <4 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %8 = call <4 x i1> @llvm.vp.fcmp.v4f64(<4 x double> undef, <4 x double> undef, metadata !"olt", <4 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %9 = fcmp olt <8 x float> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %10 = fcmp olt <8 x double> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %11 = call <8 x i1> @llvm.vp.fcmp.v8f32(<8 x float> undef, <8 x float> undef, metadata !"olt", <8 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %12 = call <8 x i1> @llvm.vp.fcmp.v8f64(<8 x double> undef, <8 x double> undef, metadata !"olt", <8 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %13 = fcmp olt <16 x float> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %14 = fcmp olt <16 x double> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %15 = call <16 x i1> @llvm.vp.fcmp.v16f32(<16 x float> undef, <16 x float> undef, metadata !"olt", <16 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %16 = call <16 x i1> @llvm.vp.fcmp.v16f64(<16 x double> undef, <16 x double> undef, metadata !"olt", <16 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %17 = fcmp olt <32 x float> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %18 = fcmp olt <32 x double> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %19 = call <32 x i1> @llvm.vp.fcmp.v32f32(<32 x float> undef, <32 x float> undef, metadata !"olt", <32 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %20 = call <32 x i1> @llvm.vp.fcmp.v32f64(<32 x double> undef, <32 x double> undef, metadata !"olt", <32 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %21 = fcmp olt <64 x float> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %22 = fcmp olt <64 x double> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %23 = call <64 x i1> @llvm.vp.fcmp.v64f32(<64 x float> undef, <64 x float> undef, metadata !"olt", <64 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %24 = call <64 x i1> @llvm.vp.fcmp.v64f64(<64 x double> undef, <64 x double> undef, metadata !"olt", <64 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %25 = fcmp olt <128 x float> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 64 for instruction: %26 = fcmp olt <128 x double> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %27 = call <128 x i1> @llvm.vp.fcmp.v128f32(<128 x float> undef, <128 x float> undef, metadata !"olt", <128 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 64 for instruction: %28 = call <128 x i1> @llvm.vp.fcmp.v128f64(<128 x double> undef, <128 x double> undef, metadata !"olt", <128 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 64 for instruction: %29 = fcmp olt <256 x float> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 128 for instruction: %30 = fcmp olt <256 x double> undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 64 for instruction: %31 = call <256 x i1> @llvm.vp.fcmp.v256f32(<256 x float> undef, <256 x float> undef, metadata !"olt", <256 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 128 for instruction: %32 = call <256 x i1> @llvm.vp.fcmp.v256f64(<256 x double> undef, <256 x double> undef, metadata !"olt", <256 x i1> undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %33 = fcmp olt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %34 = fcmp olt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %35 = call @llvm.vp.fcmp.nxv1f32( undef, undef, metadata !"olt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %36 = call @llvm.vp.fcmp.nxv1f64( undef, undef, metadata !"olt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %37 = fcmp olt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %38 = fcmp olt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %39 = call @llvm.vp.fcmp.nxv2f32( undef, undef, metadata !"olt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %40 = call @llvm.vp.fcmp.nxv2f64( undef, undef, metadata !"olt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %41 = fcmp olt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %42 = fcmp olt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %43 = call @llvm.vp.fcmp.nxv4f32( undef, undef, metadata !"olt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %44 = call @llvm.vp.fcmp.nxv4f64( undef, undef, metadata !"olt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %45 = fcmp olt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %46 = fcmp olt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %47 = call @llvm.vp.fcmp.nxv8f32( undef, undef, metadata !"olt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %48 = call @llvm.vp.fcmp.nxv8f64( undef, undef, metadata !"olt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %49 = fcmp olt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %50 = fcmp olt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %51 = call @llvm.vp.fcmp.nxv16f32( undef, undef, metadata !"olt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %52 = call @llvm.vp.fcmp.nxv16f64( undef, undef, metadata !"olt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %53 = fcmp olt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %54 = fcmp olt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %55 = call @llvm.vp.fcmp.nxv32f32( undef, undef, metadata !"olt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %56 = call @llvm.vp.fcmp.nxv32f64( undef, undef, metadata !"olt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %57 = fcmp olt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 64 for instruction: %58 = fcmp olt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %59 = call @llvm.vp.fcmp.nxv64f32( undef, undef, metadata !"olt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 64 for instruction: %60 = call @llvm.vp.fcmp.nxv64f64( undef, undef, metadata !"olt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 64 for instruction: %61 = fcmp olt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 128 for instruction: %62 = fcmp olt undef, undef ; CHECK-NEXT: Cost Model: Found an estimated cost of 64 for instruction: %63 = call @llvm.vp.fcmp.nxv128f32( undef, undef, metadata !"olt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 128 for instruction: %64 = call @llvm.vp.fcmp.nxv128f64( undef, undef, metadata !"olt", undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; fcmp olt <2 x float> undef, undef fcmp olt <2 x double> undef, undef call <2 x i1> @llvm.vp.fcmp.v2f32(<2 x float> undef, <2 x float> undef, metadata !"olt", <2 x i1> undef, i32 undef) call <2 x i1> @llvm.vp.fcmp.v2f64(<2 x double> undef, <2 x double> undef, metadata !"olt", <2 x i1> undef, i32 undef) fcmp olt <4 x float> undef, undef fcmp olt <4 x double> undef, undef call <4 x i1> @llvm.vp.fcmp.v4f32(<4 x float> undef, <4 x float> undef, metadata !"olt", <4 x i1> undef, i32 undef) call <4 x i1> @llvm.vp.fcmp.v4f64(<4 x double> undef, <4 x double> undef, metadata !"olt", <4 x i1> undef, i32 undef) fcmp olt <8 x float> undef, undef fcmp olt <8 x double> undef, undef call <8 x i1> @llvm.vp.fcmp.v8f32(<8 x float> undef, <8 x float> undef, metadata !"olt", <8 x i1> undef, i32 undef) call <8 x i1> @llvm.vp.fcmp.v8f64(<8 x double> undef, <8 x double> undef, metadata !"olt", <8 x i1> undef, i32 undef) fcmp olt <16 x float> undef, undef fcmp olt <16 x double> undef, undef call <16 x i1> @llvm.vp.fcmp.v16f32(<16 x float> undef, <16 x float> undef, metadata !"olt", <16 x i1> undef, i32 undef) call <16 x i1> @llvm.vp.fcmp.v16f64(<16 x double> undef, <16 x double> undef, metadata !"olt", <16 x i1> undef, i32 undef) fcmp olt <32 x float> undef, undef fcmp olt <32 x double> undef, undef call <32 x i1> @llvm.vp.fcmp.v32f32(<32 x float> undef, <32 x float> undef, metadata !"olt", <32 x i1> undef, i32 undef) call <32 x i1> @llvm.vp.fcmp.v32f64(<32 x double> undef, <32 x double> undef, metadata !"olt", <32 x i1> undef, i32 undef) fcmp olt <64 x float> undef, undef fcmp olt <64 x double> undef, undef call <64 x i1> @llvm.vp.fcmp.v64f32(<64 x float> undef, <64 x float> undef, metadata !"olt", <64 x i1> undef, i32 undef) call <64 x i1> @llvm.vp.fcmp.v64f64(<64 x double> undef, <64 x double> undef, metadata !"olt", <64 x i1> undef, i32 undef) fcmp olt <128 x float> undef, undef fcmp olt <128 x double> undef, undef call <128 x i1> @llvm.vp.fcmp.v128f32(<128 x float> undef, <128 x float> undef, metadata !"olt", <128 x i1> undef, i32 undef) call <128 x i1> @llvm.vp.fcmp.v128f64(<128 x double> undef, <128 x double> undef, metadata !"olt", <128 x i1> undef, i32 undef) fcmp olt <256 x float> undef, undef fcmp olt <256 x double> undef, undef call <256 x i1> @llvm.vp.fcmp.v256f32(<256 x float> undef, <256 x float> undef, metadata !"olt", <256 x i1> undef, i32 undef) call <256 x i1> @llvm.vp.fcmp.v256f64(<256 x double> undef, <256 x double> undef, metadata !"olt", <256 x i1> undef, i32 undef) fcmp olt undef, undef fcmp olt undef, undef call @llvm.vp.fcmp.nxv1f32( undef, undef, metadata !"olt", undef, i32 undef) call @llvm.vp.fcmp.nxv1f64( undef, undef, metadata !"olt", undef, i32 undef) fcmp olt undef, undef fcmp olt undef, undef call @llvm.vp.fcmp.nxv2f32( undef, undef, metadata !"olt", undef, i32 undef) call @llvm.vp.fcmp.nxv2f64( undef, undef, metadata !"olt", undef, i32 undef) fcmp olt undef, undef fcmp olt undef, undef call @llvm.vp.fcmp.nxv4f32( undef, undef, metadata !"olt", undef, i32 undef) call @llvm.vp.fcmp.nxv4f64( undef, undef, metadata !"olt", undef, i32 undef) fcmp olt undef, undef fcmp olt undef, undef call @llvm.vp.fcmp.nxv8f32( undef, undef, metadata !"olt", undef, i32 undef) call @llvm.vp.fcmp.nxv8f64( undef, undef, metadata !"olt", undef, i32 undef) fcmp olt undef, undef fcmp olt undef, undef call @llvm.vp.fcmp.nxv16f32( undef, undef, metadata !"olt", undef, i32 undef) call @llvm.vp.fcmp.nxv16f64( undef, undef, metadata !"olt", undef, i32 undef) fcmp olt undef, undef fcmp olt undef, undef call @llvm.vp.fcmp.nxv32f32( undef, undef, metadata !"olt", undef, i32 undef) call @llvm.vp.fcmp.nxv32f64( undef, undef, metadata !"olt", undef, i32 undef) fcmp olt undef, undef fcmp olt undef, undef call @llvm.vp.fcmp.nxv64f32( undef, undef, metadata !"olt", undef, i32 undef) call @llvm.vp.fcmp.nxv64f64( undef, undef, metadata !"olt", undef, i32 undef) fcmp olt undef, undef fcmp olt undef, undef call @llvm.vp.fcmp.nxv128f32( undef, undef, metadata !"olt", undef, i32 undef) call @llvm.vp.fcmp.nxv128f64( undef, undef, metadata !"olt", undef, i32 undef) ret void } ;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line: ; RV32: {{.*}} ; RV64: {{.*}}