brintos

brintos / llvm-project-archived public Read only

0
0
Text · 44.1 KiB · dcbe239 Raw
799 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 52; RUN: opt < %s -mtriple=aarch64--linux-gnu -passes="print<cost-model>" -cost-kind=all 2>&1 -disable-output | FileCheck %s --check-prefixes=COST,COST-NOFP163; RUN: opt < %s -mtriple=aarch64--linux-gnu -passes="print<cost-model>" -cost-kind=all 2>&1 -disable-output -mattr=+fullfp16 | FileCheck %s --check-prefixes=COST,COST-FULLFP164 5target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"6 7define <8 x i8> @v8i8_select_eq(<8 x i8> %a, <8 x i8> %b, <8 x i8> %c) {8; COST-LABEL: 'v8i8_select_eq'9; COST-NEXT:  Cost Model: Found costs of 1 for: %cmp.1 = icmp eq <8 x i8> %a, %b10; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <8 x i1> %cmp.1, <8 x i8> %a, <8 x i8> %c11; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x i8> %s.112;13  %cmp.1 = icmp eq <8 x i8> %a, %b14  %s.1 = select <8 x i1> %cmp.1, <8 x i8> %a, <8 x i8> %c15  ret <8 x i8> %s.116}17 18define <16 x i8> @v16i8_select_sgt(<16 x i8> %a, <16 x i8> %b, <16 x i8> %c) {19; COST-LABEL: 'v16i8_select_sgt'20; COST-NEXT:  Cost Model: Found costs of 1 for: %cmp.1 = icmp sgt <16 x i8> %a, %b21; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <16 x i1> %cmp.1, <16 x i8> %a, <16 x i8> %c22; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <16 x i8> %s.123;24  %cmp.1 = icmp sgt <16 x i8> %a, %b25  %s.1 = select <16 x i1> %cmp.1, <16 x i8> %a, <16 x i8> %c26  ret <16 x i8> %s.127}28 29define <4 x i16> @v4i16_select_ne(<4 x i16> %a, <4 x i16> %b, <4 x i16> %c) {30; COST-LABEL: 'v4i16_select_ne'31; COST-NEXT:  Cost Model: Found costs of 1 for: %cmp.1 = icmp ne <4 x i16> %a, %b32; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <4 x i1> %cmp.1, <4 x i16> %a, <4 x i16> %c33; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i16> %s.134;35  %cmp.1 = icmp ne <4 x i16> %a, %b36  %s.1 = select <4 x i1> %cmp.1, <4 x i16> %a, <4 x i16> %c37  ret <4 x i16> %s.138}39 40define <8 x i16> @v8i16_select_ugt(<8 x i16> %a, <8 x i16> %b, <8 x i16> %c) {41; COST-LABEL: 'v8i16_select_ugt'42; COST-NEXT:  Cost Model: Found costs of 1 for: %cmp.1 = icmp ugt <8 x i16> %a, %b43; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <8 x i1> %cmp.1, <8 x i16> %a, <8 x i16> %c44; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x i16> %s.145;46  %cmp.1 = icmp ugt <8 x i16> %a, %b47  %s.1 = select <8 x i1> %cmp.1, <8 x i16> %a, <8 x i16> %c48  ret <8 x i16> %s.149}50 51define <2 x i32> @v2i32_select_ule(<2 x i32> %a, <2 x i32> %b, <2 x i32> %c) {52; COST-LABEL: 'v2i32_select_ule'53; COST-NEXT:  Cost Model: Found costs of 1 for: %cmp.1 = icmp ule <2 x i32> %a, %b54; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <2 x i1> %cmp.1, <2 x i32> %a, <2 x i32> %c55; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x i32> %s.156;57  %cmp.1 = icmp ule <2 x i32> %a, %b58  %s.1 = select <2 x i1> %cmp.1, <2 x i32> %a, <2 x i32> %c59  ret <2 x i32> %s.160}61 62define <4 x i32> @v4i32_select_ult(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c) {63; COST-LABEL: 'v4i32_select_ult'64; COST-NEXT:  Cost Model: Found costs of 1 for: %cmp.1 = icmp ult <4 x i32> %a, %b65; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <4 x i1> %cmp.1, <4 x i32> %a, <4 x i32> %c66; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x i32> %s.167;68  %cmp.1 = icmp ult <4 x i32> %a, %b69  %s.1 = select <4 x i1> %cmp.1, <4 x i32> %a, <4 x i32> %c70  ret <4 x i32> %s.171}72 73define <2 x i64> @v2i64_select_sle(<2 x i64> %a, <2 x i64> %b, <2 x i64> %c) {74; COST-LABEL: 'v2i64_select_sle'75; COST-NEXT:  Cost Model: Found costs of 1 for: %cmp.1 = icmp sle <2 x i64> %a, %b76; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <2 x i1> %cmp.1, <2 x i64> %a, <2 x i64> %c77; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x i64> %s.178;79  %cmp.1 = icmp sle <2 x i64> %a, %b80  %s.1 = select <2 x i1> %cmp.1, <2 x i64> %a, <2 x i64> %c81  ret <2 x i64> %s.182}83 84define <3 x i64> @v3i64_select_sle(<3 x i64> %a, <3 x i64> %b, <3 x i64> %c) {85; COST-LABEL: 'v3i64_select_sle'86; COST-NEXT:  Cost Model: Found costs of 2 for: %cmp.1 = icmp sle <3 x i64> %a, %b87; COST-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <3 x i1> %cmp.1, <3 x i64> %a, <3 x i64> %c88; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <3 x i64> %s.189;90  %cmp.1 = icmp sle <3 x i64> %a, %b91  %s.1 = select <3 x i1> %cmp.1, <3 x i64> %a, <3 x i64> %c92  ret <3 x i64> %s.193}94 95define <2 x i64> @v2i64_select_no_cmp(<2 x i64> %a, <2 x i64> %b, <2 x i1> %cond) {96; COST-LABEL: 'v2i64_select_no_cmp'97; COST-NEXT:  Cost Model: Found costs of RThru:6 CodeSize:4 Lat:6 SizeLat:6 for: %s.1 = select <2 x i1> %cond, <2 x i64> %a, <2 x i64> %b98; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x i64> %s.199;100  %s.1 = select <2 x i1> %cond, <2 x i64> %a, <2 x i64> %b101  ret <2 x i64> %s.1102}103 104define <4 x half> @v4f16_select_ogt(<4 x half> %a, <4 x half> %b, <4 x half> %c) {105; COST-NOFP16-LABEL: 'v4f16_select_ogt'106; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:4 CodeSize:4 Lat:5 SizeLat:4 for: %cmp.1 = fcmp ogt <4 x half> %a, %b107; COST-NOFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c108; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x half> %s.1109;110; COST-FULLFP16-LABEL: 'v4f16_select_ogt'111; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp ogt <4 x half> %a, %b112; COST-FULLFP16-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c113; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x half> %s.1114;115  %cmp.1 = fcmp ogt <4 x half> %a, %b116  %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c117  ret <4 x half> %s.1118}119 120define <8 x half> @v8f16_select_ogt(<8 x half> %a, <8 x half> %b, <8 x half> %c) {121; COST-NOFP16-LABEL: 'v8f16_select_ogt'122; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:7 CodeSize:5 Lat:5 SizeLat:5 for: %cmp.1 = fcmp ogt <8 x half> %a, %b123; COST-NOFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c124; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x half> %s.1125;126; COST-FULLFP16-LABEL: 'v8f16_select_ogt'127; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp ogt <8 x half> %a, %b128; COST-FULLFP16-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c129; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x half> %s.1130;131  %cmp.1 = fcmp ogt <8 x half> %a, %b132  %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c133  ret <8 x half> %s.1134}135 136define <2 x float> @v2f32_select_ogt(<2 x float> %a, <2 x float> %b, <2 x float> %c) {137; COST-LABEL: 'v2f32_select_ogt'138; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp ogt <2 x float> %a, %b139; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <2 x i1> %cmp.1, <2 x float> %a, <2 x float> %c140; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x float> %s.1141;142  %cmp.1 = fcmp ogt <2 x float> %a, %b143  %s.1 = select <2 x i1> %cmp.1, <2 x float> %a, <2 x float> %c144  ret <2 x float> %s.1145}146 147define <4 x float> @v4f32_select_ogt(<4 x float> %a, <4 x float> %b, <4 x float> %c) {148; COST-LABEL: 'v4f32_select_ogt'149; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp ogt <4 x float> %a, %b150; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <4 x i1> %cmp.1, <4 x float> %a, <4 x float> %c151; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x float> %s.1152;153  %cmp.1 = fcmp ogt <4 x float> %a, %b154  %s.1 = select <4 x i1> %cmp.1, <4 x float> %a, <4 x float> %c155  ret <4 x float> %s.1156}157 158define <2 x double> @v2f64_select_ogt(<2 x double> %a, <2 x double> %b, <2 x double> %c) {159; COST-LABEL: 'v2f64_select_ogt'160; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp ogt <2 x double> %a, %b161; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <2 x i1> %cmp.1, <2 x double> %a, <2 x double> %c162; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x double> %s.1163;164  %cmp.1 = fcmp ogt <2 x double> %a, %b165  %s.1 = select <2 x i1> %cmp.1, <2 x double> %a, <2 x double> %c166  ret <2 x double> %s.1167}168 169define <4 x bfloat> @v4bf16_select_ogt(<4 x bfloat> %a, <4 x bfloat> %b, <4 x bfloat> %c) {170; COST-LABEL: 'v4bf16_select_ogt'171; COST-NEXT:  Cost Model: Found costs of RThru:4 CodeSize:4 Lat:5 SizeLat:4 for: %cmp.1 = fcmp ogt <4 x bfloat> %a, %b172; COST-NEXT:  Cost Model: Found costs of RThru:10 CodeSize:7 Lat:10 SizeLat:10 for: %s.1 = select <4 x i1> %cmp.1, <4 x bfloat> %a, <4 x bfloat> %c173; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x bfloat> %s.1174;175  %cmp.1 = fcmp ogt <4 x bfloat> %a, %b176  %s.1 = select <4 x i1> %cmp.1, <4 x bfloat> %a, <4 x bfloat> %c177  ret <4 x bfloat> %s.1178}179 180define <8 x bfloat> @v8bf16_select_ogt(<8 x bfloat> %a, <8 x bfloat> %b, <8 x bfloat> %c) {181; COST-LABEL: 'v8bf16_select_ogt'182; COST-NEXT:  Cost Model: Found costs of RThru:7 CodeSize:5 Lat:5 SizeLat:5 for: %cmp.1 = fcmp ogt <8 x bfloat> %a, %b183; COST-NEXT:  Cost Model: Found costs of RThru:22 CodeSize:15 Lat:22 SizeLat:22 for: %s.1 = select <8 x i1> %cmp.1, <8 x bfloat> %a, <8 x bfloat> %c184; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x bfloat> %s.1185;186  %cmp.1 = fcmp ogt <8 x bfloat> %a, %b187  %s.1 = select <8 x i1> %cmp.1, <8 x bfloat> %a, <8 x bfloat> %c188  ret <8 x bfloat> %s.1189}190 191define <4 x half> @v4f16_select_oge(<4 x half> %a, <4 x half> %b, <4 x half> %c) {192; COST-NOFP16-LABEL: 'v4f16_select_oge'193; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:4 CodeSize:4 Lat:5 SizeLat:4 for: %cmp.1 = fcmp oge <4 x half> %a, %b194; COST-NOFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c195; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x half> %s.1196;197; COST-FULLFP16-LABEL: 'v4f16_select_oge'198; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp oge <4 x half> %a, %b199; COST-FULLFP16-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c200; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x half> %s.1201;202  %cmp.1 = fcmp oge <4 x half> %a, %b203  %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c204  ret <4 x half> %s.1205}206 207define <8 x half> @v8f16_select_oge(<8 x half> %a, <8 x half> %b, <8 x half> %c) {208; COST-NOFP16-LABEL: 'v8f16_select_oge'209; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:7 CodeSize:5 Lat:5 SizeLat:5 for: %cmp.1 = fcmp oge <8 x half> %a, %b210; COST-NOFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c211; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x half> %s.1212;213; COST-FULLFP16-LABEL: 'v8f16_select_oge'214; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp oge <8 x half> %a, %b215; COST-FULLFP16-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c216; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x half> %s.1217;218  %cmp.1 = fcmp oge <8 x half> %a, %b219  %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c220  ret <8 x half> %s.1221}222 223define <2 x float> @v2f32_select_oge(<2 x float> %a, <2 x float> %b, <2 x float> %c) {224; COST-LABEL: 'v2f32_select_oge'225; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp oge <2 x float> %a, %b226; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <2 x i1> %cmp.1, <2 x float> %a, <2 x float> %c227; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x float> %s.1228;229  %cmp.1 = fcmp oge <2 x float> %a, %b230  %s.1 = select <2 x i1> %cmp.1, <2 x float> %a, <2 x float> %c231  ret <2 x float> %s.1232}233 234define <4 x float> @v4f32_select_oge(<4 x float> %a, <4 x float> %b, <4 x float> %c) {235; COST-LABEL: 'v4f32_select_oge'236; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp oge <4 x float> %a, %b237; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <4 x i1> %cmp.1, <4 x float> %a, <4 x float> %c238; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x float> %s.1239;240  %cmp.1 = fcmp oge <4 x float> %a, %b241  %s.1 = select <4 x i1> %cmp.1, <4 x float> %a, <4 x float> %c242  ret <4 x float> %s.1243}244 245define <2 x double> @v2f64_select_oge(<2 x double> %a, <2 x double> %b, <2 x double> %c) {246; COST-LABEL: 'v2f64_select_oge'247; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp oge <2 x double> %a, %b248; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <2 x i1> %cmp.1, <2 x double> %a, <2 x double> %c249; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x double> %s.1250;251  %cmp.1 = fcmp oge <2 x double> %a, %b252  %s.1 = select <2 x i1> %cmp.1, <2 x double> %a, <2 x double> %c253  ret <2 x double> %s.1254}255 256define <4 x bfloat> @v4bf16_select_oge(<4 x bfloat> %a, <4 x bfloat> %b, <4 x bfloat> %c) {257; COST-LABEL: 'v4bf16_select_oge'258; COST-NEXT:  Cost Model: Found costs of RThru:4 CodeSize:4 Lat:5 SizeLat:4 for: %cmp.1 = fcmp oge <4 x bfloat> %a, %b259; COST-NEXT:  Cost Model: Found costs of RThru:10 CodeSize:7 Lat:10 SizeLat:10 for: %s.1 = select <4 x i1> %cmp.1, <4 x bfloat> %a, <4 x bfloat> %c260; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x bfloat> %s.1261;262  %cmp.1 = fcmp oge <4 x bfloat> %a, %b263  %s.1 = select <4 x i1> %cmp.1, <4 x bfloat> %a, <4 x bfloat> %c264  ret <4 x bfloat> %s.1265}266 267define <8 x bfloat> @v8bf16_select_oge(<8 x bfloat> %a, <8 x bfloat> %b, <8 x bfloat> %c) {268; COST-LABEL: 'v8bf16_select_oge'269; COST-NEXT:  Cost Model: Found costs of RThru:7 CodeSize:5 Lat:5 SizeLat:5 for: %cmp.1 = fcmp oge <8 x bfloat> %a, %b270; COST-NEXT:  Cost Model: Found costs of RThru:22 CodeSize:15 Lat:22 SizeLat:22 for: %s.1 = select <8 x i1> %cmp.1, <8 x bfloat> %a, <8 x bfloat> %c271; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x bfloat> %s.1272;273  %cmp.1 = fcmp oge <8 x bfloat> %a, %b274  %s.1 = select <8 x i1> %cmp.1, <8 x bfloat> %a, <8 x bfloat> %c275  ret <8 x bfloat> %s.1276}277 278define <4 x half> @v4f16_select_olt(<4 x half> %a, <4 x half> %b, <4 x half> %c) {279; COST-NOFP16-LABEL: 'v4f16_select_olt'280; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:4 CodeSize:4 Lat:5 SizeLat:4 for: %cmp.1 = fcmp olt <4 x half> %a, %b281; COST-NOFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c282; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x half> %s.1283;284; COST-FULLFP16-LABEL: 'v4f16_select_olt'285; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp olt <4 x half> %a, %b286; COST-FULLFP16-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c287; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x half> %s.1288;289  %cmp.1 = fcmp olt <4 x half> %a, %b290  %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c291  ret <4 x half> %s.1292}293 294define <8 x half> @v8f16_select_olt(<8 x half> %a, <8 x half> %b, <8 x half> %c) {295; COST-NOFP16-LABEL: 'v8f16_select_olt'296; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:7 CodeSize:5 Lat:5 SizeLat:5 for: %cmp.1 = fcmp olt <8 x half> %a, %b297; COST-NOFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c298; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x half> %s.1299;300; COST-FULLFP16-LABEL: 'v8f16_select_olt'301; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp olt <8 x half> %a, %b302; COST-FULLFP16-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c303; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x half> %s.1304;305  %cmp.1 = fcmp olt <8 x half> %a, %b306  %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c307  ret <8 x half> %s.1308}309 310define <2 x float> @v2f32_select_olt(<2 x float> %a, <2 x float> %b, <2 x float> %c) {311; COST-LABEL: 'v2f32_select_olt'312; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp olt <2 x float> %a, %b313; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <2 x i1> %cmp.1, <2 x float> %a, <2 x float> %c314; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x float> %s.1315;316  %cmp.1 = fcmp olt <2 x float> %a, %b317  %s.1 = select <2 x i1> %cmp.1, <2 x float> %a, <2 x float> %c318  ret <2 x float> %s.1319}320 321define <4 x float> @v4f32_select_olt(<4 x float> %a, <4 x float> %b, <4 x float> %c) {322; COST-LABEL: 'v4f32_select_olt'323; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp olt <4 x float> %a, %b324; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <4 x i1> %cmp.1, <4 x float> %a, <4 x float> %c325; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x float> %s.1326;327  %cmp.1 = fcmp olt <4 x float> %a, %b328  %s.1 = select <4 x i1> %cmp.1, <4 x float> %a, <4 x float> %c329  ret <4 x float> %s.1330}331 332define <2 x double> @v2f64_select_olt(<2 x double> %a, <2 x double> %b, <2 x double> %c) {333; COST-LABEL: 'v2f64_select_olt'334; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp olt <2 x double> %a, %b335; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <2 x i1> %cmp.1, <2 x double> %a, <2 x double> %c336; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x double> %s.1337;338  %cmp.1 = fcmp olt <2 x double> %a, %b339  %s.1 = select <2 x i1> %cmp.1, <2 x double> %a, <2 x double> %c340  ret <2 x double> %s.1341}342 343define <4 x bfloat> @v4bf16_select_olt(<4 x bfloat> %a, <4 x bfloat> %b, <4 x bfloat> %c) {344; COST-LABEL: 'v4bf16_select_olt'345; COST-NEXT:  Cost Model: Found costs of RThru:4 CodeSize:4 Lat:5 SizeLat:4 for: %cmp.1 = fcmp olt <4 x bfloat> %a, %b346; COST-NEXT:  Cost Model: Found costs of RThru:10 CodeSize:7 Lat:10 SizeLat:10 for: %s.1 = select <4 x i1> %cmp.1, <4 x bfloat> %a, <4 x bfloat> %c347; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x bfloat> %s.1348;349  %cmp.1 = fcmp olt <4 x bfloat> %a, %b350  %s.1 = select <4 x i1> %cmp.1, <4 x bfloat> %a, <4 x bfloat> %c351  ret <4 x bfloat> %s.1352}353 354define <8 x bfloat> @v8bf16_select_olt(<8 x bfloat> %a, <8 x bfloat> %b, <8 x bfloat> %c) {355; COST-LABEL: 'v8bf16_select_olt'356; COST-NEXT:  Cost Model: Found costs of RThru:7 CodeSize:5 Lat:5 SizeLat:5 for: %cmp.1 = fcmp olt <8 x bfloat> %a, %b357; COST-NEXT:  Cost Model: Found costs of RThru:22 CodeSize:15 Lat:22 SizeLat:22 for: %s.1 = select <8 x i1> %cmp.1, <8 x bfloat> %a, <8 x bfloat> %c358; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x bfloat> %s.1359;360  %cmp.1 = fcmp olt <8 x bfloat> %a, %b361  %s.1 = select <8 x i1> %cmp.1, <8 x bfloat> %a, <8 x bfloat> %c362  ret <8 x bfloat> %s.1363}364 365define <4 x half> @v4f16_select_ole(<4 x half> %a, <4 x half> %b, <4 x half> %c) {366; COST-NOFP16-LABEL: 'v4f16_select_ole'367; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:4 CodeSize:4 Lat:5 SizeLat:4 for: %cmp.1 = fcmp ole <4 x half> %a, %b368; COST-NOFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c369; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x half> %s.1370;371; COST-FULLFP16-LABEL: 'v4f16_select_ole'372; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp ole <4 x half> %a, %b373; COST-FULLFP16-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c374; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x half> %s.1375;376  %cmp.1 = fcmp ole <4 x half> %a, %b377  %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c378  ret <4 x half> %s.1379}380 381define <8 x half> @v8f16_select_ole(<8 x half> %a, <8 x half> %b, <8 x half> %c) {382; COST-NOFP16-LABEL: 'v8f16_select_ole'383; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:7 CodeSize:5 Lat:5 SizeLat:5 for: %cmp.1 = fcmp ole <8 x half> %a, %b384; COST-NOFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c385; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x half> %s.1386;387; COST-FULLFP16-LABEL: 'v8f16_select_ole'388; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp ole <8 x half> %a, %b389; COST-FULLFP16-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c390; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x half> %s.1391;392  %cmp.1 = fcmp ole <8 x half> %a, %b393  %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c394  ret <8 x half> %s.1395}396 397define <2 x float> @v2f32_select_ole(<2 x float> %a, <2 x float> %b, <2 x float> %c) {398; COST-LABEL: 'v2f32_select_ole'399; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp ole <2 x float> %a, %b400; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <2 x i1> %cmp.1, <2 x float> %a, <2 x float> %c401; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x float> %s.1402;403  %cmp.1 = fcmp ole <2 x float> %a, %b404  %s.1 = select <2 x i1> %cmp.1, <2 x float> %a, <2 x float> %c405  ret <2 x float> %s.1406}407 408define <4 x float> @v4f32_select_ole(<4 x float> %a, <4 x float> %b, <4 x float> %c) {409; COST-LABEL: 'v4f32_select_ole'410; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp ole <4 x float> %a, %b411; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <4 x i1> %cmp.1, <4 x float> %a, <4 x float> %c412; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x float> %s.1413;414  %cmp.1 = fcmp ole <4 x float> %a, %b415  %s.1 = select <4 x i1> %cmp.1, <4 x float> %a, <4 x float> %c416  ret <4 x float> %s.1417}418 419define <2 x double> @v2f64_select_ole(<2 x double> %a, <2 x double> %b, <2 x double> %c) {420; COST-LABEL: 'v2f64_select_ole'421; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp ole <2 x double> %a, %b422; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <2 x i1> %cmp.1, <2 x double> %a, <2 x double> %c423; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x double> %s.1424;425  %cmp.1 = fcmp ole <2 x double> %a, %b426  %s.1 = select <2 x i1> %cmp.1, <2 x double> %a, <2 x double> %c427  ret <2 x double> %s.1428}429 430define <4 x bfloat> @v4bf16_select_ole(<4 x bfloat> %a, <4 x bfloat> %b, <4 x bfloat> %c) {431; COST-LABEL: 'v4bf16_select_ole'432; COST-NEXT:  Cost Model: Found costs of RThru:4 CodeSize:4 Lat:5 SizeLat:4 for: %cmp.1 = fcmp ole <4 x bfloat> %a, %b433; COST-NEXT:  Cost Model: Found costs of RThru:10 CodeSize:7 Lat:10 SizeLat:10 for: %s.1 = select <4 x i1> %cmp.1, <4 x bfloat> %a, <4 x bfloat> %c434; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x bfloat> %s.1435;436  %cmp.1 = fcmp ole <4 x bfloat> %a, %b437  %s.1 = select <4 x i1> %cmp.1, <4 x bfloat> %a, <4 x bfloat> %c438  ret <4 x bfloat> %s.1439}440 441define <8 x bfloat> @v8bf16_select_ole(<8 x bfloat> %a, <8 x bfloat> %b, <8 x bfloat> %c) {442; COST-LABEL: 'v8bf16_select_ole'443; COST-NEXT:  Cost Model: Found costs of RThru:7 CodeSize:5 Lat:5 SizeLat:5 for: %cmp.1 = fcmp ole <8 x bfloat> %a, %b444; COST-NEXT:  Cost Model: Found costs of RThru:22 CodeSize:15 Lat:22 SizeLat:22 for: %s.1 = select <8 x i1> %cmp.1, <8 x bfloat> %a, <8 x bfloat> %c445; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x bfloat> %s.1446;447  %cmp.1 = fcmp ole <8 x bfloat> %a, %b448  %s.1 = select <8 x i1> %cmp.1, <8 x bfloat> %a, <8 x bfloat> %c449  ret <8 x bfloat> %s.1450}451 452define <4 x half> @v4f16_select_oeq(<4 x half> %a, <4 x half> %b, <4 x half> %c) {453; COST-NOFP16-LABEL: 'v4f16_select_oeq'454; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:4 CodeSize:4 Lat:5 SizeLat:4 for: %cmp.1 = fcmp oeq <4 x half> %a, %b455; COST-NOFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c456; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x half> %s.1457;458; COST-FULLFP16-LABEL: 'v4f16_select_oeq'459; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp oeq <4 x half> %a, %b460; COST-FULLFP16-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c461; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x half> %s.1462;463  %cmp.1 = fcmp oeq <4 x half> %a, %b464  %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c465  ret <4 x half> %s.1466}467 468define <8 x half> @v8f16_select_oeq(<8 x half> %a, <8 x half> %b, <8 x half> %c) {469; COST-NOFP16-LABEL: 'v8f16_select_oeq'470; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:7 CodeSize:5 Lat:5 SizeLat:5 for: %cmp.1 = fcmp oeq <8 x half> %a, %b471; COST-NOFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c472; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x half> %s.1473;474; COST-FULLFP16-LABEL: 'v8f16_select_oeq'475; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp oeq <8 x half> %a, %b476; COST-FULLFP16-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c477; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x half> %s.1478;479  %cmp.1 = fcmp oeq <8 x half> %a, %b480  %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c481  ret <8 x half> %s.1482}483 484define <2 x float> @v2f32_select_oeq(<2 x float> %a, <2 x float> %b, <2 x float> %c) {485; COST-LABEL: 'v2f32_select_oeq'486; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp oeq <2 x float> %a, %b487; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <2 x i1> %cmp.1, <2 x float> %a, <2 x float> %c488; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x float> %s.1489;490  %cmp.1 = fcmp oeq <2 x float> %a, %b491  %s.1 = select <2 x i1> %cmp.1, <2 x float> %a, <2 x float> %c492  ret <2 x float> %s.1493}494 495define <4 x float> @v4f32_select_oeq(<4 x float> %a, <4 x float> %b, <4 x float> %c) {496; COST-LABEL: 'v4f32_select_oeq'497; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp oeq <4 x float> %a, %b498; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <4 x i1> %cmp.1, <4 x float> %a, <4 x float> %c499; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x float> %s.1500;501  %cmp.1 = fcmp oeq <4 x float> %a, %b502  %s.1 = select <4 x i1> %cmp.1, <4 x float> %a, <4 x float> %c503  ret <4 x float> %s.1504}505 506define <2 x double> @v2f64_select_oeq(<2 x double> %a, <2 x double> %b, <2 x double> %c) {507; COST-LABEL: 'v2f64_select_oeq'508; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp oeq <2 x double> %a, %b509; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <2 x i1> %cmp.1, <2 x double> %a, <2 x double> %c510; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x double> %s.1511;512  %cmp.1 = fcmp oeq <2 x double> %a, %b513  %s.1 = select <2 x i1> %cmp.1, <2 x double> %a, <2 x double> %c514  ret <2 x double> %s.1515}516 517define <4 x bfloat> @v4bf16_select_oeq(<4 x bfloat> %a, <4 x bfloat> %b, <4 x bfloat> %c) {518; COST-LABEL: 'v4bf16_select_oeq'519; COST-NEXT:  Cost Model: Found costs of RThru:4 CodeSize:4 Lat:5 SizeLat:4 for: %cmp.1 = fcmp oeq <4 x bfloat> %a, %b520; COST-NEXT:  Cost Model: Found costs of RThru:10 CodeSize:7 Lat:10 SizeLat:10 for: %s.1 = select <4 x i1> %cmp.1, <4 x bfloat> %a, <4 x bfloat> %c521; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x bfloat> %s.1522;523  %cmp.1 = fcmp oeq <4 x bfloat> %a, %b524  %s.1 = select <4 x i1> %cmp.1, <4 x bfloat> %a, <4 x bfloat> %c525  ret <4 x bfloat> %s.1526}527 528define <8 x bfloat> @v8bf16_select_oeq(<8 x bfloat> %a, <8 x bfloat> %b, <8 x bfloat> %c) {529; COST-LABEL: 'v8bf16_select_oeq'530; COST-NEXT:  Cost Model: Found costs of RThru:7 CodeSize:5 Lat:5 SizeLat:5 for: %cmp.1 = fcmp oeq <8 x bfloat> %a, %b531; COST-NEXT:  Cost Model: Found costs of RThru:22 CodeSize:15 Lat:22 SizeLat:22 for: %s.1 = select <8 x i1> %cmp.1, <8 x bfloat> %a, <8 x bfloat> %c532; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x bfloat> %s.1533;534  %cmp.1 = fcmp oeq <8 x bfloat> %a, %b535  %s.1 = select <8 x i1> %cmp.1, <8 x bfloat> %a, <8 x bfloat> %c536  ret <8 x bfloat> %s.1537}538 539define <4 x half> @v4f16_select_one(<4 x half> %a, <4 x half> %b, <4 x half> %c) {540; COST-NOFP16-LABEL: 'v4f16_select_one'541; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:6 CodeSize:6 Lat:9 SizeLat:6 for: %cmp.1 = fcmp one <4 x half> %a, %b542; COST-NOFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c543; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x half> %s.1544;545; COST-FULLFP16-LABEL: 'v4f16_select_one'546; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:3 CodeSize:3 Lat:6 SizeLat:3 for: %cmp.1 = fcmp one <4 x half> %a, %b547; COST-FULLFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c548; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x half> %s.1549;550  %cmp.1 = fcmp one <4 x half> %a, %b551  %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c552  ret <4 x half> %s.1553}554 555define <8 x half> @v8f16_select_one(<8 x half> %a, <8 x half> %b, <8 x half> %c) {556; COST-NOFP16-LABEL: 'v8f16_select_one'557; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:11 CodeSize:9 Lat:9 SizeLat:9 for: %cmp.1 = fcmp one <8 x half> %a, %b558; COST-NOFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c559; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x half> %s.1560;561; COST-FULLFP16-LABEL: 'v8f16_select_one'562; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:3 CodeSize:3 Lat:6 SizeLat:3 for: %cmp.1 = fcmp one <8 x half> %a, %b563; COST-FULLFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c564; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x half> %s.1565;566  %cmp.1 = fcmp one <8 x half> %a, %b567  %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c568  ret <8 x half> %s.1569}570 571define <2 x float> @v2f32_select_one(<2 x float> %a, <2 x float> %b, <2 x float> %c) {572; COST-LABEL: 'v2f32_select_one'573; COST-NEXT:  Cost Model: Found costs of RThru:3 CodeSize:3 Lat:6 SizeLat:3 for: %cmp.1 = fcmp one <2 x float> %a, %b574; COST-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <2 x i1> %cmp.1, <2 x float> %a, <2 x float> %c575; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x float> %s.1576;577  %cmp.1 = fcmp one <2 x float> %a, %b578  %s.1 = select <2 x i1> %cmp.1, <2 x float> %a, <2 x float> %c579  ret <2 x float> %s.1580}581 582define <4 x float> @v4f32_select_one(<4 x float> %a, <4 x float> %b, <4 x float> %c) {583; COST-LABEL: 'v4f32_select_one'584; COST-NEXT:  Cost Model: Found costs of RThru:3 CodeSize:3 Lat:6 SizeLat:3 for: %cmp.1 = fcmp one <4 x float> %a, %b585; COST-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <4 x i1> %cmp.1, <4 x float> %a, <4 x float> %c586; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x float> %s.1587;588  %cmp.1 = fcmp one <4 x float> %a, %b589  %s.1 = select <4 x i1> %cmp.1, <4 x float> %a, <4 x float> %c590  ret <4 x float> %s.1591}592 593define <2 x double> @v2f64_select_one(<2 x double> %a, <2 x double> %b, <2 x double> %c) {594; COST-LABEL: 'v2f64_select_one'595; COST-NEXT:  Cost Model: Found costs of RThru:3 CodeSize:3 Lat:6 SizeLat:3 for: %cmp.1 = fcmp one <2 x double> %a, %b596; COST-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <2 x i1> %cmp.1, <2 x double> %a, <2 x double> %c597; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x double> %s.1598;599  %cmp.1 = fcmp one <2 x double> %a, %b600  %s.1 = select <2 x i1> %cmp.1, <2 x double> %a, <2 x double> %c601  ret <2 x double> %s.1602}603 604define <4 x bfloat> @v4bf16_select_one(<4 x bfloat> %a, <4 x bfloat> %b, <4 x bfloat> %c) {605; COST-LABEL: 'v4bf16_select_one'606; COST-NEXT:  Cost Model: Found costs of RThru:6 CodeSize:6 Lat:9 SizeLat:6 for: %cmp.1 = fcmp one <4 x bfloat> %a, %b607; COST-NEXT:  Cost Model: Found costs of RThru:10 CodeSize:7 Lat:10 SizeLat:10 for: %s.1 = select <4 x i1> %cmp.1, <4 x bfloat> %a, <4 x bfloat> %c608; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x bfloat> %s.1609;610  %cmp.1 = fcmp one <4 x bfloat> %a, %b611  %s.1 = select <4 x i1> %cmp.1, <4 x bfloat> %a, <4 x bfloat> %c612  ret <4 x bfloat> %s.1613}614 615define <8 x bfloat> @v8bf16_select_one(<8 x bfloat> %a, <8 x bfloat> %b, <8 x bfloat> %c) {616; COST-LABEL: 'v8bf16_select_one'617; COST-NEXT:  Cost Model: Found costs of RThru:11 CodeSize:9 Lat:9 SizeLat:9 for: %cmp.1 = fcmp one <8 x bfloat> %a, %b618; COST-NEXT:  Cost Model: Found costs of RThru:22 CodeSize:15 Lat:22 SizeLat:22 for: %s.1 = select <8 x i1> %cmp.1, <8 x bfloat> %a, <8 x bfloat> %c619; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x bfloat> %s.1620;621  %cmp.1 = fcmp one <8 x bfloat> %a, %b622  %s.1 = select <8 x i1> %cmp.1, <8 x bfloat> %a, <8 x bfloat> %c623  ret <8 x bfloat> %s.1624}625 626define <4 x half> @v4f16_select_une(<4 x half> %a, <4 x half> %b, <4 x half> %c) {627; COST-NOFP16-LABEL: 'v4f16_select_une'628; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:4 CodeSize:4 Lat:5 SizeLat:4 for: %cmp.1 = fcmp une <4 x half> %a, %b629; COST-NOFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c630; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x half> %s.1631;632; COST-FULLFP16-LABEL: 'v4f16_select_une'633; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp une <4 x half> %a, %b634; COST-FULLFP16-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c635; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x half> %s.1636;637  %cmp.1 = fcmp une <4 x half> %a, %b638  %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c639  ret <4 x half> %s.1640}641 642define <8 x half> @v8f16_select_une(<8 x half> %a, <8 x half> %b, <8 x half> %c) {643; COST-NOFP16-LABEL: 'v8f16_select_une'644; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:7 CodeSize:5 Lat:5 SizeLat:5 for: %cmp.1 = fcmp une <8 x half> %a, %b645; COST-NOFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c646; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x half> %s.1647;648; COST-FULLFP16-LABEL: 'v8f16_select_une'649; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp une <8 x half> %a, %b650; COST-FULLFP16-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c651; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x half> %s.1652;653  %cmp.1 = fcmp une <8 x half> %a, %b654  %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c655  ret <8 x half> %s.1656}657 658define <2 x float> @v2f32_select_une(<2 x float> %a, <2 x float> %b, <2 x float> %c) {659; COST-LABEL: 'v2f32_select_une'660; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp une <2 x float> %a, %b661; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <2 x i1> %cmp.1, <2 x float> %a, <2 x float> %c662; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x float> %s.1663;664  %cmp.1 = fcmp une <2 x float> %a, %b665  %s.1 = select <2 x i1> %cmp.1, <2 x float> %a, <2 x float> %c666  ret <2 x float> %s.1667}668 669define <4 x float> @v4f32_select_une(<4 x float> %a, <4 x float> %b, <4 x float> %c) {670; COST-LABEL: 'v4f32_select_une'671; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp une <4 x float> %a, %b672; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <4 x i1> %cmp.1, <4 x float> %a, <4 x float> %c673; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x float> %s.1674;675  %cmp.1 = fcmp une <4 x float> %a, %b676  %s.1 = select <4 x i1> %cmp.1, <4 x float> %a, <4 x float> %c677  ret <4 x float> %s.1678}679 680define <2 x double> @v2f64_select_une(<2 x double> %a, <2 x double> %b, <2 x double> %c) {681; COST-LABEL: 'v2f64_select_une'682; COST-NEXT:  Cost Model: Found costs of RThru:1 CodeSize:1 Lat:2 SizeLat:1 for: %cmp.1 = fcmp une <2 x double> %a, %b683; COST-NEXT:  Cost Model: Found costs of 1 for: %s.1 = select <2 x i1> %cmp.1, <2 x double> %a, <2 x double> %c684; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x double> %s.1685;686  %cmp.1 = fcmp une <2 x double> %a, %b687  %s.1 = select <2 x i1> %cmp.1, <2 x double> %a, <2 x double> %c688  ret <2 x double> %s.1689}690 691define <4 x bfloat> @v4bf16_select_une(<4 x bfloat> %a, <4 x bfloat> %b, <4 x bfloat> %c) {692; COST-LABEL: 'v4bf16_select_une'693; COST-NEXT:  Cost Model: Found costs of RThru:4 CodeSize:4 Lat:5 SizeLat:4 for: %cmp.1 = fcmp une <4 x bfloat> %a, %b694; COST-NEXT:  Cost Model: Found costs of RThru:10 CodeSize:7 Lat:10 SizeLat:10 for: %s.1 = select <4 x i1> %cmp.1, <4 x bfloat> %a, <4 x bfloat> %c695; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x bfloat> %s.1696;697  %cmp.1 = fcmp une <4 x bfloat> %a, %b698  %s.1 = select <4 x i1> %cmp.1, <4 x bfloat> %a, <4 x bfloat> %c699  ret <4 x bfloat> %s.1700}701 702define <8 x bfloat> @v8bf16_select_une(<8 x bfloat> %a, <8 x bfloat> %b, <8 x bfloat> %c) {703; COST-LABEL: 'v8bf16_select_une'704; COST-NEXT:  Cost Model: Found costs of RThru:7 CodeSize:5 Lat:5 SizeLat:5 for: %cmp.1 = fcmp une <8 x bfloat> %a, %b705; COST-NEXT:  Cost Model: Found costs of RThru:22 CodeSize:15 Lat:22 SizeLat:22 for: %s.1 = select <8 x i1> %cmp.1, <8 x bfloat> %a, <8 x bfloat> %c706; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x bfloat> %s.1707;708  %cmp.1 = fcmp une <8 x bfloat> %a, %b709  %s.1 = select <8 x i1> %cmp.1, <8 x bfloat> %a, <8 x bfloat> %c710  ret <8 x bfloat> %s.1711}712 713define <4 x half> @v4f16_select_ord(<4 x half> %a, <4 x half> %b, <4 x half> %c) {714; COST-NOFP16-LABEL: 'v4f16_select_ord'715; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:6 CodeSize:6 Lat:9 SizeLat:6 for: %cmp.1 = fcmp ord <4 x half> %a, %b716; COST-NOFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c717; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x half> %s.1718;719; COST-FULLFP16-LABEL: 'v4f16_select_ord'720; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:3 CodeSize:3 Lat:6 SizeLat:3 for: %cmp.1 = fcmp ord <4 x half> %a, %b721; COST-FULLFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c722; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x half> %s.1723;724  %cmp.1 = fcmp ord <4 x half> %a, %b725  %s.1 = select <4 x i1> %cmp.1, <4 x half> %a, <4 x half> %c726  ret <4 x half> %s.1727}728 729define <8 x half> @v8f16_select_ord(<8 x half> %a, <8 x half> %b, <8 x half> %c) {730; COST-NOFP16-LABEL: 'v8f16_select_ord'731; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:11 CodeSize:9 Lat:9 SizeLat:9 for: %cmp.1 = fcmp ord <8 x half> %a, %b732; COST-NOFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c733; COST-NOFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x half> %s.1734;735; COST-FULLFP16-LABEL: 'v8f16_select_ord'736; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:3 CodeSize:3 Lat:6 SizeLat:3 for: %cmp.1 = fcmp ord <8 x half> %a, %b737; COST-FULLFP16-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c738; COST-FULLFP16-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x half> %s.1739;740  %cmp.1 = fcmp ord <8 x half> %a, %b741  %s.1 = select <8 x i1> %cmp.1, <8 x half> %a, <8 x half> %c742  ret <8 x half> %s.1743}744 745define <2 x float> @v2f32_select_ord(<2 x float> %a, <2 x float> %b, <2 x float> %c) {746; COST-LABEL: 'v2f32_select_ord'747; COST-NEXT:  Cost Model: Found costs of RThru:3 CodeSize:3 Lat:6 SizeLat:3 for: %cmp.1 = fcmp ord <2 x float> %a, %b748; COST-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <2 x i1> %cmp.1, <2 x float> %a, <2 x float> %c749; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x float> %s.1750;751  %cmp.1 = fcmp ord <2 x float> %a, %b752  %s.1 = select <2 x i1> %cmp.1, <2 x float> %a, <2 x float> %c753  ret <2 x float> %s.1754}755 756define <4 x float> @v4f32_select_ord(<4 x float> %a, <4 x float> %b, <4 x float> %c) {757; COST-LABEL: 'v4f32_select_ord'758; COST-NEXT:  Cost Model: Found costs of RThru:3 CodeSize:3 Lat:6 SizeLat:3 for: %cmp.1 = fcmp ord <4 x float> %a, %b759; COST-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <4 x i1> %cmp.1, <4 x float> %a, <4 x float> %c760; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x float> %s.1761;762  %cmp.1 = fcmp ord <4 x float> %a, %b763  %s.1 = select <4 x i1> %cmp.1, <4 x float> %a, <4 x float> %c764  ret <4 x float> %s.1765}766 767define <2 x double> @v2f64_select_ord(<2 x double> %a, <2 x double> %b, <2 x double> %c) {768; COST-LABEL: 'v2f64_select_ord'769; COST-NEXT:  Cost Model: Found costs of RThru:3 CodeSize:3 Lat:6 SizeLat:3 for: %cmp.1 = fcmp ord <2 x double> %a, %b770; COST-NEXT:  Cost Model: Found costs of 2 for: %s.1 = select <2 x i1> %cmp.1, <2 x double> %a, <2 x double> %c771; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <2 x double> %s.1772;773  %cmp.1 = fcmp ord <2 x double> %a, %b774  %s.1 = select <2 x i1> %cmp.1, <2 x double> %a, <2 x double> %c775  ret <2 x double> %s.1776}777 778define <4 x bfloat> @v4bf16_select_ord(<4 x bfloat> %a, <4 x bfloat> %b, <4 x bfloat> %c) {779; COST-LABEL: 'v4bf16_select_ord'780; COST-NEXT:  Cost Model: Found costs of RThru:6 CodeSize:6 Lat:9 SizeLat:6 for: %cmp.1 = fcmp ord <4 x bfloat> %a, %b781; COST-NEXT:  Cost Model: Found costs of RThru:10 CodeSize:7 Lat:10 SizeLat:10 for: %s.1 = select <4 x i1> %cmp.1, <4 x bfloat> %a, <4 x bfloat> %c782; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <4 x bfloat> %s.1783;784  %cmp.1 = fcmp ord <4 x bfloat> %a, %b785  %s.1 = select <4 x i1> %cmp.1, <4 x bfloat> %a, <4 x bfloat> %c786  ret <4 x bfloat> %s.1787}788 789define <8 x bfloat> @v8bf16_select_ord(<8 x bfloat> %a, <8 x bfloat> %b, <8 x bfloat> %c) {790; COST-LABEL: 'v8bf16_select_ord'791; COST-NEXT:  Cost Model: Found costs of RThru:11 CodeSize:9 Lat:9 SizeLat:9 for: %cmp.1 = fcmp ord <8 x bfloat> %a, %b792; COST-NEXT:  Cost Model: Found costs of RThru:22 CodeSize:15 Lat:22 SizeLat:22 for: %s.1 = select <8 x i1> %cmp.1, <8 x bfloat> %a, <8 x bfloat> %c793; COST-NEXT:  Cost Model: Found costs of RThru:0 CodeSize:1 Lat:1 SizeLat:1 for: ret <8 x bfloat> %s.1794;795  %cmp.1 = fcmp ord <8 x bfloat> %a, %b796  %s.1 = select <8 x i1> %cmp.1, <8 x bfloat> %a, <8 x bfloat> %c797  ret <8 x bfloat> %s.1798}799