11f7b94e0Sjacquesguan; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py 2aea45284SPhilip Reames; RUN: opt -passes="print<cost-model>" 2>&1 -disable-output -mtriple=riscv32 -mattr=+v,+f,+d,+zfh,+zvfh < %s | FileCheck %s --check-prefixes=RV32V 3aea45284SPhilip Reames; RUN: opt -passes="print<cost-model>" 2>&1 -disable-output -mtriple=riscv64 -mattr=+v,+f,+d,+zfh,+zvfh < %s | FileCheck %s --check-prefixes=RV64V 4aea45284SPhilip Reames; RUN: opt -passes="print<cost-model>" 2>&1 -disable-output -mtriple=riscv32 -mattr=+zve64x < %s | FileCheck %s --check-prefixes=RV32ZVE64X 5aea45284SPhilip Reames; RUN: opt -passes="print<cost-model>" 2>&1 -disable-output -mtriple=riscv64 -mattr=+zve64x < %s | FileCheck %s --check-prefixes=RV64ZVE64X 61f7b94e0Sjacquesguan; Check that we don't crash querying costs when vectors are not enabled. 71f7b94e0Sjacquesguan; RUN: opt -passes="print<cost-model>" 2>&1 -disable-output -mtriple=riscv64 81f7b94e0Sjacquesguan 9d11cc691Sjacquesguandefine void @insertelement_int(i32 %x) { 10d11cc691Sjacquesguan; RV32V-LABEL: 'insertelement_int' 11d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2i1_0 = insertelement <2 x i1> undef, i1 undef, i32 0 12d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4i1_0 = insertelement <4 x i1> undef, i1 undef, i32 0 13d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v8i1_0 = insertelement <8 x i1> undef, i1 undef, i32 0 14d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v16i1_0 = insertelement <16 x i1> undef, i1 undef, i32 0 15d7a43a00SShih-Po Hung; RV32V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v32i1_0 = insertelement <32 x i1> undef, i1 undef, i32 0 16d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2i1_0 = insertelement <vscale x 2 x i1> undef, i1 undef, i32 0 17d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4i1_0 = insertelement <vscale x 4 x i1> undef, i1 undef, i32 0 18d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv8i1_0 = insertelement <vscale x 8 x i1> undef, i1 undef, i32 0 19d7a43a00SShih-Po Hung; RV32V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv16i1_0 = insertelement <vscale x 16 x i1> undef, i1 undef, i32 0 20d7a43a00SShih-Po Hung; RV32V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %nxv32i1_0 = insertelement <vscale x 32 x i1> undef, i1 undef, i32 0 21d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2i8_0 = insertelement <2 x i8> undef, i8 undef, i32 0 22d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4i8_0 = insertelement <4 x i8> undef, i8 undef, i32 0 23d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8i8_0 = insertelement <8 x i8> undef, i8 undef, i32 0 24d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16i8_0 = insertelement <16 x i8> undef, i8 undef, i32 0 25d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i8_0 = insertelement <32 x i8> undef, i8 undef, i32 0 26d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v64i8_0 = insertelement <64 x i8> undef, i8 undef, i32 0 27d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v128i8_0 = insertelement <128 x i8> undef, i8 undef, i32 0 28d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2i8_0 = insertelement <vscale x 2 x i8> undef, i8 undef, i32 0 29d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4i8_0 = insertelement <vscale x 4 x i8> undef, i8 undef, i32 0 30d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8i8_0 = insertelement <vscale x 8 x i8> undef, i8 undef, i32 0 31d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16i8_0 = insertelement <vscale x 16 x i8> undef, i8 undef, i32 0 32d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv32i8_0 = insertelement <vscale x 32 x i8> undef, i8 undef, i32 0 33d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv64i8_0 = insertelement <vscale x 64 x i8> undef, i8 undef, i32 0 34d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv128i8_0 = insertelement <vscale x 128 x i8> undef, i8 undef, i32 0 35d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2i16_0 = insertelement <2 x i16> undef, i16 undef, i32 0 36d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4i16_0 = insertelement <4 x i16> undef, i16 undef, i32 0 37d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8i16_0 = insertelement <8 x i16> undef, i16 undef, i32 0 38d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16i16_0 = insertelement <16 x i16> undef, i16 undef, i32 0 39d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i16_0 = insertelement <32 x i16> undef, i16 undef, i32 0 40d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v64i16_0 = insertelement <64 x i16> undef, i16 undef, i32 0 41d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2i16_0 = insertelement <vscale x 2 x i16> undef, i16 undef, i32 0 42d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4i16_0 = insertelement <vscale x 4 x i16> undef, i16 undef, i32 0 43d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8i16_0 = insertelement <vscale x 8 x i16> undef, i16 undef, i32 0 44d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16i16_0 = insertelement <vscale x 16 x i16> undef, i16 undef, i32 0 45d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv32i16_0 = insertelement <vscale x 32 x i16> undef, i16 undef, i32 0 46d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv64i16_0 = insertelement <vscale x 64 x i16> undef, i16 undef, i32 0 47d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2i32_0 = insertelement <2 x i32> undef, i32 undef, i32 0 48d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4i32_0 = insertelement <4 x i32> undef, i32 undef, i32 0 49d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8i32_0 = insertelement <8 x i32> undef, i32 undef, i32 0 50d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16i32_0 = insertelement <16 x i32> undef, i32 undef, i32 0 51d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_0 = insertelement <32 x i32> undef, i32 undef, i32 0 52d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2i32_0 = insertelement <vscale x 2 x i32> undef, i32 undef, i32 0 53d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4i32_0 = insertelement <vscale x 4 x i32> undef, i32 undef, i32 0 54d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8i32_0 = insertelement <vscale x 8 x i32> undef, i32 undef, i32 0 55d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16i32_0 = insertelement <vscale x 16 x i32> undef, i32 undef, i32 0 56d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv32i32_0 = insertelement <vscale x 32 x i32> undef, i32 undef, i32 0 57d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2i64_0 = insertelement <2 x i64> undef, i64 undef, i32 0 58d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4i64_0 = insertelement <4 x i64> undef, i64 undef, i32 0 59d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8i64_0 = insertelement <8 x i64> undef, i64 undef, i32 0 60d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16i64_0 = insertelement <16 x i64> undef, i64 undef, i32 0 61d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2i64_0 = insertelement <vscale x 2 x i64> undef, i64 undef, i32 0 62d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4i64_0 = insertelement <vscale x 4 x i64> undef, i64 undef, i32 0 63d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8i64_0 = insertelement <vscale x 8 x i64> undef, i64 undef, i32 0 6459f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16i64_0 = insertelement <vscale x 16 x i64> undef, i64 undef, i32 0 65d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2i1_1 = insertelement <2 x i1> undef, i1 undef, i32 1 66d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4i1_1 = insertelement <4 x i1> undef, i1 undef, i32 1 67d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8i1_1 = insertelement <8 x i1> undef, i1 undef, i32 1 68d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v16i1_1 = insertelement <16 x i1> undef, i1 undef, i32 1 69d7a43a00SShih-Po Hung; RV32V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v32i1_1 = insertelement <32 x i1> undef, i1 undef, i32 1 70d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv2i1_1 = insertelement <vscale x 2 x i1> undef, i1 undef, i32 1 71d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4i1_1 = insertelement <vscale x 4 x i1> undef, i1 undef, i32 1 72d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8i1_1 = insertelement <vscale x 8 x i1> undef, i1 undef, i32 1 73d7a43a00SShih-Po Hung; RV32V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv16i1_1 = insertelement <vscale x 16 x i1> undef, i1 undef, i32 1 74d7a43a00SShih-Po Hung; RV32V-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %nxv32i1_1 = insertelement <vscale x 32 x i1> undef, i1 undef, i32 1 75d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2i8_1 = insertelement <2 x i8> undef, i8 undef, i32 1 76d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4i8_1 = insertelement <4 x i8> undef, i8 undef, i32 1 77d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8i8_1 = insertelement <8 x i8> undef, i8 undef, i32 1 78d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16i8_1 = insertelement <16 x i8> undef, i8 undef, i32 1 79d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i8_1 = insertelement <32 x i8> undef, i8 undef, i32 1 80d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v64i8_1 = insertelement <64 x i8> undef, i8 undef, i32 1 81d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v128i8_1 = insertelement <128 x i8> undef, i8 undef, i32 1 82d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2i8_1 = insertelement <vscale x 2 x i8> undef, i8 undef, i32 1 83d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4i8_1 = insertelement <vscale x 4 x i8> undef, i8 undef, i32 1 84d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8i8_1 = insertelement <vscale x 8 x i8> undef, i8 undef, i32 1 85d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16i8_1 = insertelement <vscale x 16 x i8> undef, i8 undef, i32 1 86d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv32i8_1 = insertelement <vscale x 32 x i8> undef, i8 undef, i32 1 87d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv64i8_1 = insertelement <vscale x 64 x i8> undef, i8 undef, i32 1 8859f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv128i8_1 = insertelement <vscale x 128 x i8> undef, i8 undef, i32 1 89d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2i16_1 = insertelement <2 x i16> undef, i16 undef, i32 1 90d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4i16_1 = insertelement <4 x i16> undef, i16 undef, i32 1 91d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8i16_1 = insertelement <8 x i16> undef, i16 undef, i32 1 92d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16i16_1 = insertelement <16 x i16> undef, i16 undef, i32 1 93d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i16_1 = insertelement <32 x i16> undef, i16 undef, i32 1 94d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v64i16_1 = insertelement <64 x i16> undef, i16 undef, i32 1 95d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2i16_1 = insertelement <vscale x 2 x i16> undef, i16 undef, i32 1 96d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4i16_1 = insertelement <vscale x 4 x i16> undef, i16 undef, i32 1 97d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8i16_1 = insertelement <vscale x 8 x i16> undef, i16 undef, i32 1 98d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16i16_1 = insertelement <vscale x 16 x i16> undef, i16 undef, i32 1 99d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv32i16_1 = insertelement <vscale x 32 x i16> undef, i16 undef, i32 1 10059f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv64i16_1 = insertelement <vscale x 64 x i16> undef, i16 undef, i32 1 101d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2i32_1 = insertelement <2 x i32> undef, i32 undef, i32 1 102d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4i32_1 = insertelement <4 x i32> undef, i32 undef, i32 1 103d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8i32_1 = insertelement <8 x i32> undef, i32 undef, i32 1 104d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16i32_1 = insertelement <16 x i32> undef, i32 undef, i32 1 105d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_1 = insertelement <32 x i32> undef, i32 undef, i32 1 106d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2i32_1 = insertelement <vscale x 2 x i32> undef, i32 undef, i32 1 107d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4i32_1 = insertelement <vscale x 4 x i32> undef, i32 undef, i32 1 108d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8i32_1 = insertelement <vscale x 8 x i32> undef, i32 undef, i32 1 109d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16i32_1 = insertelement <vscale x 16 x i32> undef, i32 undef, i32 1 11059f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv32i32_1 = insertelement <vscale x 32 x i32> undef, i32 undef, i32 1 111d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v2i64_1 = insertelement <2 x i64> undef, i64 undef, i32 1 112d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v4i64_1 = insertelement <4 x i64> undef, i64 undef, i32 1 113d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v8i64_1 = insertelement <8 x i64> undef, i64 undef, i32 1 114d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v16i64_1 = insertelement <16 x i64> undef, i64 undef, i32 1 115d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2i64_1 = insertelement <vscale x 2 x i64> undef, i64 undef, i32 1 116d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4i64_1 = insertelement <vscale x 4 x i64> undef, i64 undef, i32 1 117d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv8i64_1 = insertelement <vscale x 8 x i64> undef, i64 undef, i32 1 11859f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv16i64_1 = insertelement <vscale x 16 x i64> undef, i64 undef, i32 1 119d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2i1_x = insertelement <2 x i1> undef, i1 undef, i32 %x 120d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4i1_x = insertelement <4 x i1> undef, i1 undef, i32 %x 121d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8i1_x = insertelement <8 x i1> undef, i1 undef, i32 %x 122d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v16i1_x = insertelement <16 x i1> undef, i1 undef, i32 %x 123d7a43a00SShih-Po Hung; RV32V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v32i1_x = insertelement <32 x i1> undef, i1 undef, i32 %x 124d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2i1_x = insertelement <vscale x 2 x i1> undef, i1 undef, i32 %x 125d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv4i1_x = insertelement <vscale x 4 x i1> undef, i1 undef, i32 %x 126d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv8i1_x = insertelement <vscale x 8 x i1> undef, i1 undef, i32 %x 127d7a43a00SShih-Po Hung; RV32V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv16i1_x = insertelement <vscale x 16 x i1> undef, i1 undef, i32 %x 128d7a43a00SShih-Po Hung; RV32V-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv32i1_x = insertelement <vscale x 32 x i1> undef, i1 undef, i32 %x 129d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2i8_x = insertelement <2 x i8> undef, i8 undef, i32 %x 130d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4i8_x = insertelement <4 x i8> undef, i8 undef, i32 %x 131d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8i8_x = insertelement <8 x i8> undef, i8 undef, i32 %x 132d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16i8_x = insertelement <16 x i8> undef, i8 undef, i32 %x 133d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v32i8_x = insertelement <32 x i8> undef, i8 undef, i32 %x 134d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v64i8_x = insertelement <64 x i8> undef, i8 undef, i32 %x 135d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v128i8_x = insertelement <128 x i8> undef, i8 undef, i32 %x 136d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2i8_x = insertelement <vscale x 2 x i8> undef, i8 undef, i32 %x 137d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4i8_x = insertelement <vscale x 4 x i8> undef, i8 undef, i32 %x 138d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8i8_x = insertelement <vscale x 8 x i8> undef, i8 undef, i32 %x 139d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16i8_x = insertelement <vscale x 16 x i8> undef, i8 undef, i32 %x 140d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv32i8_x = insertelement <vscale x 32 x i8> undef, i8 undef, i32 %x 141d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv64i8_x = insertelement <vscale x 64 x i8> undef, i8 undef, i32 %x 142*a6742094SElvis Wang; RV32V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv128i8_x = insertelement <vscale x 128 x i8> undef, i8 undef, i32 %x 143d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2i16_x = insertelement <2 x i16> undef, i16 undef, i32 %x 144d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4i16_x = insertelement <4 x i16> undef, i16 undef, i32 %x 145d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8i16_x = insertelement <8 x i16> undef, i16 undef, i32 %x 146d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16i16_x = insertelement <16 x i16> undef, i16 undef, i32 %x 147d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v32i16_x = insertelement <32 x i16> undef, i16 undef, i32 %x 148d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v64i16_x = insertelement <64 x i16> undef, i16 undef, i32 %x 149d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2i16_x = insertelement <vscale x 2 x i16> undef, i16 undef, i32 %x 150d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4i16_x = insertelement <vscale x 4 x i16> undef, i16 undef, i32 %x 151d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8i16_x = insertelement <vscale x 8 x i16> undef, i16 undef, i32 %x 152d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16i16_x = insertelement <vscale x 16 x i16> undef, i16 undef, i32 %x 153d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv32i16_x = insertelement <vscale x 32 x i16> undef, i16 undef, i32 %x 154*a6742094SElvis Wang; RV32V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv64i16_x = insertelement <vscale x 64 x i16> undef, i16 undef, i32 %x 155d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2i32_x = insertelement <2 x i32> undef, i32 undef, i32 %x 156d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4i32_x = insertelement <4 x i32> undef, i32 undef, i32 %x 157d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8i32_x = insertelement <8 x i32> undef, i32 undef, i32 %x 158d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16i32_x = insertelement <16 x i32> undef, i32 undef, i32 %x 159d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v32i32_x = insertelement <32 x i32> undef, i32 undef, i32 %x 160d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2i32_x = insertelement <vscale x 2 x i32> undef, i32 undef, i32 %x 161d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4i32_x = insertelement <vscale x 4 x i32> undef, i32 undef, i32 %x 162d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8i32_x = insertelement <vscale x 8 x i32> undef, i32 undef, i32 %x 163d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16i32_x = insertelement <vscale x 16 x i32> undef, i32 undef, i32 %x 164*a6742094SElvis Wang; RV32V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv32i32_x = insertelement <vscale x 32 x i32> undef, i32 undef, i32 %x 165d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2i64_x = insertelement <2 x i64> undef, i64 undef, i32 %x 166d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4i64_x = insertelement <4 x i64> undef, i64 undef, i32 %x 167d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v8i64_x = insertelement <8 x i64> undef, i64 undef, i32 %x 168d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v16i64_x = insertelement <16 x i64> undef, i64 undef, i32 %x 169d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2i64_x = insertelement <vscale x 2 x i64> undef, i64 undef, i32 %x 170d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4i64_x = insertelement <vscale x 4 x i64> undef, i64 undef, i32 %x 171d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv8i64_x = insertelement <vscale x 8 x i64> undef, i64 undef, i32 %x 172*a6742094SElvis Wang; RV32V-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %nxv16i64_x = insertelement <vscale x 16 x i64> undef, i64 undef, i32 %x 1730a5d52a7SSergey Kachkov; RV32V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 1741f7b94e0Sjacquesguan; 175d11cc691Sjacquesguan; RV64V-LABEL: 'insertelement_int' 176d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2i1_0 = insertelement <2 x i1> undef, i1 undef, i32 0 177d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4i1_0 = insertelement <4 x i1> undef, i1 undef, i32 0 178d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v8i1_0 = insertelement <8 x i1> undef, i1 undef, i32 0 179d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v16i1_0 = insertelement <16 x i1> undef, i1 undef, i32 0 180d7a43a00SShih-Po Hung; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v32i1_0 = insertelement <32 x i1> undef, i1 undef, i32 0 181d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2i1_0 = insertelement <vscale x 2 x i1> undef, i1 undef, i32 0 182d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4i1_0 = insertelement <vscale x 4 x i1> undef, i1 undef, i32 0 183d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv8i1_0 = insertelement <vscale x 8 x i1> undef, i1 undef, i32 0 184d7a43a00SShih-Po Hung; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv16i1_0 = insertelement <vscale x 16 x i1> undef, i1 undef, i32 0 185d7a43a00SShih-Po Hung; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %nxv32i1_0 = insertelement <vscale x 32 x i1> undef, i1 undef, i32 0 186d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2i8_0 = insertelement <2 x i8> undef, i8 undef, i32 0 187d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4i8_0 = insertelement <4 x i8> undef, i8 undef, i32 0 188d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8i8_0 = insertelement <8 x i8> undef, i8 undef, i32 0 189d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16i8_0 = insertelement <16 x i8> undef, i8 undef, i32 0 190d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i8_0 = insertelement <32 x i8> undef, i8 undef, i32 0 191d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v64i8_0 = insertelement <64 x i8> undef, i8 undef, i32 0 192d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v128i8_0 = insertelement <128 x i8> undef, i8 undef, i32 0 193d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2i8_0 = insertelement <vscale x 2 x i8> undef, i8 undef, i32 0 194d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4i8_0 = insertelement <vscale x 4 x i8> undef, i8 undef, i32 0 195d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8i8_0 = insertelement <vscale x 8 x i8> undef, i8 undef, i32 0 196d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16i8_0 = insertelement <vscale x 16 x i8> undef, i8 undef, i32 0 197d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv32i8_0 = insertelement <vscale x 32 x i8> undef, i8 undef, i32 0 198d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv64i8_0 = insertelement <vscale x 64 x i8> undef, i8 undef, i32 0 199d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv128i8_0 = insertelement <vscale x 128 x i8> undef, i8 undef, i32 0 200d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2i16_0 = insertelement <2 x i16> undef, i16 undef, i32 0 201d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4i16_0 = insertelement <4 x i16> undef, i16 undef, i32 0 202d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8i16_0 = insertelement <8 x i16> undef, i16 undef, i32 0 203d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16i16_0 = insertelement <16 x i16> undef, i16 undef, i32 0 204d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i16_0 = insertelement <32 x i16> undef, i16 undef, i32 0 205d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v64i16_0 = insertelement <64 x i16> undef, i16 undef, i32 0 206d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2i16_0 = insertelement <vscale x 2 x i16> undef, i16 undef, i32 0 207d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4i16_0 = insertelement <vscale x 4 x i16> undef, i16 undef, i32 0 208d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8i16_0 = insertelement <vscale x 8 x i16> undef, i16 undef, i32 0 209d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16i16_0 = insertelement <vscale x 16 x i16> undef, i16 undef, i32 0 210d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv32i16_0 = insertelement <vscale x 32 x i16> undef, i16 undef, i32 0 211d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv64i16_0 = insertelement <vscale x 64 x i16> undef, i16 undef, i32 0 212d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2i32_0 = insertelement <2 x i32> undef, i32 undef, i32 0 213d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4i32_0 = insertelement <4 x i32> undef, i32 undef, i32 0 214d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8i32_0 = insertelement <8 x i32> undef, i32 undef, i32 0 215d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16i32_0 = insertelement <16 x i32> undef, i32 undef, i32 0 216d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_0 = insertelement <32 x i32> undef, i32 undef, i32 0 217d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2i32_0 = insertelement <vscale x 2 x i32> undef, i32 undef, i32 0 218d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4i32_0 = insertelement <vscale x 4 x i32> undef, i32 undef, i32 0 219d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8i32_0 = insertelement <vscale x 8 x i32> undef, i32 undef, i32 0 220d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16i32_0 = insertelement <vscale x 16 x i32> undef, i32 undef, i32 0 221d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv32i32_0 = insertelement <vscale x 32 x i32> undef, i32 undef, i32 0 222d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2i64_0 = insertelement <2 x i64> undef, i64 undef, i32 0 223d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4i64_0 = insertelement <4 x i64> undef, i64 undef, i32 0 224d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8i64_0 = insertelement <8 x i64> undef, i64 undef, i32 0 225d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16i64_0 = insertelement <16 x i64> undef, i64 undef, i32 0 226d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2i64_0 = insertelement <vscale x 2 x i64> undef, i64 undef, i32 0 227d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4i64_0 = insertelement <vscale x 4 x i64> undef, i64 undef, i32 0 228d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8i64_0 = insertelement <vscale x 8 x i64> undef, i64 undef, i32 0 229d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16i64_0 = insertelement <vscale x 16 x i64> undef, i64 undef, i32 0 230d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2i1_1 = insertelement <2 x i1> undef, i1 undef, i32 1 231d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4i1_1 = insertelement <4 x i1> undef, i1 undef, i32 1 232d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8i1_1 = insertelement <8 x i1> undef, i1 undef, i32 1 233d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v16i1_1 = insertelement <16 x i1> undef, i1 undef, i32 1 234d7a43a00SShih-Po Hung; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v32i1_1 = insertelement <32 x i1> undef, i1 undef, i32 1 235d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv2i1_1 = insertelement <vscale x 2 x i1> undef, i1 undef, i32 1 236d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4i1_1 = insertelement <vscale x 4 x i1> undef, i1 undef, i32 1 237d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8i1_1 = insertelement <vscale x 8 x i1> undef, i1 undef, i32 1 238d7a43a00SShih-Po Hung; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv16i1_1 = insertelement <vscale x 16 x i1> undef, i1 undef, i32 1 239d7a43a00SShih-Po Hung; RV64V-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %nxv32i1_1 = insertelement <vscale x 32 x i1> undef, i1 undef, i32 1 240d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2i8_1 = insertelement <2 x i8> undef, i8 undef, i32 1 241d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4i8_1 = insertelement <4 x i8> undef, i8 undef, i32 1 242d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8i8_1 = insertelement <8 x i8> undef, i8 undef, i32 1 243d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16i8_1 = insertelement <16 x i8> undef, i8 undef, i32 1 244d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i8_1 = insertelement <32 x i8> undef, i8 undef, i32 1 245d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v64i8_1 = insertelement <64 x i8> undef, i8 undef, i32 1 246d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v128i8_1 = insertelement <128 x i8> undef, i8 undef, i32 1 247d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2i8_1 = insertelement <vscale x 2 x i8> undef, i8 undef, i32 1 248d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4i8_1 = insertelement <vscale x 4 x i8> undef, i8 undef, i32 1 249d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8i8_1 = insertelement <vscale x 8 x i8> undef, i8 undef, i32 1 250d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16i8_1 = insertelement <vscale x 16 x i8> undef, i8 undef, i32 1 251d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv32i8_1 = insertelement <vscale x 32 x i8> undef, i8 undef, i32 1 252d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv64i8_1 = insertelement <vscale x 64 x i8> undef, i8 undef, i32 1 25359f05b68SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv128i8_1 = insertelement <vscale x 128 x i8> undef, i8 undef, i32 1 254d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2i16_1 = insertelement <2 x i16> undef, i16 undef, i32 1 255d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4i16_1 = insertelement <4 x i16> undef, i16 undef, i32 1 256d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8i16_1 = insertelement <8 x i16> undef, i16 undef, i32 1 257d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16i16_1 = insertelement <16 x i16> undef, i16 undef, i32 1 258d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i16_1 = insertelement <32 x i16> undef, i16 undef, i32 1 259d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v64i16_1 = insertelement <64 x i16> undef, i16 undef, i32 1 260d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2i16_1 = insertelement <vscale x 2 x i16> undef, i16 undef, i32 1 261d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4i16_1 = insertelement <vscale x 4 x i16> undef, i16 undef, i32 1 262d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8i16_1 = insertelement <vscale x 8 x i16> undef, i16 undef, i32 1 263d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16i16_1 = insertelement <vscale x 16 x i16> undef, i16 undef, i32 1 264d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv32i16_1 = insertelement <vscale x 32 x i16> undef, i16 undef, i32 1 26559f05b68SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv64i16_1 = insertelement <vscale x 64 x i16> undef, i16 undef, i32 1 266d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2i32_1 = insertelement <2 x i32> undef, i32 undef, i32 1 267d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4i32_1 = insertelement <4 x i32> undef, i32 undef, i32 1 268d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8i32_1 = insertelement <8 x i32> undef, i32 undef, i32 1 269d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16i32_1 = insertelement <16 x i32> undef, i32 undef, i32 1 270d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_1 = insertelement <32 x i32> undef, i32 undef, i32 1 271d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2i32_1 = insertelement <vscale x 2 x i32> undef, i32 undef, i32 1 272d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4i32_1 = insertelement <vscale x 4 x i32> undef, i32 undef, i32 1 273d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8i32_1 = insertelement <vscale x 8 x i32> undef, i32 undef, i32 1 274d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16i32_1 = insertelement <vscale x 16 x i32> undef, i32 undef, i32 1 27559f05b68SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv32i32_1 = insertelement <vscale x 32 x i32> undef, i32 undef, i32 1 276d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2i64_1 = insertelement <2 x i64> undef, i64 undef, i32 1 277d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4i64_1 = insertelement <4 x i64> undef, i64 undef, i32 1 278d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8i64_1 = insertelement <8 x i64> undef, i64 undef, i32 1 279d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16i64_1 = insertelement <16 x i64> undef, i64 undef, i32 1 280d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2i64_1 = insertelement <vscale x 2 x i64> undef, i64 undef, i32 1 281d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4i64_1 = insertelement <vscale x 4 x i64> undef, i64 undef, i32 1 282d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8i64_1 = insertelement <vscale x 8 x i64> undef, i64 undef, i32 1 28359f05b68SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16i64_1 = insertelement <vscale x 16 x i64> undef, i64 undef, i32 1 284d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2i1_x = insertelement <2 x i1> undef, i1 undef, i32 %x 285d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4i1_x = insertelement <4 x i1> undef, i1 undef, i32 %x 286d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8i1_x = insertelement <8 x i1> undef, i1 undef, i32 %x 287d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v16i1_x = insertelement <16 x i1> undef, i1 undef, i32 %x 288d7a43a00SShih-Po Hung; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v32i1_x = insertelement <32 x i1> undef, i1 undef, i32 %x 289d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2i1_x = insertelement <vscale x 2 x i1> undef, i1 undef, i32 %x 290d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv4i1_x = insertelement <vscale x 4 x i1> undef, i1 undef, i32 %x 291d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv8i1_x = insertelement <vscale x 8 x i1> undef, i1 undef, i32 %x 292d7a43a00SShih-Po Hung; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv16i1_x = insertelement <vscale x 16 x i1> undef, i1 undef, i32 %x 293d7a43a00SShih-Po Hung; RV64V-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv32i1_x = insertelement <vscale x 32 x i1> undef, i1 undef, i32 %x 294d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2i8_x = insertelement <2 x i8> undef, i8 undef, i32 %x 295d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4i8_x = insertelement <4 x i8> undef, i8 undef, i32 %x 296d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8i8_x = insertelement <8 x i8> undef, i8 undef, i32 %x 297d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16i8_x = insertelement <16 x i8> undef, i8 undef, i32 %x 298d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v32i8_x = insertelement <32 x i8> undef, i8 undef, i32 %x 299d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v64i8_x = insertelement <64 x i8> undef, i8 undef, i32 %x 300d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v128i8_x = insertelement <128 x i8> undef, i8 undef, i32 %x 301d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2i8_x = insertelement <vscale x 2 x i8> undef, i8 undef, i32 %x 302d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4i8_x = insertelement <vscale x 4 x i8> undef, i8 undef, i32 %x 303d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8i8_x = insertelement <vscale x 8 x i8> undef, i8 undef, i32 %x 304d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16i8_x = insertelement <vscale x 16 x i8> undef, i8 undef, i32 %x 305d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv32i8_x = insertelement <vscale x 32 x i8> undef, i8 undef, i32 %x 306d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv64i8_x = insertelement <vscale x 64 x i8> undef, i8 undef, i32 %x 307*a6742094SElvis Wang; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv128i8_x = insertelement <vscale x 128 x i8> undef, i8 undef, i32 %x 308d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2i16_x = insertelement <2 x i16> undef, i16 undef, i32 %x 309d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4i16_x = insertelement <4 x i16> undef, i16 undef, i32 %x 310d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8i16_x = insertelement <8 x i16> undef, i16 undef, i32 %x 311d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16i16_x = insertelement <16 x i16> undef, i16 undef, i32 %x 312d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v32i16_x = insertelement <32 x i16> undef, i16 undef, i32 %x 313d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v64i16_x = insertelement <64 x i16> undef, i16 undef, i32 %x 314d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2i16_x = insertelement <vscale x 2 x i16> undef, i16 undef, i32 %x 315d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4i16_x = insertelement <vscale x 4 x i16> undef, i16 undef, i32 %x 316d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8i16_x = insertelement <vscale x 8 x i16> undef, i16 undef, i32 %x 317d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16i16_x = insertelement <vscale x 16 x i16> undef, i16 undef, i32 %x 318d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv32i16_x = insertelement <vscale x 32 x i16> undef, i16 undef, i32 %x 319*a6742094SElvis Wang; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv64i16_x = insertelement <vscale x 64 x i16> undef, i16 undef, i32 %x 320d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2i32_x = insertelement <2 x i32> undef, i32 undef, i32 %x 321d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4i32_x = insertelement <4 x i32> undef, i32 undef, i32 %x 322d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8i32_x = insertelement <8 x i32> undef, i32 undef, i32 %x 323d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16i32_x = insertelement <16 x i32> undef, i32 undef, i32 %x 324d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v32i32_x = insertelement <32 x i32> undef, i32 undef, i32 %x 325d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2i32_x = insertelement <vscale x 2 x i32> undef, i32 undef, i32 %x 326d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4i32_x = insertelement <vscale x 4 x i32> undef, i32 undef, i32 %x 327d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8i32_x = insertelement <vscale x 8 x i32> undef, i32 undef, i32 %x 328d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16i32_x = insertelement <vscale x 16 x i32> undef, i32 undef, i32 %x 329*a6742094SElvis Wang; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv32i32_x = insertelement <vscale x 32 x i32> undef, i32 undef, i32 %x 330d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2i64_x = insertelement <2 x i64> undef, i64 undef, i32 %x 331d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4i64_x = insertelement <4 x i64> undef, i64 undef, i32 %x 332d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8i64_x = insertelement <8 x i64> undef, i64 undef, i32 %x 333d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16i64_x = insertelement <16 x i64> undef, i64 undef, i32 %x 334d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2i64_x = insertelement <vscale x 2 x i64> undef, i64 undef, i32 %x 335d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4i64_x = insertelement <vscale x 4 x i64> undef, i64 undef, i32 %x 336d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8i64_x = insertelement <vscale x 8 x i64> undef, i64 undef, i32 %x 337*a6742094SElvis Wang; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv16i64_x = insertelement <vscale x 16 x i64> undef, i64 undef, i32 %x 3380a5d52a7SSergey Kachkov; RV64V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 339d11cc691Sjacquesguan; 340d11cc691Sjacquesguan; RV32ZVE64X-LABEL: 'insertelement_int' 341d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2i1_0 = insertelement <2 x i1> undef, i1 undef, i32 0 342d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4i1_0 = insertelement <4 x i1> undef, i1 undef, i32 0 343d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v8i1_0 = insertelement <8 x i1> undef, i1 undef, i32 0 344d7a43a00SShih-Po Hung; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v16i1_0 = insertelement <16 x i1> undef, i1 undef, i32 0 345d7a43a00SShih-Po Hung; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v32i1_0 = insertelement <32 x i1> undef, i1 undef, i32 0 346d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2i1_0 = insertelement <vscale x 2 x i1> undef, i1 undef, i32 0 347d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4i1_0 = insertelement <vscale x 4 x i1> undef, i1 undef, i32 0 348d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv8i1_0 = insertelement <vscale x 8 x i1> undef, i1 undef, i32 0 349d7a43a00SShih-Po Hung; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv16i1_0 = insertelement <vscale x 16 x i1> undef, i1 undef, i32 0 350d7a43a00SShih-Po Hung; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %nxv32i1_0 = insertelement <vscale x 32 x i1> undef, i1 undef, i32 0 351d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2i8_0 = insertelement <2 x i8> undef, i8 undef, i32 0 352d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4i8_0 = insertelement <4 x i8> undef, i8 undef, i32 0 353d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8i8_0 = insertelement <8 x i8> undef, i8 undef, i32 0 354d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16i8_0 = insertelement <16 x i8> undef, i8 undef, i32 0 355d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i8_0 = insertelement <32 x i8> undef, i8 undef, i32 0 356d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v64i8_0 = insertelement <64 x i8> undef, i8 undef, i32 0 357d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v128i8_0 = insertelement <128 x i8> undef, i8 undef, i32 0 358d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2i8_0 = insertelement <vscale x 2 x i8> undef, i8 undef, i32 0 359d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4i8_0 = insertelement <vscale x 4 x i8> undef, i8 undef, i32 0 360d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8i8_0 = insertelement <vscale x 8 x i8> undef, i8 undef, i32 0 361d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16i8_0 = insertelement <vscale x 16 x i8> undef, i8 undef, i32 0 362d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv32i8_0 = insertelement <vscale x 32 x i8> undef, i8 undef, i32 0 363d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv64i8_0 = insertelement <vscale x 64 x i8> undef, i8 undef, i32 0 364d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv128i8_0 = insertelement <vscale x 128 x i8> undef, i8 undef, i32 0 365d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2i16_0 = insertelement <2 x i16> undef, i16 undef, i32 0 366d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4i16_0 = insertelement <4 x i16> undef, i16 undef, i32 0 367d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8i16_0 = insertelement <8 x i16> undef, i16 undef, i32 0 368d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16i16_0 = insertelement <16 x i16> undef, i16 undef, i32 0 369d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i16_0 = insertelement <32 x i16> undef, i16 undef, i32 0 370d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v64i16_0 = insertelement <64 x i16> undef, i16 undef, i32 0 371d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2i16_0 = insertelement <vscale x 2 x i16> undef, i16 undef, i32 0 372d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4i16_0 = insertelement <vscale x 4 x i16> undef, i16 undef, i32 0 373d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8i16_0 = insertelement <vscale x 8 x i16> undef, i16 undef, i32 0 374d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16i16_0 = insertelement <vscale x 16 x i16> undef, i16 undef, i32 0 375d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv32i16_0 = insertelement <vscale x 32 x i16> undef, i16 undef, i32 0 376d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv64i16_0 = insertelement <vscale x 64 x i16> undef, i16 undef, i32 0 377d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2i32_0 = insertelement <2 x i32> undef, i32 undef, i32 0 378d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4i32_0 = insertelement <4 x i32> undef, i32 undef, i32 0 379d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8i32_0 = insertelement <8 x i32> undef, i32 undef, i32 0 380d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16i32_0 = insertelement <16 x i32> undef, i32 undef, i32 0 381d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_0 = insertelement <32 x i32> undef, i32 undef, i32 0 382d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2i32_0 = insertelement <vscale x 2 x i32> undef, i32 undef, i32 0 383d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4i32_0 = insertelement <vscale x 4 x i32> undef, i32 undef, i32 0 384d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8i32_0 = insertelement <vscale x 8 x i32> undef, i32 undef, i32 0 385d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16i32_0 = insertelement <vscale x 16 x i32> undef, i32 undef, i32 0 386d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv32i32_0 = insertelement <vscale x 32 x i32> undef, i32 undef, i32 0 387d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2i64_0 = insertelement <2 x i64> undef, i64 undef, i32 0 388d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4i64_0 = insertelement <4 x i64> undef, i64 undef, i32 0 389d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8i64_0 = insertelement <8 x i64> undef, i64 undef, i32 0 39059f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16i64_0 = insertelement <16 x i64> undef, i64 undef, i32 0 391d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2i64_0 = insertelement <vscale x 2 x i64> undef, i64 undef, i32 0 392d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4i64_0 = insertelement <vscale x 4 x i64> undef, i64 undef, i32 0 393d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8i64_0 = insertelement <vscale x 8 x i64> undef, i64 undef, i32 0 39459f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16i64_0 = insertelement <vscale x 16 x i64> undef, i64 undef, i32 0 395d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2i1_1 = insertelement <2 x i1> undef, i1 undef, i32 1 396d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4i1_1 = insertelement <4 x i1> undef, i1 undef, i32 1 397d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8i1_1 = insertelement <8 x i1> undef, i1 undef, i32 1 398d7a43a00SShih-Po Hung; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v16i1_1 = insertelement <16 x i1> undef, i1 undef, i32 1 399d7a43a00SShih-Po Hung; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v32i1_1 = insertelement <32 x i1> undef, i1 undef, i32 1 400d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv2i1_1 = insertelement <vscale x 2 x i1> undef, i1 undef, i32 1 401d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4i1_1 = insertelement <vscale x 4 x i1> undef, i1 undef, i32 1 402d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8i1_1 = insertelement <vscale x 8 x i1> undef, i1 undef, i32 1 403d7a43a00SShih-Po Hung; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv16i1_1 = insertelement <vscale x 16 x i1> undef, i1 undef, i32 1 404d7a43a00SShih-Po Hung; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %nxv32i1_1 = insertelement <vscale x 32 x i1> undef, i1 undef, i32 1 405d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2i8_1 = insertelement <2 x i8> undef, i8 undef, i32 1 406d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4i8_1 = insertelement <4 x i8> undef, i8 undef, i32 1 407d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8i8_1 = insertelement <8 x i8> undef, i8 undef, i32 1 408d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16i8_1 = insertelement <16 x i8> undef, i8 undef, i32 1 409d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i8_1 = insertelement <32 x i8> undef, i8 undef, i32 1 410d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v64i8_1 = insertelement <64 x i8> undef, i8 undef, i32 1 41159f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v128i8_1 = insertelement <128 x i8> undef, i8 undef, i32 1 412d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2i8_1 = insertelement <vscale x 2 x i8> undef, i8 undef, i32 1 413d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4i8_1 = insertelement <vscale x 4 x i8> undef, i8 undef, i32 1 414d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8i8_1 = insertelement <vscale x 8 x i8> undef, i8 undef, i32 1 415d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16i8_1 = insertelement <vscale x 16 x i8> undef, i8 undef, i32 1 416d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv32i8_1 = insertelement <vscale x 32 x i8> undef, i8 undef, i32 1 417d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv64i8_1 = insertelement <vscale x 64 x i8> undef, i8 undef, i32 1 41859f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv128i8_1 = insertelement <vscale x 128 x i8> undef, i8 undef, i32 1 419d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2i16_1 = insertelement <2 x i16> undef, i16 undef, i32 1 420d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4i16_1 = insertelement <4 x i16> undef, i16 undef, i32 1 421d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8i16_1 = insertelement <8 x i16> undef, i16 undef, i32 1 422d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16i16_1 = insertelement <16 x i16> undef, i16 undef, i32 1 423d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i16_1 = insertelement <32 x i16> undef, i16 undef, i32 1 42459f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v64i16_1 = insertelement <64 x i16> undef, i16 undef, i32 1 425d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2i16_1 = insertelement <vscale x 2 x i16> undef, i16 undef, i32 1 426d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4i16_1 = insertelement <vscale x 4 x i16> undef, i16 undef, i32 1 427d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8i16_1 = insertelement <vscale x 8 x i16> undef, i16 undef, i32 1 428d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16i16_1 = insertelement <vscale x 16 x i16> undef, i16 undef, i32 1 429d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv32i16_1 = insertelement <vscale x 32 x i16> undef, i16 undef, i32 1 43059f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv64i16_1 = insertelement <vscale x 64 x i16> undef, i16 undef, i32 1 431d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2i32_1 = insertelement <2 x i32> undef, i32 undef, i32 1 432d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4i32_1 = insertelement <4 x i32> undef, i32 undef, i32 1 433d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8i32_1 = insertelement <8 x i32> undef, i32 undef, i32 1 434d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16i32_1 = insertelement <16 x i32> undef, i32 undef, i32 1 43559f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_1 = insertelement <32 x i32> undef, i32 undef, i32 1 436d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2i32_1 = insertelement <vscale x 2 x i32> undef, i32 undef, i32 1 437d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4i32_1 = insertelement <vscale x 4 x i32> undef, i32 undef, i32 1 438d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8i32_1 = insertelement <vscale x 8 x i32> undef, i32 undef, i32 1 439d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16i32_1 = insertelement <vscale x 16 x i32> undef, i32 undef, i32 1 44059f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv32i32_1 = insertelement <vscale x 32 x i32> undef, i32 undef, i32 1 441d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v2i64_1 = insertelement <2 x i64> undef, i64 undef, i32 1 442d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v4i64_1 = insertelement <4 x i64> undef, i64 undef, i32 1 443d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v8i64_1 = insertelement <8 x i64> undef, i64 undef, i32 1 44459f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v16i64_1 = insertelement <16 x i64> undef, i64 undef, i32 1 445d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2i64_1 = insertelement <vscale x 2 x i64> undef, i64 undef, i32 1 446d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4i64_1 = insertelement <vscale x 4 x i64> undef, i64 undef, i32 1 447d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv8i64_1 = insertelement <vscale x 8 x i64> undef, i64 undef, i32 1 44859f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv16i64_1 = insertelement <vscale x 16 x i64> undef, i64 undef, i32 1 449d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2i1_x = insertelement <2 x i1> undef, i1 undef, i32 %x 450d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4i1_x = insertelement <4 x i1> undef, i1 undef, i32 %x 451d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8i1_x = insertelement <8 x i1> undef, i1 undef, i32 %x 452d7a43a00SShih-Po Hung; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v16i1_x = insertelement <16 x i1> undef, i1 undef, i32 %x 453d7a43a00SShih-Po Hung; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %v32i1_x = insertelement <32 x i1> undef, i1 undef, i32 %x 454d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2i1_x = insertelement <vscale x 2 x i1> undef, i1 undef, i32 %x 455d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv4i1_x = insertelement <vscale x 4 x i1> undef, i1 undef, i32 %x 456d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv8i1_x = insertelement <vscale x 8 x i1> undef, i1 undef, i32 %x 457d7a43a00SShih-Po Hung; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv16i1_x = insertelement <vscale x 16 x i1> undef, i1 undef, i32 %x 458d7a43a00SShih-Po Hung; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv32i1_x = insertelement <vscale x 32 x i1> undef, i1 undef, i32 %x 459d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2i8_x = insertelement <2 x i8> undef, i8 undef, i32 %x 460d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4i8_x = insertelement <4 x i8> undef, i8 undef, i32 %x 461d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8i8_x = insertelement <8 x i8> undef, i8 undef, i32 %x 462d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16i8_x = insertelement <16 x i8> undef, i8 undef, i32 %x 463d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v32i8_x = insertelement <32 x i8> undef, i8 undef, i32 %x 464d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v64i8_x = insertelement <64 x i8> undef, i8 undef, i32 %x 465*a6742094SElvis Wang; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %v128i8_x = insertelement <128 x i8> undef, i8 undef, i32 %x 466d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2i8_x = insertelement <vscale x 2 x i8> undef, i8 undef, i32 %x 467d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4i8_x = insertelement <vscale x 4 x i8> undef, i8 undef, i32 %x 468d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8i8_x = insertelement <vscale x 8 x i8> undef, i8 undef, i32 %x 469d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16i8_x = insertelement <vscale x 16 x i8> undef, i8 undef, i32 %x 470d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv32i8_x = insertelement <vscale x 32 x i8> undef, i8 undef, i32 %x 471d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv64i8_x = insertelement <vscale x 64 x i8> undef, i8 undef, i32 %x 472*a6742094SElvis Wang; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv128i8_x = insertelement <vscale x 128 x i8> undef, i8 undef, i32 %x 473d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2i16_x = insertelement <2 x i16> undef, i16 undef, i32 %x 474d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4i16_x = insertelement <4 x i16> undef, i16 undef, i32 %x 475d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8i16_x = insertelement <8 x i16> undef, i16 undef, i32 %x 476d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16i16_x = insertelement <16 x i16> undef, i16 undef, i32 %x 477d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v32i16_x = insertelement <32 x i16> undef, i16 undef, i32 %x 478*a6742094SElvis Wang; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %v64i16_x = insertelement <64 x i16> undef, i16 undef, i32 %x 479d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2i16_x = insertelement <vscale x 2 x i16> undef, i16 undef, i32 %x 480d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4i16_x = insertelement <vscale x 4 x i16> undef, i16 undef, i32 %x 481d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8i16_x = insertelement <vscale x 8 x i16> undef, i16 undef, i32 %x 482d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16i16_x = insertelement <vscale x 16 x i16> undef, i16 undef, i32 %x 483d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv32i16_x = insertelement <vscale x 32 x i16> undef, i16 undef, i32 %x 484*a6742094SElvis Wang; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv64i16_x = insertelement <vscale x 64 x i16> undef, i16 undef, i32 %x 485d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2i32_x = insertelement <2 x i32> undef, i32 undef, i32 %x 486d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4i32_x = insertelement <4 x i32> undef, i32 undef, i32 %x 487d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8i32_x = insertelement <8 x i32> undef, i32 undef, i32 %x 488d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16i32_x = insertelement <16 x i32> undef, i32 undef, i32 %x 489*a6742094SElvis Wang; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %v32i32_x = insertelement <32 x i32> undef, i32 undef, i32 %x 490d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2i32_x = insertelement <vscale x 2 x i32> undef, i32 undef, i32 %x 491d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4i32_x = insertelement <vscale x 4 x i32> undef, i32 undef, i32 %x 492d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8i32_x = insertelement <vscale x 8 x i32> undef, i32 undef, i32 %x 493d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16i32_x = insertelement <vscale x 16 x i32> undef, i32 undef, i32 %x 494*a6742094SElvis Wang; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv32i32_x = insertelement <vscale x 32 x i32> undef, i32 undef, i32 %x 495d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2i64_x = insertelement <2 x i64> undef, i64 undef, i32 %x 496d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4i64_x = insertelement <4 x i64> undef, i64 undef, i32 %x 497d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v8i64_x = insertelement <8 x i64> undef, i64 undef, i32 %x 498*a6742094SElvis Wang; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %v16i64_x = insertelement <16 x i64> undef, i64 undef, i32 %x 499d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2i64_x = insertelement <vscale x 2 x i64> undef, i64 undef, i32 %x 500d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4i64_x = insertelement <vscale x 4 x i64> undef, i64 undef, i32 %x 501d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv8i64_x = insertelement <vscale x 8 x i64> undef, i64 undef, i32 %x 502*a6742094SElvis Wang; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %nxv16i64_x = insertelement <vscale x 16 x i64> undef, i64 undef, i32 %x 5030a5d52a7SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 504d11cc691Sjacquesguan; 505d11cc691Sjacquesguan; RV64ZVE64X-LABEL: 'insertelement_int' 506d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2i1_0 = insertelement <2 x i1> undef, i1 undef, i32 0 507d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4i1_0 = insertelement <4 x i1> undef, i1 undef, i32 0 508d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v8i1_0 = insertelement <8 x i1> undef, i1 undef, i32 0 509d7a43a00SShih-Po Hung; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v16i1_0 = insertelement <16 x i1> undef, i1 undef, i32 0 510d7a43a00SShih-Po Hung; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v32i1_0 = insertelement <32 x i1> undef, i1 undef, i32 0 511d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2i1_0 = insertelement <vscale x 2 x i1> undef, i1 undef, i32 0 512d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4i1_0 = insertelement <vscale x 4 x i1> undef, i1 undef, i32 0 513d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv8i1_0 = insertelement <vscale x 8 x i1> undef, i1 undef, i32 0 514d7a43a00SShih-Po Hung; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv16i1_0 = insertelement <vscale x 16 x i1> undef, i1 undef, i32 0 515d7a43a00SShih-Po Hung; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %nxv32i1_0 = insertelement <vscale x 32 x i1> undef, i1 undef, i32 0 516d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2i8_0 = insertelement <2 x i8> undef, i8 undef, i32 0 517d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4i8_0 = insertelement <4 x i8> undef, i8 undef, i32 0 518d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8i8_0 = insertelement <8 x i8> undef, i8 undef, i32 0 519d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16i8_0 = insertelement <16 x i8> undef, i8 undef, i32 0 520d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i8_0 = insertelement <32 x i8> undef, i8 undef, i32 0 521d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v64i8_0 = insertelement <64 x i8> undef, i8 undef, i32 0 522d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v128i8_0 = insertelement <128 x i8> undef, i8 undef, i32 0 523d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2i8_0 = insertelement <vscale x 2 x i8> undef, i8 undef, i32 0 524d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4i8_0 = insertelement <vscale x 4 x i8> undef, i8 undef, i32 0 525d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8i8_0 = insertelement <vscale x 8 x i8> undef, i8 undef, i32 0 526d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16i8_0 = insertelement <vscale x 16 x i8> undef, i8 undef, i32 0 527d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv32i8_0 = insertelement <vscale x 32 x i8> undef, i8 undef, i32 0 528d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv64i8_0 = insertelement <vscale x 64 x i8> undef, i8 undef, i32 0 529d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv128i8_0 = insertelement <vscale x 128 x i8> undef, i8 undef, i32 0 530d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2i16_0 = insertelement <2 x i16> undef, i16 undef, i32 0 531d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4i16_0 = insertelement <4 x i16> undef, i16 undef, i32 0 532d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8i16_0 = insertelement <8 x i16> undef, i16 undef, i32 0 533d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16i16_0 = insertelement <16 x i16> undef, i16 undef, i32 0 534d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i16_0 = insertelement <32 x i16> undef, i16 undef, i32 0 535d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v64i16_0 = insertelement <64 x i16> undef, i16 undef, i32 0 536d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2i16_0 = insertelement <vscale x 2 x i16> undef, i16 undef, i32 0 537d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4i16_0 = insertelement <vscale x 4 x i16> undef, i16 undef, i32 0 538d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8i16_0 = insertelement <vscale x 8 x i16> undef, i16 undef, i32 0 539d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16i16_0 = insertelement <vscale x 16 x i16> undef, i16 undef, i32 0 540d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv32i16_0 = insertelement <vscale x 32 x i16> undef, i16 undef, i32 0 541d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv64i16_0 = insertelement <vscale x 64 x i16> undef, i16 undef, i32 0 542d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2i32_0 = insertelement <2 x i32> undef, i32 undef, i32 0 543d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4i32_0 = insertelement <4 x i32> undef, i32 undef, i32 0 544d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8i32_0 = insertelement <8 x i32> undef, i32 undef, i32 0 545d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16i32_0 = insertelement <16 x i32> undef, i32 undef, i32 0 546d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_0 = insertelement <32 x i32> undef, i32 undef, i32 0 547d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2i32_0 = insertelement <vscale x 2 x i32> undef, i32 undef, i32 0 548d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4i32_0 = insertelement <vscale x 4 x i32> undef, i32 undef, i32 0 549d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8i32_0 = insertelement <vscale x 8 x i32> undef, i32 undef, i32 0 550d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16i32_0 = insertelement <vscale x 16 x i32> undef, i32 undef, i32 0 551d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv32i32_0 = insertelement <vscale x 32 x i32> undef, i32 undef, i32 0 552d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2i64_0 = insertelement <2 x i64> undef, i64 undef, i32 0 553d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4i64_0 = insertelement <4 x i64> undef, i64 undef, i32 0 554d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8i64_0 = insertelement <8 x i64> undef, i64 undef, i32 0 555d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16i64_0 = insertelement <16 x i64> undef, i64 undef, i32 0 556d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2i64_0 = insertelement <vscale x 2 x i64> undef, i64 undef, i32 0 557d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4i64_0 = insertelement <vscale x 4 x i64> undef, i64 undef, i32 0 558d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8i64_0 = insertelement <vscale x 8 x i64> undef, i64 undef, i32 0 559d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16i64_0 = insertelement <vscale x 16 x i64> undef, i64 undef, i32 0 560d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2i1_1 = insertelement <2 x i1> undef, i1 undef, i32 1 561d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4i1_1 = insertelement <4 x i1> undef, i1 undef, i32 1 562d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8i1_1 = insertelement <8 x i1> undef, i1 undef, i32 1 563d7a43a00SShih-Po Hung; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v16i1_1 = insertelement <16 x i1> undef, i1 undef, i32 1 564d7a43a00SShih-Po Hung; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v32i1_1 = insertelement <32 x i1> undef, i1 undef, i32 1 565d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv2i1_1 = insertelement <vscale x 2 x i1> undef, i1 undef, i32 1 566d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4i1_1 = insertelement <vscale x 4 x i1> undef, i1 undef, i32 1 567d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8i1_1 = insertelement <vscale x 8 x i1> undef, i1 undef, i32 1 568d7a43a00SShih-Po Hung; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv16i1_1 = insertelement <vscale x 16 x i1> undef, i1 undef, i32 1 569d7a43a00SShih-Po Hung; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %nxv32i1_1 = insertelement <vscale x 32 x i1> undef, i1 undef, i32 1 570d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2i8_1 = insertelement <2 x i8> undef, i8 undef, i32 1 571d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4i8_1 = insertelement <4 x i8> undef, i8 undef, i32 1 572d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8i8_1 = insertelement <8 x i8> undef, i8 undef, i32 1 573d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16i8_1 = insertelement <16 x i8> undef, i8 undef, i32 1 574d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i8_1 = insertelement <32 x i8> undef, i8 undef, i32 1 575d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v64i8_1 = insertelement <64 x i8> undef, i8 undef, i32 1 57659f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v128i8_1 = insertelement <128 x i8> undef, i8 undef, i32 1 577d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2i8_1 = insertelement <vscale x 2 x i8> undef, i8 undef, i32 1 578d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4i8_1 = insertelement <vscale x 4 x i8> undef, i8 undef, i32 1 579d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8i8_1 = insertelement <vscale x 8 x i8> undef, i8 undef, i32 1 580d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16i8_1 = insertelement <vscale x 16 x i8> undef, i8 undef, i32 1 581d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv32i8_1 = insertelement <vscale x 32 x i8> undef, i8 undef, i32 1 582d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv64i8_1 = insertelement <vscale x 64 x i8> undef, i8 undef, i32 1 58359f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv128i8_1 = insertelement <vscale x 128 x i8> undef, i8 undef, i32 1 584d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2i16_1 = insertelement <2 x i16> undef, i16 undef, i32 1 585d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4i16_1 = insertelement <4 x i16> undef, i16 undef, i32 1 586d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8i16_1 = insertelement <8 x i16> undef, i16 undef, i32 1 587d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16i16_1 = insertelement <16 x i16> undef, i16 undef, i32 1 588d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i16_1 = insertelement <32 x i16> undef, i16 undef, i32 1 58959f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v64i16_1 = insertelement <64 x i16> undef, i16 undef, i32 1 590d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2i16_1 = insertelement <vscale x 2 x i16> undef, i16 undef, i32 1 591d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4i16_1 = insertelement <vscale x 4 x i16> undef, i16 undef, i32 1 592d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8i16_1 = insertelement <vscale x 8 x i16> undef, i16 undef, i32 1 593d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16i16_1 = insertelement <vscale x 16 x i16> undef, i16 undef, i32 1 594d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv32i16_1 = insertelement <vscale x 32 x i16> undef, i16 undef, i32 1 59559f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv64i16_1 = insertelement <vscale x 64 x i16> undef, i16 undef, i32 1 596d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2i32_1 = insertelement <2 x i32> undef, i32 undef, i32 1 597d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4i32_1 = insertelement <4 x i32> undef, i32 undef, i32 1 598d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8i32_1 = insertelement <8 x i32> undef, i32 undef, i32 1 599d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16i32_1 = insertelement <16 x i32> undef, i32 undef, i32 1 60059f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_1 = insertelement <32 x i32> undef, i32 undef, i32 1 601d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2i32_1 = insertelement <vscale x 2 x i32> undef, i32 undef, i32 1 602d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4i32_1 = insertelement <vscale x 4 x i32> undef, i32 undef, i32 1 603d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8i32_1 = insertelement <vscale x 8 x i32> undef, i32 undef, i32 1 604d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16i32_1 = insertelement <vscale x 16 x i32> undef, i32 undef, i32 1 60559f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv32i32_1 = insertelement <vscale x 32 x i32> undef, i32 undef, i32 1 606d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2i64_1 = insertelement <2 x i64> undef, i64 undef, i32 1 607d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4i64_1 = insertelement <4 x i64> undef, i64 undef, i32 1 608d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8i64_1 = insertelement <8 x i64> undef, i64 undef, i32 1 60959f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16i64_1 = insertelement <16 x i64> undef, i64 undef, i32 1 610d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2i64_1 = insertelement <vscale x 2 x i64> undef, i64 undef, i32 1 611d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4i64_1 = insertelement <vscale x 4 x i64> undef, i64 undef, i32 1 612d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8i64_1 = insertelement <vscale x 8 x i64> undef, i64 undef, i32 1 61359f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16i64_1 = insertelement <vscale x 16 x i64> undef, i64 undef, i32 1 614d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2i1_x = insertelement <2 x i1> undef, i1 undef, i32 %x 615d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4i1_x = insertelement <4 x i1> undef, i1 undef, i32 %x 616d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8i1_x = insertelement <8 x i1> undef, i1 undef, i32 %x 617d7a43a00SShih-Po Hung; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v16i1_x = insertelement <16 x i1> undef, i1 undef, i32 %x 618d7a43a00SShih-Po Hung; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %v32i1_x = insertelement <32 x i1> undef, i1 undef, i32 %x 619d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2i1_x = insertelement <vscale x 2 x i1> undef, i1 undef, i32 %x 620d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv4i1_x = insertelement <vscale x 4 x i1> undef, i1 undef, i32 %x 621d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv8i1_x = insertelement <vscale x 8 x i1> undef, i1 undef, i32 %x 622d7a43a00SShih-Po Hung; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv16i1_x = insertelement <vscale x 16 x i1> undef, i1 undef, i32 %x 623d7a43a00SShih-Po Hung; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv32i1_x = insertelement <vscale x 32 x i1> undef, i1 undef, i32 %x 624d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2i8_x = insertelement <2 x i8> undef, i8 undef, i32 %x 625d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4i8_x = insertelement <4 x i8> undef, i8 undef, i32 %x 626d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8i8_x = insertelement <8 x i8> undef, i8 undef, i32 %x 627d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16i8_x = insertelement <16 x i8> undef, i8 undef, i32 %x 628d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v32i8_x = insertelement <32 x i8> undef, i8 undef, i32 %x 629d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v64i8_x = insertelement <64 x i8> undef, i8 undef, i32 %x 630*a6742094SElvis Wang; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %v128i8_x = insertelement <128 x i8> undef, i8 undef, i32 %x 631d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2i8_x = insertelement <vscale x 2 x i8> undef, i8 undef, i32 %x 632d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4i8_x = insertelement <vscale x 4 x i8> undef, i8 undef, i32 %x 633d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8i8_x = insertelement <vscale x 8 x i8> undef, i8 undef, i32 %x 634d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16i8_x = insertelement <vscale x 16 x i8> undef, i8 undef, i32 %x 635d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv32i8_x = insertelement <vscale x 32 x i8> undef, i8 undef, i32 %x 636d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv64i8_x = insertelement <vscale x 64 x i8> undef, i8 undef, i32 %x 637*a6742094SElvis Wang; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv128i8_x = insertelement <vscale x 128 x i8> undef, i8 undef, i32 %x 638d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2i16_x = insertelement <2 x i16> undef, i16 undef, i32 %x 639d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4i16_x = insertelement <4 x i16> undef, i16 undef, i32 %x 640d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8i16_x = insertelement <8 x i16> undef, i16 undef, i32 %x 641d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16i16_x = insertelement <16 x i16> undef, i16 undef, i32 %x 642d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v32i16_x = insertelement <32 x i16> undef, i16 undef, i32 %x 643*a6742094SElvis Wang; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %v64i16_x = insertelement <64 x i16> undef, i16 undef, i32 %x 644d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2i16_x = insertelement <vscale x 2 x i16> undef, i16 undef, i32 %x 645d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4i16_x = insertelement <vscale x 4 x i16> undef, i16 undef, i32 %x 646d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8i16_x = insertelement <vscale x 8 x i16> undef, i16 undef, i32 %x 647d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16i16_x = insertelement <vscale x 16 x i16> undef, i16 undef, i32 %x 648d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv32i16_x = insertelement <vscale x 32 x i16> undef, i16 undef, i32 %x 649*a6742094SElvis Wang; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv64i16_x = insertelement <vscale x 64 x i16> undef, i16 undef, i32 %x 650d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2i32_x = insertelement <2 x i32> undef, i32 undef, i32 %x 651d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4i32_x = insertelement <4 x i32> undef, i32 undef, i32 %x 652d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8i32_x = insertelement <8 x i32> undef, i32 undef, i32 %x 653d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16i32_x = insertelement <16 x i32> undef, i32 undef, i32 %x 654*a6742094SElvis Wang; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %v32i32_x = insertelement <32 x i32> undef, i32 undef, i32 %x 655d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2i32_x = insertelement <vscale x 2 x i32> undef, i32 undef, i32 %x 656d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4i32_x = insertelement <vscale x 4 x i32> undef, i32 undef, i32 %x 657d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8i32_x = insertelement <vscale x 8 x i32> undef, i32 undef, i32 %x 658d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16i32_x = insertelement <vscale x 16 x i32> undef, i32 undef, i32 %x 659*a6742094SElvis Wang; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv32i32_x = insertelement <vscale x 32 x i32> undef, i32 undef, i32 %x 660d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2i64_x = insertelement <2 x i64> undef, i64 undef, i32 %x 661d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4i64_x = insertelement <4 x i64> undef, i64 undef, i32 %x 662d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8i64_x = insertelement <8 x i64> undef, i64 undef, i32 %x 663*a6742094SElvis Wang; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %v16i64_x = insertelement <16 x i64> undef, i64 undef, i32 %x 664d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2i64_x = insertelement <vscale x 2 x i64> undef, i64 undef, i32 %x 665d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4i64_x = insertelement <vscale x 4 x i64> undef, i64 undef, i32 %x 666d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8i64_x = insertelement <vscale x 8 x i64> undef, i64 undef, i32 %x 667*a6742094SElvis Wang; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv16i64_x = insertelement <vscale x 16 x i64> undef, i64 undef, i32 %x 6680a5d52a7SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 6691f7b94e0Sjacquesguan; 6701f7b94e0Sjacquesguan %v2i1_0 = insertelement <2 x i1> undef, i1 undef, i32 0 6711f7b94e0Sjacquesguan %v4i1_0 = insertelement <4 x i1> undef, i1 undef, i32 0 6721f7b94e0Sjacquesguan %v8i1_0 = insertelement <8 x i1> undef, i1 undef, i32 0 6731f7b94e0Sjacquesguan %v16i1_0 = insertelement <16 x i1> undef, i1 undef, i32 0 6741f7b94e0Sjacquesguan %v32i1_0 = insertelement <32 x i1> undef, i1 undef, i32 0 6751f7b94e0Sjacquesguan 6761f7b94e0Sjacquesguan %nxv2i1_0 = insertelement <vscale x 2 x i1> undef, i1 undef, i32 0 6771f7b94e0Sjacquesguan %nxv4i1_0 = insertelement <vscale x 4 x i1> undef, i1 undef, i32 0 6781f7b94e0Sjacquesguan %nxv8i1_0 = insertelement <vscale x 8 x i1> undef, i1 undef, i32 0 6791f7b94e0Sjacquesguan %nxv16i1_0 = insertelement <vscale x 16 x i1> undef, i1 undef, i32 0 6801f7b94e0Sjacquesguan %nxv32i1_0 = insertelement <vscale x 32 x i1> undef, i1 undef, i32 0 6811f7b94e0Sjacquesguan 6821f7b94e0Sjacquesguan %v2i8_0 = insertelement <2 x i8> undef, i8 undef, i32 0 6831f7b94e0Sjacquesguan %v4i8_0 = insertelement <4 x i8> undef, i8 undef, i32 0 6841f7b94e0Sjacquesguan %v8i8_0 = insertelement <8 x i8> undef, i8 undef, i32 0 6851f7b94e0Sjacquesguan %v16i8_0 = insertelement <16 x i8> undef, i8 undef, i32 0 6861f7b94e0Sjacquesguan %v32i8_0 = insertelement <32 x i8> undef, i8 undef, i32 0 687d11cc691Sjacquesguan %v64i8_0 = insertelement <64 x i8> undef, i8 undef, i32 0 688d11cc691Sjacquesguan %v128i8_0 = insertelement <128 x i8> undef, i8 undef, i32 0 6891f7b94e0Sjacquesguan 6901f7b94e0Sjacquesguan %nxv2i8_0 = insertelement <vscale x 2 x i8> undef, i8 undef, i32 0 6911f7b94e0Sjacquesguan %nxv4i8_0 = insertelement <vscale x 4 x i8> undef, i8 undef, i32 0 6921f7b94e0Sjacquesguan %nxv8i8_0 = insertelement <vscale x 8 x i8> undef, i8 undef, i32 0 6931f7b94e0Sjacquesguan %nxv16i8_0 = insertelement <vscale x 16 x i8> undef, i8 undef, i32 0 6941f7b94e0Sjacquesguan %nxv32i8_0 = insertelement <vscale x 32 x i8> undef, i8 undef, i32 0 695d11cc691Sjacquesguan %nxv64i8_0 = insertelement <vscale x 64 x i8> undef, i8 undef, i32 0 696d11cc691Sjacquesguan %nxv128i8_0 = insertelement <vscale x 128 x i8> undef, i8 undef, i32 0 6971f7b94e0Sjacquesguan 6981f7b94e0Sjacquesguan %v2i16_0 = insertelement <2 x i16> undef, i16 undef, i32 0 6991f7b94e0Sjacquesguan %v4i16_0 = insertelement <4 x i16> undef, i16 undef, i32 0 7001f7b94e0Sjacquesguan %v8i16_0 = insertelement <8 x i16> undef, i16 undef, i32 0 7011f7b94e0Sjacquesguan %v16i16_0 = insertelement <16 x i16> undef, i16 undef, i32 0 702d11cc691Sjacquesguan %v32i16_0 = insertelement <32 x i16> undef, i16 undef, i32 0 703d11cc691Sjacquesguan %v64i16_0 = insertelement <64 x i16> undef, i16 undef, i32 0 7041f7b94e0Sjacquesguan 7051f7b94e0Sjacquesguan %nxv2i16_0 = insertelement <vscale x 2 x i16> undef, i16 undef, i32 0 7061f7b94e0Sjacquesguan %nxv4i16_0 = insertelement <vscale x 4 x i16> undef, i16 undef, i32 0 7071f7b94e0Sjacquesguan %nxv8i16_0 = insertelement <vscale x 8 x i16> undef, i16 undef, i32 0 7081f7b94e0Sjacquesguan %nxv16i16_0 = insertelement <vscale x 16 x i16> undef, i16 undef, i32 0 709d11cc691Sjacquesguan %nxv32i16_0 = insertelement <vscale x 32 x i16> undef, i16 undef, i32 0 710d11cc691Sjacquesguan %nxv64i16_0 = insertelement <vscale x 64 x i16> undef, i16 undef, i32 0 7111f7b94e0Sjacquesguan 7121f7b94e0Sjacquesguan %v2i32_0 = insertelement <2 x i32> undef, i32 undef, i32 0 7131f7b94e0Sjacquesguan %v4i32_0 = insertelement <4 x i32> undef, i32 undef, i32 0 7141f7b94e0Sjacquesguan %v8i32_0 = insertelement <8 x i32> undef, i32 undef, i32 0 7151f7b94e0Sjacquesguan %v16i32_0 = insertelement <16 x i32> undef, i32 undef, i32 0 716d11cc691Sjacquesguan %v32i32_0 = insertelement <32 x i32> undef, i32 undef, i32 0 7171f7b94e0Sjacquesguan 7181f7b94e0Sjacquesguan %nxv2i32_0 = insertelement <vscale x 2 x i32> undef, i32 undef, i32 0 7191f7b94e0Sjacquesguan %nxv4i32_0 = insertelement <vscale x 4 x i32> undef, i32 undef, i32 0 7201f7b94e0Sjacquesguan %nxv8i32_0 = insertelement <vscale x 8 x i32> undef, i32 undef, i32 0 7211f7b94e0Sjacquesguan %nxv16i32_0 = insertelement <vscale x 16 x i32> undef, i32 undef, i32 0 722d11cc691Sjacquesguan %nxv32i32_0 = insertelement <vscale x 32 x i32> undef, i32 undef, i32 0 7231f7b94e0Sjacquesguan 7241f7b94e0Sjacquesguan %v2i64_0 = insertelement <2 x i64> undef, i64 undef, i32 0 7251f7b94e0Sjacquesguan %v4i64_0 = insertelement <4 x i64> undef, i64 undef, i32 0 7261f7b94e0Sjacquesguan %v8i64_0 = insertelement <8 x i64> undef, i64 undef, i32 0 727d11cc691Sjacquesguan %v16i64_0 = insertelement <16 x i64> undef, i64 undef, i32 0 7281f7b94e0Sjacquesguan 7291f7b94e0Sjacquesguan %nxv2i64_0 = insertelement <vscale x 2 x i64> undef, i64 undef, i32 0 7301f7b94e0Sjacquesguan %nxv4i64_0 = insertelement <vscale x 4 x i64> undef, i64 undef, i32 0 7311f7b94e0Sjacquesguan %nxv8i64_0 = insertelement <vscale x 8 x i64> undef, i64 undef, i32 0 732d11cc691Sjacquesguan %nxv16i64_0 = insertelement <vscale x 16 x i64> undef, i64 undef, i32 0 7331f7b94e0Sjacquesguan 7341f7b94e0Sjacquesguan %v2i1_1 = insertelement <2 x i1> undef, i1 undef, i32 1 7351f7b94e0Sjacquesguan %v4i1_1 = insertelement <4 x i1> undef, i1 undef, i32 1 7361f7b94e0Sjacquesguan %v8i1_1 = insertelement <8 x i1> undef, i1 undef, i32 1 7371f7b94e0Sjacquesguan %v16i1_1 = insertelement <16 x i1> undef, i1 undef, i32 1 7381f7b94e0Sjacquesguan %v32i1_1 = insertelement <32 x i1> undef, i1 undef, i32 1 7391f7b94e0Sjacquesguan 7401f7b94e0Sjacquesguan %nxv2i1_1 = insertelement <vscale x 2 x i1> undef, i1 undef, i32 1 7411f7b94e0Sjacquesguan %nxv4i1_1 = insertelement <vscale x 4 x i1> undef, i1 undef, i32 1 7421f7b94e0Sjacquesguan %nxv8i1_1 = insertelement <vscale x 8 x i1> undef, i1 undef, i32 1 7431f7b94e0Sjacquesguan %nxv16i1_1 = insertelement <vscale x 16 x i1> undef, i1 undef, i32 1 7441f7b94e0Sjacquesguan %nxv32i1_1 = insertelement <vscale x 32 x i1> undef, i1 undef, i32 1 7451f7b94e0Sjacquesguan 7461f7b94e0Sjacquesguan %v2i8_1 = insertelement <2 x i8> undef, i8 undef, i32 1 7471f7b94e0Sjacquesguan %v4i8_1 = insertelement <4 x i8> undef, i8 undef, i32 1 7481f7b94e0Sjacquesguan %v8i8_1 = insertelement <8 x i8> undef, i8 undef, i32 1 7491f7b94e0Sjacquesguan %v16i8_1 = insertelement <16 x i8> undef, i8 undef, i32 1 7501f7b94e0Sjacquesguan %v32i8_1 = insertelement <32 x i8> undef, i8 undef, i32 1 751d11cc691Sjacquesguan %v64i8_1 = insertelement <64 x i8> undef, i8 undef, i32 1 752d11cc691Sjacquesguan %v128i8_1 = insertelement <128 x i8> undef, i8 undef, i32 1 7531f7b94e0Sjacquesguan 7541f7b94e0Sjacquesguan %nxv2i8_1 = insertelement <vscale x 2 x i8> undef, i8 undef, i32 1 7551f7b94e0Sjacquesguan %nxv4i8_1 = insertelement <vscale x 4 x i8> undef, i8 undef, i32 1 7561f7b94e0Sjacquesguan %nxv8i8_1 = insertelement <vscale x 8 x i8> undef, i8 undef, i32 1 7571f7b94e0Sjacquesguan %nxv16i8_1 = insertelement <vscale x 16 x i8> undef, i8 undef, i32 1 7581f7b94e0Sjacquesguan %nxv32i8_1 = insertelement <vscale x 32 x i8> undef, i8 undef, i32 1 759d11cc691Sjacquesguan %nxv64i8_1 = insertelement <vscale x 64 x i8> undef, i8 undef, i32 1 760d11cc691Sjacquesguan %nxv128i8_1 = insertelement <vscale x 128 x i8> undef, i8 undef, i32 1 7611f7b94e0Sjacquesguan 7621f7b94e0Sjacquesguan %v2i16_1 = insertelement <2 x i16> undef, i16 undef, i32 1 7631f7b94e0Sjacquesguan %v4i16_1 = insertelement <4 x i16> undef, i16 undef, i32 1 7641f7b94e0Sjacquesguan %v8i16_1 = insertelement <8 x i16> undef, i16 undef, i32 1 7651f7b94e0Sjacquesguan %v16i16_1 = insertelement <16 x i16> undef, i16 undef, i32 1 766d11cc691Sjacquesguan %v32i16_1 = insertelement <32 x i16> undef, i16 undef, i32 1 767d11cc691Sjacquesguan %v64i16_1 = insertelement <64 x i16> undef, i16 undef, i32 1 7681f7b94e0Sjacquesguan 7691f7b94e0Sjacquesguan %nxv2i16_1 = insertelement <vscale x 2 x i16> undef, i16 undef, i32 1 7701f7b94e0Sjacquesguan %nxv4i16_1 = insertelement <vscale x 4 x i16> undef, i16 undef, i32 1 7711f7b94e0Sjacquesguan %nxv8i16_1 = insertelement <vscale x 8 x i16> undef, i16 undef, i32 1 7721f7b94e0Sjacquesguan %nxv16i16_1 = insertelement <vscale x 16 x i16> undef, i16 undef, i32 1 773d11cc691Sjacquesguan %nxv32i16_1 = insertelement <vscale x 32 x i16> undef, i16 undef, i32 1 774d11cc691Sjacquesguan %nxv64i16_1 = insertelement <vscale x 64 x i16> undef, i16 undef, i32 1 7751f7b94e0Sjacquesguan 7761f7b94e0Sjacquesguan %v2i32_1 = insertelement <2 x i32> undef, i32 undef, i32 1 7771f7b94e0Sjacquesguan %v4i32_1 = insertelement <4 x i32> undef, i32 undef, i32 1 7781f7b94e0Sjacquesguan %v8i32_1 = insertelement <8 x i32> undef, i32 undef, i32 1 7791f7b94e0Sjacquesguan %v16i32_1 = insertelement <16 x i32> undef, i32 undef, i32 1 780d11cc691Sjacquesguan %v32i32_1 = insertelement <32 x i32> undef, i32 undef, i32 1 7811f7b94e0Sjacquesguan 7821f7b94e0Sjacquesguan %nxv2i32_1 = insertelement <vscale x 2 x i32> undef, i32 undef, i32 1 7831f7b94e0Sjacquesguan %nxv4i32_1 = insertelement <vscale x 4 x i32> undef, i32 undef, i32 1 7841f7b94e0Sjacquesguan %nxv8i32_1 = insertelement <vscale x 8 x i32> undef, i32 undef, i32 1 7851f7b94e0Sjacquesguan %nxv16i32_1 = insertelement <vscale x 16 x i32> undef, i32 undef, i32 1 786d11cc691Sjacquesguan %nxv32i32_1 = insertelement <vscale x 32 x i32> undef, i32 undef, i32 1 7871f7b94e0Sjacquesguan 7881f7b94e0Sjacquesguan %v2i64_1 = insertelement <2 x i64> undef, i64 undef, i32 1 7891f7b94e0Sjacquesguan %v4i64_1 = insertelement <4 x i64> undef, i64 undef, i32 1 7901f7b94e0Sjacquesguan %v8i64_1 = insertelement <8 x i64> undef, i64 undef, i32 1 791d11cc691Sjacquesguan %v16i64_1 = insertelement <16 x i64> undef, i64 undef, i32 1 7921f7b94e0Sjacquesguan 7931f7b94e0Sjacquesguan %nxv2i64_1 = insertelement <vscale x 2 x i64> undef, i64 undef, i32 1 7941f7b94e0Sjacquesguan %nxv4i64_1 = insertelement <vscale x 4 x i64> undef, i64 undef, i32 1 7951f7b94e0Sjacquesguan %nxv8i64_1 = insertelement <vscale x 8 x i64> undef, i64 undef, i32 1 796d11cc691Sjacquesguan %nxv16i64_1 = insertelement <vscale x 16 x i64> undef, i64 undef, i32 1 797d11cc691Sjacquesguan 798d11cc691Sjacquesguan %v2i1_x = insertelement <2 x i1> undef, i1 undef, i32 %x 799d11cc691Sjacquesguan %v4i1_x = insertelement <4 x i1> undef, i1 undef, i32 %x 800d11cc691Sjacquesguan %v8i1_x = insertelement <8 x i1> undef, i1 undef, i32 %x 801d11cc691Sjacquesguan %v16i1_x = insertelement <16 x i1> undef, i1 undef, i32 %x 802d11cc691Sjacquesguan %v32i1_x = insertelement <32 x i1> undef, i1 undef, i32 %x 803d11cc691Sjacquesguan 804d11cc691Sjacquesguan %nxv2i1_x = insertelement <vscale x 2 x i1> undef, i1 undef, i32 %x 805d11cc691Sjacquesguan %nxv4i1_x = insertelement <vscale x 4 x i1> undef, i1 undef, i32 %x 806d11cc691Sjacquesguan %nxv8i1_x = insertelement <vscale x 8 x i1> undef, i1 undef, i32 %x 807d11cc691Sjacquesguan %nxv16i1_x = insertelement <vscale x 16 x i1> undef, i1 undef, i32 %x 808d11cc691Sjacquesguan %nxv32i1_x = insertelement <vscale x 32 x i1> undef, i1 undef, i32 %x 809d11cc691Sjacquesguan 810d11cc691Sjacquesguan %v2i8_x = insertelement <2 x i8> undef, i8 undef, i32 %x 811d11cc691Sjacquesguan %v4i8_x = insertelement <4 x i8> undef, i8 undef, i32 %x 812d11cc691Sjacquesguan %v8i8_x = insertelement <8 x i8> undef, i8 undef, i32 %x 813d11cc691Sjacquesguan %v16i8_x = insertelement <16 x i8> undef, i8 undef, i32 %x 814d11cc691Sjacquesguan %v32i8_x = insertelement <32 x i8> undef, i8 undef, i32 %x 815d11cc691Sjacquesguan %v64i8_x = insertelement <64 x i8> undef, i8 undef, i32 %x 816d11cc691Sjacquesguan %v128i8_x = insertelement <128 x i8> undef, i8 undef, i32 %x 817d11cc691Sjacquesguan 818d11cc691Sjacquesguan %nxv2i8_x = insertelement <vscale x 2 x i8> undef, i8 undef, i32 %x 819d11cc691Sjacquesguan %nxv4i8_x = insertelement <vscale x 4 x i8> undef, i8 undef, i32 %x 820d11cc691Sjacquesguan %nxv8i8_x = insertelement <vscale x 8 x i8> undef, i8 undef, i32 %x 821d11cc691Sjacquesguan %nxv16i8_x = insertelement <vscale x 16 x i8> undef, i8 undef, i32 %x 822d11cc691Sjacquesguan %nxv32i8_x = insertelement <vscale x 32 x i8> undef, i8 undef, i32 %x 823d11cc691Sjacquesguan %nxv64i8_x = insertelement <vscale x 64 x i8> undef, i8 undef, i32 %x 824d11cc691Sjacquesguan %nxv128i8_x = insertelement <vscale x 128 x i8> undef, i8 undef, i32 %x 825d11cc691Sjacquesguan 826d11cc691Sjacquesguan %v2i16_x = insertelement <2 x i16> undef, i16 undef, i32 %x 827d11cc691Sjacquesguan %v4i16_x = insertelement <4 x i16> undef, i16 undef, i32 %x 828d11cc691Sjacquesguan %v8i16_x = insertelement <8 x i16> undef, i16 undef, i32 %x 829d11cc691Sjacquesguan %v16i16_x = insertelement <16 x i16> undef, i16 undef, i32 %x 830d11cc691Sjacquesguan %v32i16_x = insertelement <32 x i16> undef, i16 undef, i32 %x 831d11cc691Sjacquesguan %v64i16_x = insertelement <64 x i16> undef, i16 undef, i32 %x 832d11cc691Sjacquesguan 833d11cc691Sjacquesguan %nxv2i16_x = insertelement <vscale x 2 x i16> undef, i16 undef, i32 %x 834d11cc691Sjacquesguan %nxv4i16_x = insertelement <vscale x 4 x i16> undef, i16 undef, i32 %x 835d11cc691Sjacquesguan %nxv8i16_x = insertelement <vscale x 8 x i16> undef, i16 undef, i32 %x 836d11cc691Sjacquesguan %nxv16i16_x = insertelement <vscale x 16 x i16> undef, i16 undef, i32 %x 837d11cc691Sjacquesguan %nxv32i16_x = insertelement <vscale x 32 x i16> undef, i16 undef, i32 %x 838d11cc691Sjacquesguan %nxv64i16_x = insertelement <vscale x 64 x i16> undef, i16 undef, i32 %x 839d11cc691Sjacquesguan 840d11cc691Sjacquesguan %v2i32_x = insertelement <2 x i32> undef, i32 undef, i32 %x 841d11cc691Sjacquesguan %v4i32_x = insertelement <4 x i32> undef, i32 undef, i32 %x 842d11cc691Sjacquesguan %v8i32_x = insertelement <8 x i32> undef, i32 undef, i32 %x 843d11cc691Sjacquesguan %v16i32_x = insertelement <16 x i32> undef, i32 undef, i32 %x 844d11cc691Sjacquesguan %v32i32_x = insertelement <32 x i32> undef, i32 undef, i32 %x 845d11cc691Sjacquesguan 846d11cc691Sjacquesguan %nxv2i32_x = insertelement <vscale x 2 x i32> undef, i32 undef, i32 %x 847d11cc691Sjacquesguan %nxv4i32_x = insertelement <vscale x 4 x i32> undef, i32 undef, i32 %x 848d11cc691Sjacquesguan %nxv8i32_x = insertelement <vscale x 8 x i32> undef, i32 undef, i32 %x 849d11cc691Sjacquesguan %nxv16i32_x = insertelement <vscale x 16 x i32> undef, i32 undef, i32 %x 850d11cc691Sjacquesguan %nxv32i32_x = insertelement <vscale x 32 x i32> undef, i32 undef, i32 %x 851d11cc691Sjacquesguan 852d11cc691Sjacquesguan %v2i64_x = insertelement <2 x i64> undef, i64 undef, i32 %x 853d11cc691Sjacquesguan %v4i64_x = insertelement <4 x i64> undef, i64 undef, i32 %x 854d11cc691Sjacquesguan %v8i64_x = insertelement <8 x i64> undef, i64 undef, i32 %x 855d11cc691Sjacquesguan %v16i64_x = insertelement <16 x i64> undef, i64 undef, i32 %x 856d11cc691Sjacquesguan 857d11cc691Sjacquesguan %nxv2i64_x = insertelement <vscale x 2 x i64> undef, i64 undef, i32 %x 858d11cc691Sjacquesguan %nxv4i64_x = insertelement <vscale x 4 x i64> undef, i64 undef, i32 %x 859d11cc691Sjacquesguan %nxv8i64_x = insertelement <vscale x 8 x i64> undef, i64 undef, i32 %x 860d11cc691Sjacquesguan %nxv16i64_x = insertelement <vscale x 16 x i64> undef, i64 undef, i32 %x 8611f7b94e0Sjacquesguan 8621f7b94e0Sjacquesguan ret void 8631f7b94e0Sjacquesguan} 8641f7b94e0Sjacquesguan 865aea45284SPhilip Reames; Cover high lmul extracts and types which require splitting 866aea45284SPhilip Reamesdefine void @insertelement_int_lmul(i32 %x) { 867aea45284SPhilip Reames; RV32V-LABEL: 'insertelement_int_lmul' 868aea45284SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v128i8_31 = insertelement <128 x i8> undef, i8 undef, i32 31 869aea45284SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v128i8_63 = insertelement <128 x i8> undef, i8 undef, i32 63 870aea45284SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v128i8_127 = insertelement <128 x i8> undef, i8 undef, i32 127 87159f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v256i8_127 = insertelement <256 x i8> undef, i8 undef, i32 127 87259f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v256i8_255 = insertelement <256 x i8> undef, i8 undef, i32 255 873aea45284SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_3 = insertelement <32 x i32> undef, i32 undef, i32 3 874aea45284SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_7 = insertelement <32 x i32> undef, i32 undef, i32 7 875aea45284SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_15 = insertelement <32 x i32> undef, i32 undef, i32 15 876aea45284SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_31 = insertelement <32 x i32> undef, i32 undef, i32 31 87759f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v64i32_63 = insertelement <64 x i32> undef, i32 undef, i32 63 878aea45284SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v128i8 = insertelement <128 x i8> undef, i8 undef, i32 %x 879*a6742094SElvis Wang; RV32V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %v256i8 = insertelement <256 x i8> undef, i8 undef, i32 %x 880aea45284SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v32i32 = insertelement <32 x i32> undef, i32 undef, i32 %x 881*a6742094SElvis Wang; RV32V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %v64i32 = insertelement <64 x i32> undef, i32 undef, i32 %x 8820a5d52a7SSergey Kachkov; RV32V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 883aea45284SPhilip Reames; 884aea45284SPhilip Reames; RV64V-LABEL: 'insertelement_int_lmul' 885aea45284SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v128i8_31 = insertelement <128 x i8> undef, i8 undef, i32 31 886aea45284SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v128i8_63 = insertelement <128 x i8> undef, i8 undef, i32 63 887aea45284SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v128i8_127 = insertelement <128 x i8> undef, i8 undef, i32 127 88859f05b68SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v256i8_127 = insertelement <256 x i8> undef, i8 undef, i32 127 88959f05b68SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v256i8_255 = insertelement <256 x i8> undef, i8 undef, i32 255 890aea45284SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_3 = insertelement <32 x i32> undef, i32 undef, i32 3 891aea45284SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_7 = insertelement <32 x i32> undef, i32 undef, i32 7 892aea45284SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_15 = insertelement <32 x i32> undef, i32 undef, i32 15 893aea45284SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_31 = insertelement <32 x i32> undef, i32 undef, i32 31 89459f05b68SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v64i32_63 = insertelement <64 x i32> undef, i32 undef, i32 63 895aea45284SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v128i8 = insertelement <128 x i8> undef, i8 undef, i32 %x 896*a6742094SElvis Wang; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %v256i8 = insertelement <256 x i8> undef, i8 undef, i32 %x 897aea45284SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v32i32 = insertelement <32 x i32> undef, i32 undef, i32 %x 898*a6742094SElvis Wang; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %v64i32 = insertelement <64 x i32> undef, i32 undef, i32 %x 8990a5d52a7SSergey Kachkov; RV64V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 900aea45284SPhilip Reames; 901aea45284SPhilip Reames; RV32ZVE64X-LABEL: 'insertelement_int_lmul' 90259f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v128i8_31 = insertelement <128 x i8> undef, i8 undef, i32 31 90359f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v128i8_63 = insertelement <128 x i8> undef, i8 undef, i32 63 90459f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v128i8_127 = insertelement <128 x i8> undef, i8 undef, i32 127 90559f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v256i8_127 = insertelement <256 x i8> undef, i8 undef, i32 127 90659f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v256i8_255 = insertelement <256 x i8> undef, i8 undef, i32 255 90759f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_3 = insertelement <32 x i32> undef, i32 undef, i32 3 90859f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_7 = insertelement <32 x i32> undef, i32 undef, i32 7 90959f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_15 = insertelement <32 x i32> undef, i32 undef, i32 15 91059f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_31 = insertelement <32 x i32> undef, i32 undef, i32 31 91159f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v64i32_63 = insertelement <64 x i32> undef, i32 undef, i32 63 912*a6742094SElvis Wang; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %v128i8 = insertelement <128 x i8> undef, i8 undef, i32 %x 913*a6742094SElvis Wang; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 66 for instruction: %v256i8 = insertelement <256 x i8> undef, i8 undef, i32 %x 914*a6742094SElvis Wang; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %v32i32 = insertelement <32 x i32> undef, i32 undef, i32 %x 915*a6742094SElvis Wang; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 66 for instruction: %v64i32 = insertelement <64 x i32> undef, i32 undef, i32 %x 9160a5d52a7SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 917aea45284SPhilip Reames; 918aea45284SPhilip Reames; RV64ZVE64X-LABEL: 'insertelement_int_lmul' 91959f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v128i8_31 = insertelement <128 x i8> undef, i8 undef, i32 31 92059f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v128i8_63 = insertelement <128 x i8> undef, i8 undef, i32 63 92159f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v128i8_127 = insertelement <128 x i8> undef, i8 undef, i32 127 92259f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v256i8_127 = insertelement <256 x i8> undef, i8 undef, i32 127 92359f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v256i8_255 = insertelement <256 x i8> undef, i8 undef, i32 255 92459f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_3 = insertelement <32 x i32> undef, i32 undef, i32 3 92559f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_7 = insertelement <32 x i32> undef, i32 undef, i32 7 92659f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_15 = insertelement <32 x i32> undef, i32 undef, i32 15 92759f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_31 = insertelement <32 x i32> undef, i32 undef, i32 31 92859f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v64i32_63 = insertelement <64 x i32> undef, i32 undef, i32 63 929*a6742094SElvis Wang; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %v128i8 = insertelement <128 x i8> undef, i8 undef, i32 %x 930*a6742094SElvis Wang; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 66 for instruction: %v256i8 = insertelement <256 x i8> undef, i8 undef, i32 %x 931*a6742094SElvis Wang; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %v32i32 = insertelement <32 x i32> undef, i32 undef, i32 %x 932*a6742094SElvis Wang; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 66 for instruction: %v64i32 = insertelement <64 x i32> undef, i32 undef, i32 %x 9330a5d52a7SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 934aea45284SPhilip Reames; 935aea45284SPhilip Reames %v128i8_31 = insertelement <128 x i8> undef, i8 undef, i32 31 936aea45284SPhilip Reames %v128i8_63 = insertelement <128 x i8> undef, i8 undef, i32 63 937aea45284SPhilip Reames %v128i8_127 = insertelement <128 x i8> undef, i8 undef, i32 127 938aea45284SPhilip Reames %v256i8_127 = insertelement <256 x i8> undef, i8 undef, i32 127 939aea45284SPhilip Reames %v256i8_255 = insertelement <256 x i8> undef, i8 undef, i32 255 940aea45284SPhilip Reames 941aea45284SPhilip Reames %v32i32_3 = insertelement <32 x i32> undef, i32 undef, i32 3 942aea45284SPhilip Reames %v32i32_7 = insertelement <32 x i32> undef, i32 undef, i32 7 943aea45284SPhilip Reames %v32i32_15 = insertelement <32 x i32> undef, i32 undef, i32 15 944aea45284SPhilip Reames %v32i32_31 = insertelement <32 x i32> undef, i32 undef, i32 31 945aea45284SPhilip Reames %v64i32_63 = insertelement <64 x i32> undef, i32 undef, i32 63 946aea45284SPhilip Reames 947aea45284SPhilip Reames 948aea45284SPhilip Reames %v128i8 = insertelement <128 x i8> undef, i8 undef, i32 %x 949aea45284SPhilip Reames %v256i8 = insertelement <256 x i8> undef, i8 undef, i32 %x 950aea45284SPhilip Reames 951aea45284SPhilip Reames %v32i32 = insertelement <32 x i32> undef, i32 undef, i32 %x 952aea45284SPhilip Reames %v64i32 = insertelement <64 x i32> undef, i32 undef, i32 %x 953aea45284SPhilip Reames 954aea45284SPhilip Reames ret void 955aea45284SPhilip Reames} 956aea45284SPhilip Reames 957d11cc691Sjacquesguandefine void @insertelement_fp(i32 %x) { 9581f7b94e0Sjacquesguan; RV32V-LABEL: 'insertelement_fp' 9591f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2f16_0 = insertelement <2 x half> undef, half undef, i32 0 9601f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4f16_0 = insertelement <4 x half> undef, half undef, i32 0 9611f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8f16_0 = insertelement <8 x half> undef, half undef, i32 0 9621f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16f16_0 = insertelement <16 x half> undef, half undef, i32 0 963d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32f16_0 = insertelement <32 x half> undef, half undef, i32 0 964d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v64f16_0 = insertelement <64 x half> undef, half undef, i32 0 9651f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2f16_0 = insertelement <vscale x 2 x half> undef, half undef, i32 0 9661f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4f16_0 = insertelement <vscale x 4 x half> undef, half undef, i32 0 9671f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8f16_0 = insertelement <vscale x 8 x half> undef, half undef, i32 0 9681f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16f16_0 = insertelement <vscale x 16 x half> undef, half undef, i32 0 969d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv32f16_0 = insertelement <vscale x 32 x half> undef, half undef, i32 0 970d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv64f16_0 = insertelement <vscale x 64 x half> undef, half undef, i32 0 9711f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2f32_0 = insertelement <2 x float> undef, float undef, i32 0 9721f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4f32_0 = insertelement <4 x float> undef, float undef, i32 0 9731f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8f32_0 = insertelement <8 x float> undef, float undef, i32 0 9741f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16f32_0 = insertelement <16 x float> undef, float undef, i32 0 975d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32f32_0 = insertelement <32 x float> undef, float undef, i32 0 9761f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2f32_0 = insertelement <vscale x 2 x float> undef, float undef, i32 0 9771f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4f32_0 = insertelement <vscale x 4 x float> undef, float undef, i32 0 9781f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8f32_0 = insertelement <vscale x 8 x float> undef, float undef, i32 0 9791f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16f32_0 = insertelement <vscale x 16 x float> undef, float undef, i32 0 980d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv32f32_0 = insertelement <vscale x 32 x float> undef, float undef, i32 0 9811f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2f64_0 = insertelement <2 x double> undef, double undef, i32 0 9821f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4f64_0 = insertelement <4 x double> undef, double undef, i32 0 9831f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8f64_0 = insertelement <8 x double> undef, double undef, i32 0 984d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16f64_0 = insertelement <16 x double> undef, double undef, i32 0 9851f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2f64_0 = insertelement <vscale x 2 x double> undef, double undef, i32 0 9861f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4f64_0 = insertelement <vscale x 4 x double> undef, double undef, i32 0 9871f7b94e0Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8f64_0 = insertelement <vscale x 8 x double> undef, double undef, i32 0 988d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16f64_0 = insertelement <vscale x 16 x double> undef, double undef, i32 0 989ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f16_1 = insertelement <2 x half> undef, half undef, i32 1 990ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f16_1 = insertelement <4 x half> undef, half undef, i32 1 991ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f16_1 = insertelement <8 x half> undef, half undef, i32 1 992ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16f16_1 = insertelement <16 x half> undef, half undef, i32 1 993d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32f16_1 = insertelement <32 x half> undef, half undef, i32 1 994d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v64f16_1 = insertelement <64 x half> undef, half undef, i32 1 995ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f16_1 = insertelement <vscale x 2 x half> undef, half undef, i32 1 996ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f16_1 = insertelement <vscale x 4 x half> undef, half undef, i32 1 997ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f16_1 = insertelement <vscale x 8 x half> undef, half undef, i32 1 998ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f16_1 = insertelement <vscale x 16 x half> undef, half undef, i32 1 999d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv32f16_1 = insertelement <vscale x 32 x half> undef, half undef, i32 1 100059f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv64f16_1 = insertelement <vscale x 64 x half> undef, half undef, i32 1 1001ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_1 = insertelement <2 x float> undef, float undef, i32 1 1002ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_1 = insertelement <4 x float> undef, float undef, i32 1 1003ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_1 = insertelement <8 x float> undef, float undef, i32 1 1004ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16f32_1 = insertelement <16 x float> undef, float undef, i32 1 1005d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32f32_1 = insertelement <32 x float> undef, float undef, i32 1 1006ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_1 = insertelement <vscale x 2 x float> undef, float undef, i32 1 1007ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_1 = insertelement <vscale x 4 x float> undef, float undef, i32 1 1008ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_1 = insertelement <vscale x 8 x float> undef, float undef, i32 1 1009ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_1 = insertelement <vscale x 16 x float> undef, float undef, i32 1 101059f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv32f32_1 = insertelement <vscale x 32 x float> undef, float undef, i32 1 1011ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_1 = insertelement <2 x double> undef, double undef, i32 1 1012ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_1 = insertelement <4 x double> undef, double undef, i32 1 1013ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_1 = insertelement <8 x double> undef, double undef, i32 1 1014d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16f64_1 = insertelement <16 x double> undef, double undef, i32 1 1015ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_1 = insertelement <vscale x 2 x double> undef, double undef, i32 1 1016ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_1 = insertelement <vscale x 4 x double> undef, double undef, i32 1 1017ecf327f1Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_1 = insertelement <vscale x 8 x double> undef, double undef, i32 1 101859f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_1 = insertelement <vscale x 16 x double> undef, double undef, i32 1 1019d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2f16_x = insertelement <2 x half> undef, half undef, i32 %x 1020d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4f16_x = insertelement <4 x half> undef, half undef, i32 %x 1021d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8f16_x = insertelement <8 x half> undef, half undef, i32 %x 1022d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16f16_x = insertelement <16 x half> undef, half undef, i32 %x 1023d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v32f16_x = insertelement <32 x half> undef, half undef, i32 %x 1024d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v64f16_x = insertelement <64 x half> undef, half undef, i32 %x 1025d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f16_x = insertelement <vscale x 2 x half> undef, half undef, i32 %x 1026d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f16_x = insertelement <vscale x 4 x half> undef, half undef, i32 %x 1027d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8f16_x = insertelement <vscale x 8 x half> undef, half undef, i32 %x 1028d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16f16_x = insertelement <vscale x 16 x half> undef, half undef, i32 %x 1029d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv32f16_x = insertelement <vscale x 32 x half> undef, half undef, i32 %x 1030*a6742094SElvis Wang; RV32V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv64f16_x = insertelement <vscale x 64 x half> undef, half undef, i32 %x 1031d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2f32_x = insertelement <2 x float> undef, float undef, i32 %x 1032d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4f32_x = insertelement <4 x float> undef, float undef, i32 %x 1033d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8f32_x = insertelement <8 x float> undef, float undef, i32 %x 1034d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16f32_x = insertelement <16 x float> undef, float undef, i32 %x 1035d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v32f32_x = insertelement <32 x float> undef, float undef, i32 %x 1036d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_x = insertelement <vscale x 2 x float> undef, float undef, i32 %x 1037d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f32_x = insertelement <vscale x 4 x float> undef, float undef, i32 %x 1038d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8f32_x = insertelement <vscale x 8 x float> undef, float undef, i32 %x 1039d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16f32_x = insertelement <vscale x 16 x float> undef, float undef, i32 %x 1040*a6742094SElvis Wang; RV32V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv32f32_x = insertelement <vscale x 32 x float> undef, float undef, i32 %x 1041d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2f64_x = insertelement <2 x double> undef, double undef, i32 %x 1042d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4f64_x = insertelement <4 x double> undef, double undef, i32 %x 1043d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8f64_x = insertelement <8 x double> undef, double undef, i32 %x 1044d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16f64_x = insertelement <16 x double> undef, double undef, i32 %x 1045d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f64_x = insertelement <vscale x 2 x double> undef, double undef, i32 %x 1046d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f64_x = insertelement <vscale x 4 x double> undef, double undef, i32 %x 1047d11cc691Sjacquesguan; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8f64_x = insertelement <vscale x 8 x double> undef, double undef, i32 %x 1048*a6742094SElvis Wang; RV32V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv16f64_x = insertelement <vscale x 16 x double> undef, double undef, i32 %x 10490a5d52a7SSergey Kachkov; RV32V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 10501f7b94e0Sjacquesguan; 1051ecf327f1Sjacquesguan; RV64V-LABEL: 'insertelement_fp' 1052ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2f16_0 = insertelement <2 x half> undef, half undef, i32 0 1053ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4f16_0 = insertelement <4 x half> undef, half undef, i32 0 1054ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8f16_0 = insertelement <8 x half> undef, half undef, i32 0 1055ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16f16_0 = insertelement <16 x half> undef, half undef, i32 0 1056d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32f16_0 = insertelement <32 x half> undef, half undef, i32 0 1057d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v64f16_0 = insertelement <64 x half> undef, half undef, i32 0 1058ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2f16_0 = insertelement <vscale x 2 x half> undef, half undef, i32 0 1059ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4f16_0 = insertelement <vscale x 4 x half> undef, half undef, i32 0 1060ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8f16_0 = insertelement <vscale x 8 x half> undef, half undef, i32 0 1061ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16f16_0 = insertelement <vscale x 16 x half> undef, half undef, i32 0 1062d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv32f16_0 = insertelement <vscale x 32 x half> undef, half undef, i32 0 1063d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv64f16_0 = insertelement <vscale x 64 x half> undef, half undef, i32 0 1064ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2f32_0 = insertelement <2 x float> undef, float undef, i32 0 1065ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4f32_0 = insertelement <4 x float> undef, float undef, i32 0 1066ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8f32_0 = insertelement <8 x float> undef, float undef, i32 0 1067ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16f32_0 = insertelement <16 x float> undef, float undef, i32 0 1068d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32f32_0 = insertelement <32 x float> undef, float undef, i32 0 1069ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2f32_0 = insertelement <vscale x 2 x float> undef, float undef, i32 0 1070ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4f32_0 = insertelement <vscale x 4 x float> undef, float undef, i32 0 1071ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8f32_0 = insertelement <vscale x 8 x float> undef, float undef, i32 0 1072ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16f32_0 = insertelement <vscale x 16 x float> undef, float undef, i32 0 1073d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv32f32_0 = insertelement <vscale x 32 x float> undef, float undef, i32 0 1074ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2f64_0 = insertelement <2 x double> undef, double undef, i32 0 1075ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4f64_0 = insertelement <4 x double> undef, double undef, i32 0 1076ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8f64_0 = insertelement <8 x double> undef, double undef, i32 0 1077d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v16f64_0 = insertelement <16 x double> undef, double undef, i32 0 1078ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2f64_0 = insertelement <vscale x 2 x double> undef, double undef, i32 0 1079ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4f64_0 = insertelement <vscale x 4 x double> undef, double undef, i32 0 1080ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv8f64_0 = insertelement <vscale x 8 x double> undef, double undef, i32 0 1081d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv16f64_0 = insertelement <vscale x 16 x double> undef, double undef, i32 0 1082ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f16_1 = insertelement <2 x half> undef, half undef, i32 1 1083ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f16_1 = insertelement <4 x half> undef, half undef, i32 1 1084ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f16_1 = insertelement <8 x half> undef, half undef, i32 1 1085ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16f16_1 = insertelement <16 x half> undef, half undef, i32 1 1086d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32f16_1 = insertelement <32 x half> undef, half undef, i32 1 1087d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v64f16_1 = insertelement <64 x half> undef, half undef, i32 1 1088ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f16_1 = insertelement <vscale x 2 x half> undef, half undef, i32 1 1089ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f16_1 = insertelement <vscale x 4 x half> undef, half undef, i32 1 1090ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f16_1 = insertelement <vscale x 8 x half> undef, half undef, i32 1 1091ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f16_1 = insertelement <vscale x 16 x half> undef, half undef, i32 1 1092d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv32f16_1 = insertelement <vscale x 32 x half> undef, half undef, i32 1 109359f05b68SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv64f16_1 = insertelement <vscale x 64 x half> undef, half undef, i32 1 1094ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_1 = insertelement <2 x float> undef, float undef, i32 1 1095ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_1 = insertelement <4 x float> undef, float undef, i32 1 1096ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_1 = insertelement <8 x float> undef, float undef, i32 1 1097ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16f32_1 = insertelement <16 x float> undef, float undef, i32 1 1098d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32f32_1 = insertelement <32 x float> undef, float undef, i32 1 1099ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_1 = insertelement <vscale x 2 x float> undef, float undef, i32 1 1100ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_1 = insertelement <vscale x 4 x float> undef, float undef, i32 1 1101ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_1 = insertelement <vscale x 8 x float> undef, float undef, i32 1 1102ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_1 = insertelement <vscale x 16 x float> undef, float undef, i32 1 110359f05b68SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv32f32_1 = insertelement <vscale x 32 x float> undef, float undef, i32 1 1104ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_1 = insertelement <2 x double> undef, double undef, i32 1 1105ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_1 = insertelement <4 x double> undef, double undef, i32 1 1106ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_1 = insertelement <8 x double> undef, double undef, i32 1 1107d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v16f64_1 = insertelement <16 x double> undef, double undef, i32 1 1108ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_1 = insertelement <vscale x 2 x double> undef, double undef, i32 1 1109ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_1 = insertelement <vscale x 4 x double> undef, double undef, i32 1 1110ecf327f1Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_1 = insertelement <vscale x 8 x double> undef, double undef, i32 1 111159f05b68SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_1 = insertelement <vscale x 16 x double> undef, double undef, i32 1 1112d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2f16_x = insertelement <2 x half> undef, half undef, i32 %x 1113d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4f16_x = insertelement <4 x half> undef, half undef, i32 %x 1114d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8f16_x = insertelement <8 x half> undef, half undef, i32 %x 1115d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16f16_x = insertelement <16 x half> undef, half undef, i32 %x 1116d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v32f16_x = insertelement <32 x half> undef, half undef, i32 %x 1117d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v64f16_x = insertelement <64 x half> undef, half undef, i32 %x 1118d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f16_x = insertelement <vscale x 2 x half> undef, half undef, i32 %x 1119d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f16_x = insertelement <vscale x 4 x half> undef, half undef, i32 %x 1120d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8f16_x = insertelement <vscale x 8 x half> undef, half undef, i32 %x 1121d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16f16_x = insertelement <vscale x 16 x half> undef, half undef, i32 %x 1122d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv32f16_x = insertelement <vscale x 32 x half> undef, half undef, i32 %x 1123*a6742094SElvis Wang; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv64f16_x = insertelement <vscale x 64 x half> undef, half undef, i32 %x 1124d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2f32_x = insertelement <2 x float> undef, float undef, i32 %x 1125d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4f32_x = insertelement <4 x float> undef, float undef, i32 %x 1126d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8f32_x = insertelement <8 x float> undef, float undef, i32 %x 1127d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16f32_x = insertelement <16 x float> undef, float undef, i32 %x 1128d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v32f32_x = insertelement <32 x float> undef, float undef, i32 %x 1129d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_x = insertelement <vscale x 2 x float> undef, float undef, i32 %x 1130d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f32_x = insertelement <vscale x 4 x float> undef, float undef, i32 %x 1131d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8f32_x = insertelement <vscale x 8 x float> undef, float undef, i32 %x 1132d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv16f32_x = insertelement <vscale x 16 x float> undef, float undef, i32 %x 1133*a6742094SElvis Wang; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv32f32_x = insertelement <vscale x 32 x float> undef, float undef, i32 %x 1134d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2f64_x = insertelement <2 x double> undef, double undef, i32 %x 1135d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4f64_x = insertelement <4 x double> undef, double undef, i32 %x 1136d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8f64_x = insertelement <8 x double> undef, double undef, i32 %x 1137d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v16f64_x = insertelement <16 x double> undef, double undef, i32 %x 1138d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f64_x = insertelement <vscale x 2 x double> undef, double undef, i32 %x 1139d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f64_x = insertelement <vscale x 4 x double> undef, double undef, i32 %x 1140d11cc691Sjacquesguan; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8f64_x = insertelement <vscale x 8 x double> undef, double undef, i32 %x 1141*a6742094SElvis Wang; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv16f64_x = insertelement <vscale x 16 x double> undef, double undef, i32 %x 11420a5d52a7SSergey Kachkov; RV64V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 11431f7b94e0Sjacquesguan; 11441f7b94e0Sjacquesguan; RV32ZVE64X-LABEL: 'insertelement_fp' 1145ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v2f16_0 = insertelement <2 x half> undef, half undef, i32 0 1146ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v4f16_0 = insertelement <4 x half> undef, half undef, i32 0 1147ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v8f16_0 = insertelement <8 x half> undef, half undef, i32 0 1148ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v16f16_0 = insertelement <16 x half> undef, half undef, i32 0 1149d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v32f16_0 = insertelement <32 x half> undef, half undef, i32 0 1150d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v64f16_0 = insertelement <64 x half> undef, half undef, i32 0 1151ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f16_0 = insertelement <vscale x 2 x half> undef, half undef, i32 0 1152ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f16_0 = insertelement <vscale x 4 x half> undef, half undef, i32 0 1153ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f16_0 = insertelement <vscale x 8 x half> undef, half undef, i32 0 1154ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f16_0 = insertelement <vscale x 16 x half> undef, half undef, i32 0 1155d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv32f16_0 = insertelement <vscale x 32 x half> undef, half undef, i32 0 1156d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv64f16_0 = insertelement <vscale x 64 x half> undef, half undef, i32 0 1157ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v2f32_0 = insertelement <2 x float> undef, float undef, i32 0 1158ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v4f32_0 = insertelement <4 x float> undef, float undef, i32 0 1159ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v8f32_0 = insertelement <8 x float> undef, float undef, i32 0 1160ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v16f32_0 = insertelement <16 x float> undef, float undef, i32 0 1161d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v32f32_0 = insertelement <32 x float> undef, float undef, i32 0 1162ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f32_0 = insertelement <vscale x 2 x float> undef, float undef, i32 0 1163ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f32_0 = insertelement <vscale x 4 x float> undef, float undef, i32 0 1164ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f32_0 = insertelement <vscale x 8 x float> undef, float undef, i32 0 1165ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f32_0 = insertelement <vscale x 16 x float> undef, float undef, i32 0 1166d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv32f32_0 = insertelement <vscale x 32 x float> undef, float undef, i32 0 1167ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v2f64_0 = insertelement <2 x double> undef, double undef, i32 0 1168ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v4f64_0 = insertelement <4 x double> undef, double undef, i32 0 1169ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v8f64_0 = insertelement <8 x double> undef, double undef, i32 0 1170d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v16f64_0 = insertelement <16 x double> undef, double undef, i32 0 1171ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_0 = insertelement <vscale x 2 x double> undef, double undef, i32 0 1172ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_0 = insertelement <vscale x 4 x double> undef, double undef, i32 0 1173ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_0 = insertelement <vscale x 8 x double> undef, double undef, i32 0 1174d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_0 = insertelement <vscale x 16 x double> undef, double undef, i32 0 1175ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v2f16_1 = insertelement <2 x half> undef, half undef, i32 1 1176ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v4f16_1 = insertelement <4 x half> undef, half undef, i32 1 1177ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v8f16_1 = insertelement <8 x half> undef, half undef, i32 1 1178ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v16f16_1 = insertelement <16 x half> undef, half undef, i32 1 1179d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v32f16_1 = insertelement <32 x half> undef, half undef, i32 1 1180d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v64f16_1 = insertelement <64 x half> undef, half undef, i32 1 1181ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f16_1 = insertelement <vscale x 2 x half> undef, half undef, i32 1 1182ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f16_1 = insertelement <vscale x 4 x half> undef, half undef, i32 1 1183ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f16_1 = insertelement <vscale x 8 x half> undef, half undef, i32 1 1184ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f16_1 = insertelement <vscale x 16 x half> undef, half undef, i32 1 1185d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv32f16_1 = insertelement <vscale x 32 x half> undef, half undef, i32 1 1186d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv64f16_1 = insertelement <vscale x 64 x half> undef, half undef, i32 1 1187ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v2f32_1 = insertelement <2 x float> undef, float undef, i32 1 1188ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v4f32_1 = insertelement <4 x float> undef, float undef, i32 1 1189ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v8f32_1 = insertelement <8 x float> undef, float undef, i32 1 1190ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v16f32_1 = insertelement <16 x float> undef, float undef, i32 1 1191d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v32f32_1 = insertelement <32 x float> undef, float undef, i32 1 1192ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f32_1 = insertelement <vscale x 2 x float> undef, float undef, i32 1 1193ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f32_1 = insertelement <vscale x 4 x float> undef, float undef, i32 1 1194ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f32_1 = insertelement <vscale x 8 x float> undef, float undef, i32 1 1195ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f32_1 = insertelement <vscale x 16 x float> undef, float undef, i32 1 1196d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv32f32_1 = insertelement <vscale x 32 x float> undef, float undef, i32 1 1197ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v2f64_1 = insertelement <2 x double> undef, double undef, i32 1 1198ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v4f64_1 = insertelement <4 x double> undef, double undef, i32 1 1199ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v8f64_1 = insertelement <8 x double> undef, double undef, i32 1 1200d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v16f64_1 = insertelement <16 x double> undef, double undef, i32 1 1201ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_1 = insertelement <vscale x 2 x double> undef, double undef, i32 1 1202ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_1 = insertelement <vscale x 4 x double> undef, double undef, i32 1 1203ecf327f1Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_1 = insertelement <vscale x 8 x double> undef, double undef, i32 1 1204d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_1 = insertelement <vscale x 16 x double> undef, double undef, i32 1 12053d7df0a5SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f16_x = insertelement <2 x half> undef, half undef, i32 %x 12063d7df0a5SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f16_x = insertelement <4 x half> undef, half undef, i32 %x 12073d7df0a5SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f16_x = insertelement <8 x half> undef, half undef, i32 %x 12083d7df0a5SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %v16f16_x = insertelement <16 x half> undef, half undef, i32 %x 12093d7df0a5SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 65 for instruction: %v32f16_x = insertelement <32 x half> undef, half undef, i32 %x 12103d7df0a5SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 129 for instruction: %v64f16_x = insertelement <64 x half> undef, half undef, i32 %x 1211d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f16_x = insertelement <vscale x 2 x half> undef, half undef, i32 %x 1212d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f16_x = insertelement <vscale x 4 x half> undef, half undef, i32 %x 1213d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f16_x = insertelement <vscale x 8 x half> undef, half undef, i32 %x 1214d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f16_x = insertelement <vscale x 16 x half> undef, half undef, i32 %x 1215d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv32f16_x = insertelement <vscale x 32 x half> undef, half undef, i32 %x 1216d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv64f16_x = insertelement <vscale x 64 x half> undef, half undef, i32 %x 12173d7df0a5SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_x = insertelement <2 x float> undef, float undef, i32 %x 12183d7df0a5SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_x = insertelement <4 x float> undef, float undef, i32 %x 12193d7df0a5SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f32_x = insertelement <8 x float> undef, float undef, i32 %x 12203d7df0a5SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %v16f32_x = insertelement <16 x float> undef, float undef, i32 %x 12213d7df0a5SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 65 for instruction: %v32f32_x = insertelement <32 x float> undef, float undef, i32 %x 1222d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f32_x = insertelement <vscale x 2 x float> undef, float undef, i32 %x 1223d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f32_x = insertelement <vscale x 4 x float> undef, float undef, i32 %x 1224d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f32_x = insertelement <vscale x 8 x float> undef, float undef, i32 %x 1225d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f32_x = insertelement <vscale x 16 x float> undef, float undef, i32 %x 1226d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv32f32_x = insertelement <vscale x 32 x float> undef, float undef, i32 %x 12273d7df0a5SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f64_x = insertelement <2 x double> undef, double undef, i32 %x 12283d7df0a5SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v4f64_x = insertelement <4 x double> undef, double undef, i32 %x 12293d7df0a5SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %v8f64_x = insertelement <8 x double> undef, double undef, i32 %x 12303d7df0a5SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 66 for instruction: %v16f64_x = insertelement <16 x double> undef, double undef, i32 %x 1231d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_x = insertelement <vscale x 2 x double> undef, double undef, i32 %x 1232d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_x = insertelement <vscale x 4 x double> undef, double undef, i32 %x 1233d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_x = insertelement <vscale x 8 x double> undef, double undef, i32 %x 1234d11cc691Sjacquesguan; RV32ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_x = insertelement <vscale x 16 x double> undef, double undef, i32 %x 12350a5d52a7SSergey Kachkov; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 12361f7b94e0Sjacquesguan; 1237ecf327f1Sjacquesguan; RV64ZVE64X-LABEL: 'insertelement_fp' 1238ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v2f16_0 = insertelement <2 x half> undef, half undef, i32 0 1239ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v4f16_0 = insertelement <4 x half> undef, half undef, i32 0 1240ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v8f16_0 = insertelement <8 x half> undef, half undef, i32 0 1241ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v16f16_0 = insertelement <16 x half> undef, half undef, i32 0 1242d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v32f16_0 = insertelement <32 x half> undef, half undef, i32 0 1243d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v64f16_0 = insertelement <64 x half> undef, half undef, i32 0 1244ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f16_0 = insertelement <vscale x 2 x half> undef, half undef, i32 0 1245ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f16_0 = insertelement <vscale x 4 x half> undef, half undef, i32 0 1246ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f16_0 = insertelement <vscale x 8 x half> undef, half undef, i32 0 1247ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f16_0 = insertelement <vscale x 16 x half> undef, half undef, i32 0 1248d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv32f16_0 = insertelement <vscale x 32 x half> undef, half undef, i32 0 1249d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv64f16_0 = insertelement <vscale x 64 x half> undef, half undef, i32 0 1250ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v2f32_0 = insertelement <2 x float> undef, float undef, i32 0 1251ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v4f32_0 = insertelement <4 x float> undef, float undef, i32 0 1252ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v8f32_0 = insertelement <8 x float> undef, float undef, i32 0 1253ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v16f32_0 = insertelement <16 x float> undef, float undef, i32 0 1254d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v32f32_0 = insertelement <32 x float> undef, float undef, i32 0 1255ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f32_0 = insertelement <vscale x 2 x float> undef, float undef, i32 0 1256ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f32_0 = insertelement <vscale x 4 x float> undef, float undef, i32 0 1257ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f32_0 = insertelement <vscale x 8 x float> undef, float undef, i32 0 1258ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f32_0 = insertelement <vscale x 16 x float> undef, float undef, i32 0 1259d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv32f32_0 = insertelement <vscale x 32 x float> undef, float undef, i32 0 1260ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v2f64_0 = insertelement <2 x double> undef, double undef, i32 0 1261ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v4f64_0 = insertelement <4 x double> undef, double undef, i32 0 1262ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v8f64_0 = insertelement <8 x double> undef, double undef, i32 0 1263d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v16f64_0 = insertelement <16 x double> undef, double undef, i32 0 1264ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_0 = insertelement <vscale x 2 x double> undef, double undef, i32 0 1265ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_0 = insertelement <vscale x 4 x double> undef, double undef, i32 0 1266ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_0 = insertelement <vscale x 8 x double> undef, double undef, i32 0 1267d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_0 = insertelement <vscale x 16 x double> undef, double undef, i32 0 1268ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v2f16_1 = insertelement <2 x half> undef, half undef, i32 1 1269ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v4f16_1 = insertelement <4 x half> undef, half undef, i32 1 1270ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v8f16_1 = insertelement <8 x half> undef, half undef, i32 1 1271ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v16f16_1 = insertelement <16 x half> undef, half undef, i32 1 1272d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v32f16_1 = insertelement <32 x half> undef, half undef, i32 1 1273d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v64f16_1 = insertelement <64 x half> undef, half undef, i32 1 1274ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f16_1 = insertelement <vscale x 2 x half> undef, half undef, i32 1 1275ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f16_1 = insertelement <vscale x 4 x half> undef, half undef, i32 1 1276ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f16_1 = insertelement <vscale x 8 x half> undef, half undef, i32 1 1277ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f16_1 = insertelement <vscale x 16 x half> undef, half undef, i32 1 1278d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv32f16_1 = insertelement <vscale x 32 x half> undef, half undef, i32 1 1279d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv64f16_1 = insertelement <vscale x 64 x half> undef, half undef, i32 1 1280ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v2f32_1 = insertelement <2 x float> undef, float undef, i32 1 1281ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v4f32_1 = insertelement <4 x float> undef, float undef, i32 1 1282ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v8f32_1 = insertelement <8 x float> undef, float undef, i32 1 1283ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v16f32_1 = insertelement <16 x float> undef, float undef, i32 1 1284d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v32f32_1 = insertelement <32 x float> undef, float undef, i32 1 1285ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f32_1 = insertelement <vscale x 2 x float> undef, float undef, i32 1 1286ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f32_1 = insertelement <vscale x 4 x float> undef, float undef, i32 1 1287ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f32_1 = insertelement <vscale x 8 x float> undef, float undef, i32 1 1288ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f32_1 = insertelement <vscale x 16 x float> undef, float undef, i32 1 1289d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv32f32_1 = insertelement <vscale x 32 x float> undef, float undef, i32 1 1290ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v2f64_1 = insertelement <2 x double> undef, double undef, i32 1 1291ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v4f64_1 = insertelement <4 x double> undef, double undef, i32 1 1292ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v8f64_1 = insertelement <8 x double> undef, double undef, i32 1 1293d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v16f64_1 = insertelement <16 x double> undef, double undef, i32 1 1294ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_1 = insertelement <vscale x 2 x double> undef, double undef, i32 1 1295ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_1 = insertelement <vscale x 4 x double> undef, double undef, i32 1 1296ecf327f1Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_1 = insertelement <vscale x 8 x double> undef, double undef, i32 1 1297d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_1 = insertelement <vscale x 16 x double> undef, double undef, i32 1 12983d7df0a5SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f16_x = insertelement <2 x half> undef, half undef, i32 %x 12993d7df0a5SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f16_x = insertelement <4 x half> undef, half undef, i32 %x 13003d7df0a5SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f16_x = insertelement <8 x half> undef, half undef, i32 %x 13013d7df0a5SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %v16f16_x = insertelement <16 x half> undef, half undef, i32 %x 13023d7df0a5SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 65 for instruction: %v32f16_x = insertelement <32 x half> undef, half undef, i32 %x 13033d7df0a5SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 129 for instruction: %v64f16_x = insertelement <64 x half> undef, half undef, i32 %x 1304d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f16_x = insertelement <vscale x 2 x half> undef, half undef, i32 %x 1305d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f16_x = insertelement <vscale x 4 x half> undef, half undef, i32 %x 1306d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f16_x = insertelement <vscale x 8 x half> undef, half undef, i32 %x 1307d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f16_x = insertelement <vscale x 16 x half> undef, half undef, i32 %x 1308d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv32f16_x = insertelement <vscale x 32 x half> undef, half undef, i32 %x 1309d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv64f16_x = insertelement <vscale x 64 x half> undef, half undef, i32 %x 13103d7df0a5SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_x = insertelement <2 x float> undef, float undef, i32 %x 13113d7df0a5SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_x = insertelement <4 x float> undef, float undef, i32 %x 13123d7df0a5SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f32_x = insertelement <8 x float> undef, float undef, i32 %x 13133d7df0a5SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %v16f32_x = insertelement <16 x float> undef, float undef, i32 %x 13143d7df0a5SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 65 for instruction: %v32f32_x = insertelement <32 x float> undef, float undef, i32 %x 1315d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f32_x = insertelement <vscale x 2 x float> undef, float undef, i32 %x 1316d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f32_x = insertelement <vscale x 4 x float> undef, float undef, i32 %x 1317d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f32_x = insertelement <vscale x 8 x float> undef, float undef, i32 %x 1318d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f32_x = insertelement <vscale x 16 x float> undef, float undef, i32 %x 1319d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv32f32_x = insertelement <vscale x 32 x float> undef, float undef, i32 %x 13203d7df0a5SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f64_x = insertelement <2 x double> undef, double undef, i32 %x 13213d7df0a5SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f64_x = insertelement <4 x double> undef, double undef, i32 %x 13223d7df0a5SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f64_x = insertelement <8 x double> undef, double undef, i32 %x 13233d7df0a5SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %v16f64_x = insertelement <16 x double> undef, double undef, i32 %x 1324d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_x = insertelement <vscale x 2 x double> undef, double undef, i32 %x 1325d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_x = insertelement <vscale x 4 x double> undef, double undef, i32 %x 1326d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_x = insertelement <vscale x 8 x double> undef, double undef, i32 %x 1327d11cc691Sjacquesguan; RV64ZVE64X-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_x = insertelement <vscale x 16 x double> undef, double undef, i32 %x 13280a5d52a7SSergey Kachkov; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 1329ecf327f1Sjacquesguan; 13301f7b94e0Sjacquesguan %v2f16_0 = insertelement <2 x half> undef, half undef, i32 0 13311f7b94e0Sjacquesguan %v4f16_0 = insertelement <4 x half> undef, half undef, i32 0 13321f7b94e0Sjacquesguan %v8f16_0 = insertelement <8 x half> undef, half undef, i32 0 13331f7b94e0Sjacquesguan %v16f16_0 = insertelement <16 x half> undef, half undef, i32 0 1334d11cc691Sjacquesguan %v32f16_0 = insertelement <32 x half> undef, half undef, i32 0 1335d11cc691Sjacquesguan %v64f16_0 = insertelement <64 x half> undef, half undef, i32 0 13361f7b94e0Sjacquesguan 13371f7b94e0Sjacquesguan %nxv2f16_0 = insertelement <vscale x 2 x half> undef, half undef, i32 0 13381f7b94e0Sjacquesguan %nxv4f16_0 = insertelement <vscale x 4 x half> undef, half undef, i32 0 13391f7b94e0Sjacquesguan %nxv8f16_0 = insertelement <vscale x 8 x half> undef, half undef, i32 0 13401f7b94e0Sjacquesguan %nxv16f16_0 = insertelement <vscale x 16 x half> undef, half undef, i32 0 1341d11cc691Sjacquesguan %nxv32f16_0 = insertelement <vscale x 32 x half> undef, half undef, i32 0 1342d11cc691Sjacquesguan %nxv64f16_0 = insertelement <vscale x 64 x half> undef, half undef, i32 0 13431f7b94e0Sjacquesguan 13441f7b94e0Sjacquesguan %v2f32_0 = insertelement <2 x float> undef, float undef, i32 0 13451f7b94e0Sjacquesguan %v4f32_0 = insertelement <4 x float> undef, float undef, i32 0 13461f7b94e0Sjacquesguan %v8f32_0 = insertelement <8 x float> undef, float undef, i32 0 13471f7b94e0Sjacquesguan %v16f32_0 = insertelement <16 x float> undef, float undef, i32 0 1348d11cc691Sjacquesguan %v32f32_0 = insertelement <32 x float> undef, float undef, i32 0 13491f7b94e0Sjacquesguan 13501f7b94e0Sjacquesguan %nxv2f32_0 = insertelement <vscale x 2 x float> undef, float undef, i32 0 13511f7b94e0Sjacquesguan %nxv4f32_0 = insertelement <vscale x 4 x float> undef, float undef, i32 0 13521f7b94e0Sjacquesguan %nxv8f32_0 = insertelement <vscale x 8 x float> undef, float undef, i32 0 13531f7b94e0Sjacquesguan %nxv16f32_0 = insertelement <vscale x 16 x float> undef, float undef, i32 0 1354d11cc691Sjacquesguan %nxv32f32_0 = insertelement <vscale x 32 x float> undef, float undef, i32 0 13551f7b94e0Sjacquesguan 13561f7b94e0Sjacquesguan %v2f64_0 = insertelement <2 x double> undef, double undef, i32 0 13571f7b94e0Sjacquesguan %v4f64_0 = insertelement <4 x double> undef, double undef, i32 0 13581f7b94e0Sjacquesguan %v8f64_0 = insertelement <8 x double> undef, double undef, i32 0 1359d11cc691Sjacquesguan %v16f64_0 = insertelement <16 x double> undef, double undef, i32 0 13601f7b94e0Sjacquesguan 13611f7b94e0Sjacquesguan %nxv2f64_0 = insertelement <vscale x 2 x double> undef, double undef, i32 0 13621f7b94e0Sjacquesguan %nxv4f64_0 = insertelement <vscale x 4 x double> undef, double undef, i32 0 13631f7b94e0Sjacquesguan %nxv8f64_0 = insertelement <vscale x 8 x double> undef, double undef, i32 0 1364d11cc691Sjacquesguan %nxv16f64_0 = insertelement <vscale x 16 x double> undef, double undef, i32 0 13651f7b94e0Sjacquesguan 13661f7b94e0Sjacquesguan %v2f16_1 = insertelement <2 x half> undef, half undef, i32 1 13671f7b94e0Sjacquesguan %v4f16_1 = insertelement <4 x half> undef, half undef, i32 1 13681f7b94e0Sjacquesguan %v8f16_1 = insertelement <8 x half> undef, half undef, i32 1 13691f7b94e0Sjacquesguan %v16f16_1 = insertelement <16 x half> undef, half undef, i32 1 1370d11cc691Sjacquesguan %v32f16_1 = insertelement <32 x half> undef, half undef, i32 1 1371d11cc691Sjacquesguan %v64f16_1 = insertelement <64 x half> undef, half undef, i32 1 13721f7b94e0Sjacquesguan 13731f7b94e0Sjacquesguan %nxv2f16_1 = insertelement <vscale x 2 x half> undef, half undef, i32 1 13741f7b94e0Sjacquesguan %nxv4f16_1 = insertelement <vscale x 4 x half> undef, half undef, i32 1 13751f7b94e0Sjacquesguan %nxv8f16_1 = insertelement <vscale x 8 x half> undef, half undef, i32 1 13761f7b94e0Sjacquesguan %nxv16f16_1 = insertelement <vscale x 16 x half> undef, half undef, i32 1 1377d11cc691Sjacquesguan %nxv32f16_1 = insertelement <vscale x 32 x half> undef, half undef, i32 1 1378d11cc691Sjacquesguan %nxv64f16_1 = insertelement <vscale x 64 x half> undef, half undef, i32 1 13791f7b94e0Sjacquesguan 13801f7b94e0Sjacquesguan %v2f32_1 = insertelement <2 x float> undef, float undef, i32 1 13811f7b94e0Sjacquesguan %v4f32_1 = insertelement <4 x float> undef, float undef, i32 1 13821f7b94e0Sjacquesguan %v8f32_1 = insertelement <8 x float> undef, float undef, i32 1 13831f7b94e0Sjacquesguan %v16f32_1 = insertelement <16 x float> undef, float undef, i32 1 1384d11cc691Sjacquesguan %v32f32_1 = insertelement <32 x float> undef, float undef, i32 1 13851f7b94e0Sjacquesguan 13861f7b94e0Sjacquesguan %nxv2f32_1 = insertelement <vscale x 2 x float> undef, float undef, i32 1 13871f7b94e0Sjacquesguan %nxv4f32_1 = insertelement <vscale x 4 x float> undef, float undef, i32 1 13881f7b94e0Sjacquesguan %nxv8f32_1 = insertelement <vscale x 8 x float> undef, float undef, i32 1 13891f7b94e0Sjacquesguan %nxv16f32_1 = insertelement <vscale x 16 x float> undef, float undef, i32 1 1390d11cc691Sjacquesguan %nxv32f32_1 = insertelement <vscale x 32 x float> undef, float undef, i32 1 13911f7b94e0Sjacquesguan 13921f7b94e0Sjacquesguan %v2f64_1 = insertelement <2 x double> undef, double undef, i32 1 13931f7b94e0Sjacquesguan %v4f64_1 = insertelement <4 x double> undef, double undef, i32 1 13941f7b94e0Sjacquesguan %v8f64_1 = insertelement <8 x double> undef, double undef, i32 1 1395d11cc691Sjacquesguan %v16f64_1 = insertelement <16 x double> undef, double undef, i32 1 13961f7b94e0Sjacquesguan 13971f7b94e0Sjacquesguan %nxv2f64_1 = insertelement <vscale x 2 x double> undef, double undef, i32 1 13981f7b94e0Sjacquesguan %nxv4f64_1 = insertelement <vscale x 4 x double> undef, double undef, i32 1 13991f7b94e0Sjacquesguan %nxv8f64_1 = insertelement <vscale x 8 x double> undef, double undef, i32 1 1400d11cc691Sjacquesguan %nxv16f64_1 = insertelement <vscale x 16 x double> undef, double undef, i32 1 1401d11cc691Sjacquesguan 1402d11cc691Sjacquesguan %v2f16_x = insertelement <2 x half> undef, half undef, i32 %x 1403d11cc691Sjacquesguan %v4f16_x = insertelement <4 x half> undef, half undef, i32 %x 1404d11cc691Sjacquesguan %v8f16_x = insertelement <8 x half> undef, half undef, i32 %x 1405d11cc691Sjacquesguan %v16f16_x = insertelement <16 x half> undef, half undef, i32 %x 1406d11cc691Sjacquesguan %v32f16_x = insertelement <32 x half> undef, half undef, i32 %x 1407d11cc691Sjacquesguan %v64f16_x = insertelement <64 x half> undef, half undef, i32 %x 1408d11cc691Sjacquesguan 1409d11cc691Sjacquesguan %nxv2f16_x = insertelement <vscale x 2 x half> undef, half undef, i32 %x 1410d11cc691Sjacquesguan %nxv4f16_x = insertelement <vscale x 4 x half> undef, half undef, i32 %x 1411d11cc691Sjacquesguan %nxv8f16_x = insertelement <vscale x 8 x half> undef, half undef, i32 %x 1412d11cc691Sjacquesguan %nxv16f16_x = insertelement <vscale x 16 x half> undef, half undef, i32 %x 1413d11cc691Sjacquesguan %nxv32f16_x = insertelement <vscale x 32 x half> undef, half undef, i32 %x 1414d11cc691Sjacquesguan %nxv64f16_x = insertelement <vscale x 64 x half> undef, half undef, i32 %x 1415d11cc691Sjacquesguan 1416d11cc691Sjacquesguan %v2f32_x = insertelement <2 x float> undef, float undef, i32 %x 1417d11cc691Sjacquesguan %v4f32_x = insertelement <4 x float> undef, float undef, i32 %x 1418d11cc691Sjacquesguan %v8f32_x = insertelement <8 x float> undef, float undef, i32 %x 1419d11cc691Sjacquesguan %v16f32_x = insertelement <16 x float> undef, float undef, i32 %x 1420d11cc691Sjacquesguan %v32f32_x = insertelement <32 x float> undef, float undef, i32 %x 1421d11cc691Sjacquesguan 1422d11cc691Sjacquesguan %nxv2f32_x = insertelement <vscale x 2 x float> undef, float undef, i32 %x 1423d11cc691Sjacquesguan %nxv4f32_x = insertelement <vscale x 4 x float> undef, float undef, i32 %x 1424d11cc691Sjacquesguan %nxv8f32_x = insertelement <vscale x 8 x float> undef, float undef, i32 %x 1425d11cc691Sjacquesguan %nxv16f32_x = insertelement <vscale x 16 x float> undef, float undef, i32 %x 1426d11cc691Sjacquesguan %nxv32f32_x = insertelement <vscale x 32 x float> undef, float undef, i32 %x 1427d11cc691Sjacquesguan 1428d11cc691Sjacquesguan %v2f64_x = insertelement <2 x double> undef, double undef, i32 %x 1429d11cc691Sjacquesguan %v4f64_x = insertelement <4 x double> undef, double undef, i32 %x 1430d11cc691Sjacquesguan %v8f64_x = insertelement <8 x double> undef, double undef, i32 %x 1431d11cc691Sjacquesguan %v16f64_x = insertelement <16 x double> undef, double undef, i32 %x 1432d11cc691Sjacquesguan 1433d11cc691Sjacquesguan %nxv2f64_x = insertelement <vscale x 2 x double> undef, double undef, i32 %x 1434d11cc691Sjacquesguan %nxv4f64_x = insertelement <vscale x 4 x double> undef, double undef, i32 %x 1435d11cc691Sjacquesguan %nxv8f64_x = insertelement <vscale x 8 x double> undef, double undef, i32 %x 1436d11cc691Sjacquesguan %nxv16f64_x = insertelement <vscale x 16 x double> undef, double undef, i32 %x 14371f7b94e0Sjacquesguan 14381f7b94e0Sjacquesguan ret void 14391f7b94e0Sjacquesguan} 1440c43190f9SPhilip Reames 1441c43190f9SPhilip Reames 1442c43190f9SPhilip Reamesdefine void @insertelement_int_nonpoweroftwo(i32 %x) { 1443c43190f9SPhilip Reames; RV32V-LABEL: 'insertelement_int_nonpoweroftwo' 144459f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v3i8 = insertelement <3 x i8> undef, i8 undef, i32 %x 144559f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v7i8 = insertelement <7 x i8> undef, i8 undef, i32 %x 144659f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v15i8 = insertelement <15 x i8> undef, i8 undef, i32 %x 1447c43190f9SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v3i32_0 = insertelement <3 x i32> undef, i32 undef, i32 0 144859f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v3i32 = insertelement <3 x i32> undef, i32 undef, i32 %x 144959f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v7i32 = insertelement <7 x i32> undef, i32 undef, i32 %x 145059f05b68SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v15i32 = insertelement <15 x i32> undef, i32 undef, i32 %x 1451c43190f9SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 1452c43190f9SPhilip Reames; 1453c43190f9SPhilip Reames; RV64V-LABEL: 'insertelement_int_nonpoweroftwo' 145459f05b68SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v3i8 = insertelement <3 x i8> undef, i8 undef, i32 %x 145559f05b68SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v7i8 = insertelement <7 x i8> undef, i8 undef, i32 %x 145659f05b68SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v15i8 = insertelement <15 x i8> undef, i8 undef, i32 %x 1457c43190f9SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v3i32_0 = insertelement <3 x i32> undef, i32 undef, i32 0 145859f05b68SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v3i32 = insertelement <3 x i32> undef, i32 undef, i32 %x 145959f05b68SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v7i32 = insertelement <7 x i32> undef, i32 undef, i32 %x 146059f05b68SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v15i32 = insertelement <15 x i32> undef, i32 undef, i32 %x 1461c43190f9SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 1462c43190f9SPhilip Reames; 1463c43190f9SPhilip Reames; RV32ZVE64X-LABEL: 'insertelement_int_nonpoweroftwo' 146459f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v3i8 = insertelement <3 x i8> undef, i8 undef, i32 %x 146559f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v7i8 = insertelement <7 x i8> undef, i8 undef, i32 %x 146659f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v15i8 = insertelement <15 x i8> undef, i8 undef, i32 %x 1467c43190f9SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v3i32_0 = insertelement <3 x i32> undef, i32 undef, i32 0 146859f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v3i32 = insertelement <3 x i32> undef, i32 undef, i32 %x 146959f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v7i32 = insertelement <7 x i32> undef, i32 undef, i32 %x 147059f05b68SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v15i32 = insertelement <15 x i32> undef, i32 undef, i32 %x 1471c43190f9SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 1472c43190f9SPhilip Reames; 1473c43190f9SPhilip Reames; RV64ZVE64X-LABEL: 'insertelement_int_nonpoweroftwo' 147459f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v3i8 = insertelement <3 x i8> undef, i8 undef, i32 %x 147559f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v7i8 = insertelement <7 x i8> undef, i8 undef, i32 %x 147659f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v15i8 = insertelement <15 x i8> undef, i8 undef, i32 %x 1477c43190f9SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v3i32_0 = insertelement <3 x i32> undef, i32 undef, i32 0 147859f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v3i32 = insertelement <3 x i32> undef, i32 undef, i32 %x 147959f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v7i32 = insertelement <7 x i32> undef, i32 undef, i32 %x 148059f05b68SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v15i32 = insertelement <15 x i32> undef, i32 undef, i32 %x 1481c43190f9SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 1482c43190f9SPhilip Reames; 1483c43190f9SPhilip Reames %v3i8 = insertelement <3 x i8> undef, i8 undef, i32 %x 1484c43190f9SPhilip Reames %v7i8 = insertelement <7 x i8> undef, i8 undef, i32 %x 1485c43190f9SPhilip Reames %v15i8 = insertelement <15 x i8> undef, i8 undef, i32 %x 1486c43190f9SPhilip Reames 1487c43190f9SPhilip Reames %v3i32_0 = insertelement <3 x i32> undef, i32 undef, i32 0 1488c43190f9SPhilip Reames %v3i32 = insertelement <3 x i32> undef, i32 undef, i32 %x 1489c43190f9SPhilip Reames %v7i32 = insertelement <7 x i32> undef, i32 undef, i32 %x 1490c43190f9SPhilip Reames %v15i32 = insertelement <15 x i32> undef, i32 undef, i32 %x 1491c43190f9SPhilip Reames 1492c43190f9SPhilip Reames ret void 1493c43190f9SPhilip Reames} 14942e7c7d20SPhilip Reames 14952e7c7d20SPhilip Reamesdefine void @insertelement_vls(i32 %x) vscale_range(2,2) { 14962e7c7d20SPhilip Reames; RV32V-LABEL: 'insertelement_vls' 14972e7c7d20SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_0 = insertelement <32 x i32> undef, i32 undef, i32 0 14982e7c7d20SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_4 = insertelement <32 x i32> undef, i32 undef, i32 4 14992e7c7d20SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_5 = insertelement <32 x i32> undef, i32 undef, i32 5 15002e7c7d20SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_8 = insertelement <32 x i32> undef, i32 undef, i32 8 15012e7c7d20SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_9 = insertelement <32 x i32> undef, i32 undef, i32 9 15022e7c7d20SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_11 = insertelement <32 x i32> undef, i32 undef, i32 11 15032e7c7d20SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_12 = insertelement <32 x i32> undef, i32 undef, i32 12 15042e7c7d20SPhilip Reames; RV32V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 15052e7c7d20SPhilip Reames; 15062e7c7d20SPhilip Reames; RV64V-LABEL: 'insertelement_vls' 15072e7c7d20SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_0 = insertelement <32 x i32> undef, i32 undef, i32 0 15082e7c7d20SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_4 = insertelement <32 x i32> undef, i32 undef, i32 4 15092e7c7d20SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_5 = insertelement <32 x i32> undef, i32 undef, i32 5 15102e7c7d20SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_8 = insertelement <32 x i32> undef, i32 undef, i32 8 15112e7c7d20SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_9 = insertelement <32 x i32> undef, i32 undef, i32 9 15122e7c7d20SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_11 = insertelement <32 x i32> undef, i32 undef, i32 11 15132e7c7d20SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_12 = insertelement <32 x i32> undef, i32 undef, i32 12 15142e7c7d20SPhilip Reames; RV64V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 15152e7c7d20SPhilip Reames; 15162e7c7d20SPhilip Reames; RV32ZVE64X-LABEL: 'insertelement_vls' 15172e7c7d20SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_0 = insertelement <32 x i32> undef, i32 undef, i32 0 15182e7c7d20SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_4 = insertelement <32 x i32> undef, i32 undef, i32 4 15192e7c7d20SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_5 = insertelement <32 x i32> undef, i32 undef, i32 5 15202e7c7d20SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_8 = insertelement <32 x i32> undef, i32 undef, i32 8 15212e7c7d20SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_9 = insertelement <32 x i32> undef, i32 undef, i32 9 15222e7c7d20SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_11 = insertelement <32 x i32> undef, i32 undef, i32 11 15232e7c7d20SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_12 = insertelement <32 x i32> undef, i32 undef, i32 12 15242e7c7d20SPhilip Reames; RV32ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 15252e7c7d20SPhilip Reames; 15262e7c7d20SPhilip Reames; RV64ZVE64X-LABEL: 'insertelement_vls' 15272e7c7d20SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_0 = insertelement <32 x i32> undef, i32 undef, i32 0 15282e7c7d20SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_4 = insertelement <32 x i32> undef, i32 undef, i32 4 15292e7c7d20SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_5 = insertelement <32 x i32> undef, i32 undef, i32 5 15302e7c7d20SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_8 = insertelement <32 x i32> undef, i32 undef, i32 8 15312e7c7d20SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_9 = insertelement <32 x i32> undef, i32 undef, i32 9 15322e7c7d20SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v32i32_11 = insertelement <32 x i32> undef, i32 undef, i32 11 15332e7c7d20SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v32i32_12 = insertelement <32 x i32> undef, i32 undef, i32 12 15342e7c7d20SPhilip Reames; RV64ZVE64X-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void 15352e7c7d20SPhilip Reames; 15362e7c7d20SPhilip Reames %v32i32_0 = insertelement <32 x i32> undef, i32 undef, i32 0 15372e7c7d20SPhilip Reames %v32i32_4 = insertelement <32 x i32> undef, i32 undef, i32 4 15382e7c7d20SPhilip Reames %v32i32_5 = insertelement <32 x i32> undef, i32 undef, i32 5 15392e7c7d20SPhilip Reames %v32i32_8 = insertelement <32 x i32> undef, i32 undef, i32 8 15402e7c7d20SPhilip Reames %v32i32_9 = insertelement <32 x i32> undef, i32 undef, i32 9 15412e7c7d20SPhilip Reames %v32i32_11 = insertelement <32 x i32> undef, i32 undef, i32 11 15422e7c7d20SPhilip Reames %v32i32_12 = insertelement <32 x i32> undef, i32 undef, i32 12 15432e7c7d20SPhilip Reames 15442e7c7d20SPhilip Reames ret void 15452e7c7d20SPhilip Reames} 1546