From 70168970be0661e74cb73700f63759c1961aa1d2 Mon Sep 17 00:00:00 2001 From: Elvis Wang Date: Tue, 10 Jun 2025 20:43:46 -0700 Subject: [PATCH 1/5] Precommit test case. --- .../test/Analysis/CostModel/RISCV/cast-sat.ll | 583 ++++++++++++++++++ 1 file changed, 583 insertions(+) create mode 100644 llvm/test/Analysis/CostModel/RISCV/cast-sat.ll diff --git a/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll b/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll new file mode 100644 index 0000000000000..41eea7fcf4283 --- /dev/null +++ b/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll @@ -0,0 +1,583 @@ +; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 5 +; RUN: opt < %s -mtriple=riscv64 -mattr=+zve32f,+zvl128b,+f,+d,+zfh,+zvfh -passes="print" -cost-kind=throughput 2>&1 -disable-output | FileCheck %s --check-prefixes=CHECK,RV64ZVE32F +; RUN: opt < %s -mtriple=riscv64 -mattr=+v,+zvl128b,+f,+d,+zfh,+zvfh -passes="print" -cost-kind=throughput 2>&1 -disable-output | FileCheck %s --check-prefixes=CHECK,RV64V + +define void @fptoui_sat() { +; RV64ZVE32F-LABEL: 'fptoui_sat' +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f32_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f32_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f32_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f32_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f32_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void +; +; RV64V-LABEL: 'fptoui_sat' +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv16f32_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv16f64_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void +; + %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> undef) + %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> undef) + %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> undef) + %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> undef) + %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> undef) + %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> undef) + %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> undef) + %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> undef) + %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> undef) + %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> undef) + + %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> undef) + %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> undef) + %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> undef) + %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> undef) + %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> undef) + %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> undef) + %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> undef) + %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> undef) + %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> undef) + %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> undef) + + %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> undef) + %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> undef) + %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> undef) + %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> undef) + %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> undef) + %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> undef) + %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> undef) + %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> undef) + %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> undef) + %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> undef) + + %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> undef) + %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> undef) + %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> undef) + %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> undef) + %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> undef) + %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> undef) + %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> undef) + %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> undef) + %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> undef) + %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> undef) + + %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( undef) + %nxv1f64_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f64( undef) + %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( undef) + %nxv1f64_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f64( undef) + %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( undef) + %nxv1f64_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f64( undef) + %nxv1f32_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f32( undef) + %nxv1f64_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f64( undef) + %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( undef) + %nxv1f64_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f64( undef) + + %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( undef) + %nxv2f64_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f64( undef) + %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( undef) + %nxv2f64_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f64( undef) + %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( undef) + %nxv2f64_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f64( undef) + %nxv2f32_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f32( undef) + %nxv2f64_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f64( undef) + %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( undef) + %nxv2f64_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f64( undef) + + %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( undef) + %nxv4f64_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f64( undef) + %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( undef) + %nxv4f64_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f64( undef) + %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( undef) + %nxv4f64_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f64( undef) + %nxv4f32_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f32( undef) + %nxv4f64_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f64( undef) + %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( undef) + %nxv4f64_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f64( undef) + + %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( undef) + %nxv8f64_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f64( undef) + %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( undef) + %nxv8f64_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f64( undef) + %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( undef) + %nxv8f64_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f64( undef) + %nxv8f32_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f32( undef) + %nxv8f64_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f64( undef) + %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( undef) + %nxv8f64_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f64( undef) + + %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( undef) + %nxv16f64_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f64( undef) + %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( undef) + %nxv16f64_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f64( undef) + %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( undef) + %nxv16f64_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f64( undef) + %nxv16f32_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f32( undef) + %nxv16f64_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f64( undef) + %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( undef) + %nxv16f64_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f64( undef) + + ret void +} + +define void @fptosi_sat() { +; RV64ZVE32F-LABEL: 'fptosi_sat' +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f32_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f32_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f32_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f32_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f32_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void +; +; RV64V-LABEL: 'fptosi_sat' +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv16f32_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv16f64_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void +; + %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> undef) + %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> undef) + %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> undef) + %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> undef) + %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> undef) + %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> undef) + %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> undef) + %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> undef) + %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> undef) + %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> undef) + + %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> undef) + %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> undef) + %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> undef) + %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> undef) + %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> undef) + %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> undef) + %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> undef) + %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> undef) + %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> undef) + %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> undef) + + %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> undef) + %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> undef) + %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> undef) + %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> undef) + %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> undef) + %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> undef) + %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> undef) + %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> undef) + %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> undef) + %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> undef) + + %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> undef) + %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> undef) + %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> undef) + %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> undef) + %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> undef) + %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> undef) + %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> undef) + %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> undef) + %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> undef) + %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> undef) + + %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( undef) + %nxv1f64_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f64( undef) + %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( undef) + %nxv1f64_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f64( undef) + %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( undef) + %nxv1f64_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f64( undef) + %nxv1f32_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f32( undef) + %nxv1f64_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f64( undef) + %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( undef) + %nxv1f64_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f64( undef) + + %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( undef) + %nxv2f64_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f64( undef) + %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( undef) + %nxv2f64_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f64( undef) + %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( undef) + %nxv2f64_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f64( undef) + %nxv2f32_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f32( undef) + %nxv2f64_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f64( undef) + %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( undef) + %nxv2f64_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f64( undef) + + %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( undef) + %nxv4f64_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f64( undef) + %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( undef) + %nxv4f64_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f64( undef) + %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( undef) + %nxv4f64_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f64( undef) + %nxv4f32_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f32( undef) + %nxv4f64_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f64( undef) + %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( undef) + %nxv4f64_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f64( undef) + + %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( undef) + %nxv8f64_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f64( undef) + %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( undef) + %nxv8f64_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f64( undef) + %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( undef) + %nxv8f64_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f64( undef) + %nxv8f32_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f32( undef) + %nxv8f64_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f64( undef) + %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( undef) + %nxv8f64_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f64( undef) + + %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( undef) + %nxv16f64_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f64( undef) + %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( undef) + %nxv16f64_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f64( undef) + %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( undef) + %nxv16f64_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f64( undef) + %nxv16f32_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f32( undef) + %nxv16f64_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f64( undef) + %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( undef) + %nxv16f64_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f64( undef) + + ret void +} +;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line: +; CHECK: {{.*}} From a43aa2bc389d150688ea4b4de90aba7654cecef3 Mon Sep 17 00:00:00 2001 From: Elvis Wang Date: Tue, 10 Jun 2025 21:07:54 -0700 Subject: [PATCH 2/5] [RISCV][TTI] Implement cost for llvm.fpto{u|s}i.sat. --- .../Target/RISCV/RISCVTargetTransformInfo.cpp | 27 + .../test/Analysis/CostModel/RISCV/cast-sat.ll | 680 +++++++++--------- 2 files changed, 367 insertions(+), 340 deletions(-) diff --git a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp index 67a51c12b508e..1590c8366bec1 100644 --- a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp +++ b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp @@ -1541,6 +1541,33 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA, cast(ICA.getArgTypes()[0]), {}, CostKind, 0, cast(ICA.getReturnType())); } + case Intrinsic::fptoui_sat: + case Intrinsic::fptosi_sat: { + InstructionCost Cost = 0; + bool IsSigned = ICA.getID() == Intrinsic::fptosi_sat; + Type *SrcTy = ICA.getArgTypes()[0]; + + auto SrcLT = getTypeLegalizationCost(SrcTy); + auto DstLT = getTypeLegalizationCost(RetTy); + if (!SrcLT.first.isValid() || !DstLT.first.isValid()) + return InstructionCost::getInvalid(); + + IntrinsicCostAttributes Attrs1(Intrinsic::minnum, SrcTy, {SrcTy, SrcTy}); + Cost += getIntrinsicInstrCost(Attrs1, CostKind); + IntrinsicCostAttributes Attrs2(Intrinsic::maxnum, SrcTy, {SrcTy, SrcTy}); + Cost += getIntrinsicInstrCost(Attrs2, CostKind); + Cost += + getCastInstrCost(IsSigned ? Instruction::FPToSI : Instruction::FPToUI, + RetTy, SrcTy, TTI::CastContextHint::None, CostKind); + if (IsSigned) { + Type *CondTy = RetTy->getWithNewBitWidth(1); + Cost += getCmpSelInstrCost(BinaryOperator::FCmp, SrcTy, CondTy, + CmpInst::FCMP_UNO, CostKind); + Cost += getCmpSelInstrCost(BinaryOperator::Select, RetTy, CondTy, + CmpInst::FCMP_UNO, CostKind); + } + return Cost; + } } if (ST->hasVInstructions() && RetTy->isVectorTy()) { diff --git a/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll b/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll index 41eea7fcf4283..52dd102f89da1 100644 --- a/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll +++ b/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll @@ -4,189 +4,189 @@ define void @fptoui_sat() { ; RV64ZVE32F-LABEL: 'fptoui_sat' -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 55 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 63 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 63 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 63 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 40 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 111 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f64( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f32_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f32( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f64( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f32_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f32( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f64( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f32_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f32( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f64( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f32_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f32( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f64( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f32_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f32( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f64( undef) ; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; ; RV64V-LABEL: 'fptoui_sat' -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv16f32_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv16f64_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f64_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f32_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f64_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4f32_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4f64_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv8f32_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv8f64_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 23 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 21 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv16f32_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv16f64_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f64( undef) ; RV64V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> undef) @@ -293,189 +293,189 @@ define void @fptoui_sat() { define void @fptosi_sat() { ; RV64ZVE32F-LABEL: 'fptosi_sat' -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 36 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 36 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 36 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 28 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 62 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 72 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 72 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 73 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 56 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 122 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f64( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f32_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f32( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f64( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f32_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f32( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f64( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f32_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f32( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f64( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f32_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f32( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f64( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f32_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f32( undef) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( undef) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f64( undef) ; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; ; RV64V-LABEL: 'fptosi_sat' -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv16f32_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv16f64_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 21 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 22 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f64_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv2f32_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f64_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv4f32_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv4f64_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv8f32_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %nxv8f64_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 52 for instruction: %nxv16f32_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 60 for instruction: %nxv16f64_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 70 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f64( undef) ; RV64V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> undef) From 9dfe76c88c39035740fe69bca6d145153800b9c7 Mon Sep 17 00:00:00 2001 From: Elvis Wang Date: Tue, 10 Jun 2025 22:32:11 -0700 Subject: [PATCH 3/5] !fixup, using poison --- .../test/Analysis/CostModel/RISCV/cast-sat.ll | 1080 ++++++++--------- 1 file changed, 540 insertions(+), 540 deletions(-) diff --git a/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll b/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll index 52dd102f89da1..4db394a061823 100644 --- a/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll +++ b/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll @@ -4,578 +4,578 @@ define void @fptoui_sat() { ; RV64ZVE32F-LABEL: 'fptoui_sat' -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 55 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 63 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 63 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 63 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 40 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 111 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f32_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f32_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f32_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f32_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f32_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 55 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 63 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 63 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 63 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 40 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 111 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f32_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f32_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f32_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f32_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f32_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f64( poison) ; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; ; RV64V-LABEL: 'fptoui_sat' -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f64_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f32_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f64_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4f32_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4f64_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv8f32_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv8f64_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 23 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 21 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv16f32_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv16f64_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f64_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f32_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f64_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4f32_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4f64_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv8f32_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv8f64_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 23 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 21 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv16f32_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv16f64_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f64( poison) ; RV64V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; - %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> undef) - %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> undef) - %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> undef) - %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> undef) - %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> undef) - %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> undef) - %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> undef) - %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> undef) - %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> undef) - %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> undef) + %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> poison) + %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> poison) + %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> poison) + %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> poison) + %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> poison) + %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> poison) + %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> poison) + %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> poison) + %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> poison) + %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> poison) - %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> undef) - %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> undef) - %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> undef) - %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> undef) - %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> undef) - %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> undef) - %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> undef) - %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> undef) - %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> undef) - %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> undef) + %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> poison) + %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> poison) + %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> poison) + %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> poison) + %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> poison) + %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> poison) + %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> poison) + %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> poison) + %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> poison) + %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> poison) - %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> undef) - %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> undef) - %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> undef) - %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> undef) - %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> undef) - %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> undef) - %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> undef) - %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> undef) - %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> undef) - %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> undef) + %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> poison) + %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> poison) + %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> poison) + %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> poison) + %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> poison) + %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> poison) + %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> poison) + %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> poison) + %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> poison) + %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> poison) - %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> undef) - %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> undef) - %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> undef) - %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> undef) - %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> undef) - %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> undef) - %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> undef) - %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> undef) - %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> undef) - %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> undef) + %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> poison) + %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> poison) + %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> poison) + %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> poison) + %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> poison) + %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> poison) + %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> poison) + %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> poison) + %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> poison) + %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> poison) - %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( undef) - %nxv1f64_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f64( undef) - %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( undef) - %nxv1f64_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f64( undef) - %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( undef) - %nxv1f64_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f64( undef) - %nxv1f32_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f32( undef) - %nxv1f64_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f64( undef) - %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( undef) - %nxv1f64_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f64( undef) + %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( poison) + %nxv1f64_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f64( poison) + %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( poison) + %nxv1f64_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f64( poison) + %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( poison) + %nxv1f64_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f64( poison) + %nxv1f32_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f32( poison) + %nxv1f64_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f64( poison) + %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( poison) + %nxv1f64_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f64( poison) - %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( undef) - %nxv2f64_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f64( undef) - %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( undef) - %nxv2f64_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f64( undef) - %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( undef) - %nxv2f64_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f64( undef) - %nxv2f32_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f32( undef) - %nxv2f64_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f64( undef) - %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( undef) - %nxv2f64_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f64( undef) + %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( poison) + %nxv2f64_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f64( poison) + %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( poison) + %nxv2f64_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f64( poison) + %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( poison) + %nxv2f64_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f64( poison) + %nxv2f32_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f32( poison) + %nxv2f64_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f64( poison) + %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( poison) + %nxv2f64_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f64( poison) - %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( undef) - %nxv4f64_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f64( undef) - %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( undef) - %nxv4f64_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f64( undef) - %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( undef) - %nxv4f64_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f64( undef) - %nxv4f32_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f32( undef) - %nxv4f64_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f64( undef) - %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( undef) - %nxv4f64_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f64( undef) + %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( poison) + %nxv4f64_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f64( poison) + %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( poison) + %nxv4f64_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f64( poison) + %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( poison) + %nxv4f64_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f64( poison) + %nxv4f32_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f32( poison) + %nxv4f64_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f64( poison) + %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( poison) + %nxv4f64_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f64( poison) - %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( undef) - %nxv8f64_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f64( undef) - %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( undef) - %nxv8f64_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f64( undef) - %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( undef) - %nxv8f64_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f64( undef) - %nxv8f32_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f32( undef) - %nxv8f64_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f64( undef) - %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( undef) - %nxv8f64_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f64( undef) + %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( poison) + %nxv8f64_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f64( poison) + %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( poison) + %nxv8f64_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f64( poison) + %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( poison) + %nxv8f64_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f64( poison) + %nxv8f32_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f32( poison) + %nxv8f64_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f64( poison) + %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( poison) + %nxv8f64_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f64( poison) - %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( undef) - %nxv16f64_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f64( undef) - %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( undef) - %nxv16f64_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f64( undef) - %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( undef) - %nxv16f64_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f64( undef) - %nxv16f32_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f32( undef) - %nxv16f64_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f64( undef) - %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( undef) - %nxv16f64_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f64( undef) + %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( poison) + %nxv16f64_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f64( poison) + %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( poison) + %nxv16f64_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f64( poison) + %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( poison) + %nxv16f64_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f64( poison) + %nxv16f32_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f32( poison) + %nxv16f64_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f64( poison) + %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( poison) + %nxv16f64_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f64( poison) ret void } define void @fptosi_sat() { ; RV64ZVE32F-LABEL: 'fptosi_sat' -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 36 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 36 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 36 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 28 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 62 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 72 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 72 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 73 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 56 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 122 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f32_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f32_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f32_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f32_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f32_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f64( undef) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( undef) -; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f64( undef) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 36 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 36 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 36 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 28 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 62 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 72 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 72 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 73 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 56 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 122 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f32_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f32_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f32_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f32_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f32_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f64( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f64( poison) ; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; ; RV64V-LABEL: 'fptosi_sat' -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 21 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 22 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f64_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv2f32_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f64_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv4f32_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv4f64_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv8f32_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %nxv8f64_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 52 for instruction: %nxv16f32_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 60 for instruction: %nxv16f64_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f64( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( undef) -; RV64V-NEXT: Cost Model: Found an estimated cost of 70 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f64( undef) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 21 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 22 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f64_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv2f32_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f64_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv4f32_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv4f64_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv8f32_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %nxv8f64_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 52 for instruction: %nxv16f32_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 60 for instruction: %nxv16f64_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 70 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f64( poison) ; RV64V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; - %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> undef) - %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> undef) - %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> undef) - %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> undef) - %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> undef) - %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> undef) - %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> undef) - %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> undef) - %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> undef) - %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> undef) + %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> poison) + %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> poison) + %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> poison) + %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> poison) + %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> poison) + %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> poison) + %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> poison) + %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> poison) + %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> poison) + %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> poison) - %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> undef) - %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> undef) - %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> undef) - %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> undef) - %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> undef) - %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> undef) - %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> undef) - %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> undef) - %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> undef) - %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> undef) + %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> poison) + %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> poison) + %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> poison) + %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> poison) + %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> poison) + %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> poison) + %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> poison) + %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> poison) + %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> poison) + %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> poison) - %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> undef) - %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> undef) - %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> undef) - %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> undef) - %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> undef) - %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> undef) - %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> undef) - %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> undef) - %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> undef) - %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> undef) + %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> poison) + %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> poison) + %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> poison) + %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> poison) + %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> poison) + %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> poison) + %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> poison) + %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> poison) + %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> poison) + %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> poison) - %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> undef) - %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> undef) - %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> undef) - %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> undef) - %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> undef) - %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> undef) - %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> undef) - %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> undef) - %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> undef) - %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> undef) + %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> poison) + %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> poison) + %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> poison) + %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> poison) + %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> poison) + %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> poison) + %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> poison) + %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> poison) + %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> poison) + %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> poison) - %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( undef) - %nxv1f64_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f64( undef) - %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( undef) - %nxv1f64_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f64( undef) - %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( undef) - %nxv1f64_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f64( undef) - %nxv1f32_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f32( undef) - %nxv1f64_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f64( undef) - %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( undef) - %nxv1f64_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f64( undef) + %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( poison) + %nxv1f64_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f64( poison) + %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( poison) + %nxv1f64_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f64( poison) + %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( poison) + %nxv1f64_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f64( poison) + %nxv1f32_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f32( poison) + %nxv1f64_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f64( poison) + %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( poison) + %nxv1f64_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f64( poison) - %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( undef) - %nxv2f64_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f64( undef) - %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( undef) - %nxv2f64_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f64( undef) - %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( undef) - %nxv2f64_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f64( undef) - %nxv2f32_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f32( undef) - %nxv2f64_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f64( undef) - %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( undef) - %nxv2f64_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f64( undef) + %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( poison) + %nxv2f64_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f64( poison) + %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( poison) + %nxv2f64_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f64( poison) + %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( poison) + %nxv2f64_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f64( poison) + %nxv2f32_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f32( poison) + %nxv2f64_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f64( poison) + %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( poison) + %nxv2f64_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f64( poison) - %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( undef) - %nxv4f64_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f64( undef) - %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( undef) - %nxv4f64_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f64( undef) - %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( undef) - %nxv4f64_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f64( undef) - %nxv4f32_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f32( undef) - %nxv4f64_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f64( undef) - %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( undef) - %nxv4f64_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f64( undef) + %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( poison) + %nxv4f64_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f64( poison) + %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( poison) + %nxv4f64_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f64( poison) + %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( poison) + %nxv4f64_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f64( poison) + %nxv4f32_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f32( poison) + %nxv4f64_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f64( poison) + %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( poison) + %nxv4f64_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f64( poison) - %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( undef) - %nxv8f64_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f64( undef) - %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( undef) - %nxv8f64_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f64( undef) - %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( undef) - %nxv8f64_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f64( undef) - %nxv8f32_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f32( undef) - %nxv8f64_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f64( undef) - %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( undef) - %nxv8f64_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f64( undef) + %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( poison) + %nxv8f64_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f64( poison) + %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( poison) + %nxv8f64_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f64( poison) + %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( poison) + %nxv8f64_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f64( poison) + %nxv8f32_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f32( poison) + %nxv8f64_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f64( poison) + %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( poison) + %nxv8f64_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f64( poison) - %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( undef) - %nxv16f64_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f64( undef) - %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( undef) - %nxv16f64_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f64( undef) - %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( undef) - %nxv16f64_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f64( undef) - %nxv16f32_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f32( undef) - %nxv16f64_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f64( undef) - %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( undef) - %nxv16f64_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f64( undef) + %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( poison) + %nxv16f64_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f64( poison) + %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( poison) + %nxv16f64_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f64( poison) + %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( poison) + %nxv16f64_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f64( poison) + %nxv16f32_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f32( poison) + %nxv16f64_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f64( poison) + %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( poison) + %nxv16f64_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f64( poison) ret void } From acedc18931186dd735a72b2105d8e9d333b7a3f2 Mon Sep 17 00:00:00 2001 From: Elvis Wang Date: Wed, 11 Jun 2025 17:47:05 -0700 Subject: [PATCH 4/5] !Fixup, skip cases with scalar type. --- llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp | 3 +++ llvm/test/Analysis/CostModel/RISCV/cast-sat.ll | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp index 1590c8366bec1..5ddcae9ce93e6 100644 --- a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp +++ b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp @@ -1549,6 +1549,9 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA, auto SrcLT = getTypeLegalizationCost(SrcTy); auto DstLT = getTypeLegalizationCost(RetTy); + if (!SrcTy->isVectorTy()) + break; + if (!SrcLT.first.isValid() || !DstLT.first.isValid()) return InstructionCost::getInvalid(); diff --git a/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll b/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll index 4db394a061823..4a2bb47735b3e 100644 --- a/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll +++ b/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll @@ -1,6 +1,8 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 5 -; RUN: opt < %s -mtriple=riscv64 -mattr=+zve32f,+zvl128b,+f,+d,+zfh,+zvfh -passes="print" -cost-kind=throughput 2>&1 -disable-output | FileCheck %s --check-prefixes=CHECK,RV64ZVE32F -; RUN: opt < %s -mtriple=riscv64 -mattr=+v,+zvl128b,+f,+d,+zfh,+zvfh -passes="print" -cost-kind=throughput 2>&1 -disable-output | FileCheck %s --check-prefixes=CHECK,RV64V +; RUN: opt < %s -mtriple=riscv64 -mattr=+zve32f,+zvl128b,+f,+d,+zfh,+zvfh -passes="print" -cost-kind=throughput 2>&1 -disable-output | FileCheck %s --check-prefixes=RV64ZVE32F +; RUN: opt < %s -mtriple=riscv64 -mattr=+zve32f,+zvl128b,+f,+d,+zfh,+zvfh -passes="print" -cost-kind=throughput -intrinsic-cost-strategy=type-based-intrinsic-cost 2>&1 -disable-output | FileCheck %s --check-prefixes=RV64ZVE32F +; RUN: opt < %s -mtriple=riscv64 -mattr=+v,+zvl128b,+f,+d,+zfh,+zvfh -passes="print" -cost-kind=throughput 2>&1 -disable-output | FileCheck %s --check-prefixes=RV64V +; RUN: opt < %s -mtriple=riscv64 -mattr=+v,+zvl128b,+f,+d,+zfh,+zvfh -passes="print" -cost-kind=throughput -intrinsic-cost-strategy=type-based-intrinsic-cost 2>&1 -disable-output | FileCheck %s --check-prefixes=RV64V define void @fptoui_sat() { ; RV64ZVE32F-LABEL: 'fptoui_sat' @@ -579,5 +581,3 @@ define void @fptosi_sat() { ret void } -;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line: -; CHECK: {{.*}} From e98cc39e8100e5ccfc8459c468ffb308b1ac821f Mon Sep 17 00:00:00 2001 From: Elvis Wang Date: Mon, 7 Jul 2025 23:04:43 -0700 Subject: [PATCH 5/5] !fixup, Remove costs of maximum/minimum which is not in generated asm. --- .../Target/RISCV/RISCVTargetTransformInfo.cpp | 4 - .../test/Analysis/CostModel/RISCV/cast-sat.ll | 600 +++++++++--------- 2 files changed, 300 insertions(+), 304 deletions(-) diff --git a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp index 5ddcae9ce93e6..68dfce8cf8647 100644 --- a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp +++ b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp @@ -1555,10 +1555,6 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA, if (!SrcLT.first.isValid() || !DstLT.first.isValid()) return InstructionCost::getInvalid(); - IntrinsicCostAttributes Attrs1(Intrinsic::minnum, SrcTy, {SrcTy, SrcTy}); - Cost += getIntrinsicInstrCost(Attrs1, CostKind); - IntrinsicCostAttributes Attrs2(Intrinsic::maxnum, SrcTy, {SrcTy, SrcTy}); - Cost += getIntrinsicInstrCost(Attrs2, CostKind); Cost += getCastInstrCost(IsSigned ? Instruction::FPToSI : Instruction::FPToUI, RetTy, SrcTy, TTI::CastContextHint::None, CostKind); diff --git a/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll b/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll index 4a2bb47735b3e..f129f3825d162 100644 --- a/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll +++ b/llvm/test/Analysis/CostModel/RISCV/cast-sat.ll @@ -6,189 +6,189 @@ define void @fptoui_sat() { ; RV64ZVE32F-LABEL: 'fptoui_sat' -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 55 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 63 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 63 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 63 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 40 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 111 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 39 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 79 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f64( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f32_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f64( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f32_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f64( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f32_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f64( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f32_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f64( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f32_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f64( poison) ; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; ; RV64V-LABEL: 'fptoui_sat' -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f64_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f32_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv2f64_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4f32_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4f64_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv8f32_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv8f64_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 23 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 21 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv16f32_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv16f64_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptoui.sat.v1i16.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptoui.sat.v1i32.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptoui.sat.v1i64.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptoui.sat.v1i1.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptoui.sat.v2i8.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptoui.sat.v2i16.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptoui.sat.v2i32.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptoui.sat.v2i64.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptoui.sat.v2i1.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptoui.sat.v4i8.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptoui.sat.v4i16.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptoui.sat.v4i32.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptoui.sat.v4i64.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptoui.sat.v4i1.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptoui.sat.v8i8.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptoui.sat.v8i16.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptoui.sat.v8i32.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptoui.sat.v8i64.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptoui.sat.v8i1.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptoui.sat.nxv1i8.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptoui.sat.nxv1i16.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptoui.sat.nxv1i32.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv1f32_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv1f64_nxv1i64 = call @llvm.fptoui.sat.nxv1i64.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptoui.sat.nxv1i1.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptoui.sat.nxv2i8.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptoui.sat.nxv2i16.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptoui.sat.nxv2i32.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f32_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv2f64_nxv2i64 = call @llvm.fptoui.sat.nxv2i64.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptoui.sat.nxv2i1.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptoui.sat.nxv4i8.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptoui.sat.nxv4i16.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptoui.sat.nxv4i32.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f32_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv4f64_nxv4i64 = call @llvm.fptoui.sat.nxv4i64.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptoui.sat.nxv4i1.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptoui.sat.nxv8i8.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptoui.sat.nxv8i16.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptoui.sat.nxv8i32.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv8f32_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv8f64_nxv8i64 = call @llvm.fptoui.sat.nxv8i64.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptoui.sat.nxv8i1.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptoui.sat.nxv16i8.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptoui.sat.nxv16i16.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptoui.sat.nxv16i32.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %nxv16f32_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %nxv16f64_nxv16i64 = call @llvm.fptoui.sat.nxv16i64.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptoui.sat.nxv16i1.nxv16f64( poison) ; RV64V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; %v1f32_v1i8 = call <1 x i8> @llvm.fptoui.sat.v1i8.v1f32(<1 x float> poison) @@ -295,189 +295,189 @@ define void @fptoui_sat() { define void @fptosi_sat() { ; RV64ZVE32F-LABEL: 'fptosi_sat' -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 36 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 36 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 36 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 28 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 62 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 72 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 72 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 73 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 56 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 122 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 24 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 46 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 40 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 40 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 41 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 28 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 24 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 90 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f64( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f32_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv1f64_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f64( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f32_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv2f64_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f64( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f32_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv4f64_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f64( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f32_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv8f64_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f64( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f32_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f64( poison) -; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( poison) +; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( poison) ; RV64ZVE32F-NEXT: Cost Model: Invalid cost for instruction: %nxv16f64_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f64( poison) ; RV64ZVE32F-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; ; RV64V-LABEL: 'fptosi_sat' -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 21 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 22 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f32_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f64_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv2f32_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f64_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv4f32_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv4f64_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv8f32_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %nxv8f64_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 20 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 52 for instruction: %nxv16f32_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 60 for instruction: %nxv16f64_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f64( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 34 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( poison) -; RV64V-NEXT: Cost Model: Found an estimated cost of 70 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v1f64_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v1f64_v1i16 = call <1 x i16> @llvm.fptosi.sat.v1i16.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i32 = call <1 x i32> @llvm.fptosi.sat.v1i32.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f32_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v1f64_v1i64 = call <1 x i64> @llvm.fptosi.sat.v1i64.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f32_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f32(<1 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v1f64_v1i1 = call <1 x i1> @llvm.fptosi.sat.v1i1.v1f64(<1 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2f32_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v2f64_v2i8 = call <2 x i8> @llvm.fptosi.sat.v2i8.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v2f64_v2i16 = call <2 x i16> @llvm.fptosi.sat.v2i16.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f64_v2i32 = call <2 x i32> @llvm.fptosi.sat.v2i32.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f32_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v2f64_v2i64 = call <2 x i64> @llvm.fptosi.sat.v2i64.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f32_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f32(<2 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v2f64_v2i1 = call <2 x i1> @llvm.fptosi.sat.v2i1.v2f64(<2 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %v4f32_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f64_v4i8 = call <4 x i8> @llvm.fptosi.sat.v4i8.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v4f64_v4i16 = call <4 x i16> @llvm.fptosi.sat.v4i16.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %v4f32_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f64_v4i32 = call <4 x i32> @llvm.fptosi.sat.v4i32.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v4f32_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f64_v4i64 = call <4 x i64> @llvm.fptosi.sat.v4i64.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v4f32_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f32(<4 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v4f64_v4i1 = call <4 x i1> @llvm.fptosi.sat.v4i1.v4f64(<4 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %v8f32_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %v8f64_v8i8 = call <8 x i8> @llvm.fptosi.sat.v8i8.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %v8f32_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v8f64_v8i16 = call <8 x i16> @llvm.fptosi.sat.v8i16.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %v8f32_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v8f64_v8i32 = call <8 x i32> @llvm.fptosi.sat.v8i32.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %v8f32_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %v8f64_v8i64 = call <8 x i64> @llvm.fptosi.sat.v8i64.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %v8f32_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f32(<8 x float> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %v8f64_v8i1 = call <8 x i1> @llvm.fptosi.sat.v8i1.v8f64(<8 x double> poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv1f32_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv1f64_nxv1i8 = call @llvm.fptosi.sat.nxv1i8.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f32_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv1f64_nxv1i16 = call @llvm.fptosi.sat.nxv1i16.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f32_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f64_nxv1i32 = call @llvm.fptosi.sat.nxv1i32.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f32_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv1f64_nxv1i64 = call @llvm.fptosi.sat.nxv1i64.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv1f32_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv1f64_nxv1i1 = call @llvm.fptosi.sat.nxv1i1.nxv1f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %nxv2f32_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv2f64_nxv2i8 = call @llvm.fptosi.sat.nxv2i8.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f32_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv2f64_nxv2i16 = call @llvm.fptosi.sat.nxv2i16.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %nxv2f32_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f64_nxv2i32 = call @llvm.fptosi.sat.nxv2i32.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv2f32_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv2f64_nxv2i64 = call @llvm.fptosi.sat.nxv2i64.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv2f32_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv2f64_nxv2i1 = call @llvm.fptosi.sat.nxv2i1.nxv2f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %nxv4f32_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %nxv4f64_nxv4i8 = call @llvm.fptosi.sat.nxv4i8.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %nxv4f32_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv4f64_nxv4i16 = call @llvm.fptosi.sat.nxv4i16.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %nxv4f32_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv4f64_nxv4i32 = call @llvm.fptosi.sat.nxv4i32.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv4f32_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %nxv4f64_nxv4i64 = call @llvm.fptosi.sat.nxv4i64.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %nxv4f32_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %nxv4f64_nxv4i1 = call @llvm.fptosi.sat.nxv4i1.nxv4f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv8f32_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %nxv8f64_nxv8i8 = call @llvm.fptosi.sat.nxv8i8.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %nxv8f32_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %nxv8f64_nxv8i16 = call @llvm.fptosi.sat.nxv8i16.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %nxv8f32_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %nxv8f64_nxv8i32 = call @llvm.fptosi.sat.nxv8i32.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %nxv8f32_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %nxv8f64_nxv8i64 = call @llvm.fptosi.sat.nxv8i64.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 18 for instruction: %nxv8f32_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %nxv8f64_nxv8i1 = call @llvm.fptosi.sat.nxv8i1.nxv8f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %nxv16f32_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 51 for instruction: %nxv16f64_nxv16i8 = call @llvm.fptosi.sat.nxv16i8.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %nxv16f32_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 51 for instruction: %nxv16f64_nxv16i16 = call @llvm.fptosi.sat.nxv16i16.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %nxv16f32_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 51 for instruction: %nxv16f64_nxv16i32 = call @llvm.fptosi.sat.nxv16i32.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 50 for instruction: %nxv16f32_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 52 for instruction: %nxv16f64_nxv16i64 = call @llvm.fptosi.sat.nxv16i64.nxv16f64( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %nxv16f32_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f32( poison) +; RV64V-NEXT: Cost Model: Found an estimated cost of 62 for instruction: %nxv16f64_nxv16i1 = call @llvm.fptosi.sat.nxv16i1.nxv16f64( poison) ; RV64V-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; %v1f32_v1i8 = call <1 x i8> @llvm.fptosi.sat.v1i8.v1f32(<1 x float> poison)