[llvm] d3f83ca - [RISCV] Refresh two autogened tests to avoid future whitespace diffs [nfc]

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 9 11:30:40 PDT 2022


Author: Philip Reames
Date: 2022-08-09T11:30:32-07:00
New Revision: d3f83caeb409b6030ee50c7a82e2fedb1c53fc05

URL: https://github.com/llvm/llvm-project/commit/d3f83caeb409b6030ee50c7a82e2fedb1c53fc05
DIFF: https://github.com/llvm/llvm-project/commit/d3f83caeb409b6030ee50c7a82e2fedb1c53fc05.diff

LOG: [RISCV] Refresh two autogened tests to avoid future whitespace diffs [nfc]

Added: 
    

Modified: 
    llvm/test/Analysis/CostModel/RISCV/cast.ll
    llvm/test/Analysis/CostModel/RISCV/reduce-fadd.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Analysis/CostModel/RISCV/cast.ll b/llvm/test/Analysis/CostModel/RISCV/cast.ll
index 9c05d6129aca2..981c2cb98aeb6 100644
--- a/llvm/test/Analysis/CostModel/RISCV/cast.ll
+++ b/llvm/test/Analysis/CostModel/RISCV/cast.ll
@@ -4,54 +4,55 @@
 
 define void @ext() {
 ; RISCV32-LABEL: 'ext'
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i8i16 = sext <4 x i8> undef to <4 x i16>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z4i8i16 = zext <4 x i8> undef to <4 x i16>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i8i32 = sext <4 x i8> undef to <4 x i32>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z4i8i32 = zext <4 x i8> undef to <4 x i32>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i8i64 = sext <4 x i8> undef to <4 x i64>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z4i8i64 = zext <4 x i8> undef to <4 x i64>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i16i32 = sext <4 x i16> undef to <4 x i32>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z4i16i32 = zext <4 x i16> undef to <4 x i32>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i16i64 = sext <4 x i16> undef to <4 x i64>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z4i16i64 = zext <4 x i16> undef to <4 x i64>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i32i64 = sext <4 x i32> undef to <4 x i64>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z4i32i64 = zext <4 x i32> undef to <4 x i64>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s8i8i16 = sext <8 x i8> undef to <8 x i16>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z8i8i16 = zext <8 x i8> undef to <8 x i16>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s8i8i32 = sext <8 x i8> undef to <8 x i32>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z8i8i32 = zext <8 x i8> undef to <8 x i32>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s8i8i64 = sext <8 x i8> undef to <8 x i64>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z8i8i64 = zext <8 x i8> undef to <8 x i64>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s8i16i32 = sext <8 x i16> undef to <8 x i32>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z8i16i32 = zext <8 x i16> undef to <8 x i32>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s8i16i64 = sext <8 x i16> undef to <8 x i64>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z8i16i64 = zext <8 x i16> undef to <8 x i64>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i8i16 = sext <4 x i8> undef to <4 x i16>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z4i8i16 = zext <4 x i8> undef to <4 x i16>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i8i32 = sext <4 x i8> undef to <4 x i32>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z4i8i32 = zext <4 x i8> undef to <4 x i32>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i8i64 = sext <4 x i8> undef to <4 x i64>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z4i8i64 = zext <4 x i8> undef to <4 x i64>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i16i32 = sext <4 x i16> undef to <4 x i32>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z4i16i32 = zext <4 x i16> undef to <4 x i32>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i16i64 = sext <4 x i16> undef to <4 x i64>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z4i16i64 = zext <4 x i16> undef to <4 x i64>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i32i64 = sext <4 x i32> undef to <4 x i64>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z4i32i64 = zext <4 x i32> undef to <4 x i64>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s8i8i16 = sext <8 x i8> undef to <8 x i16>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z8i8i16 = zext <8 x i8> undef to <8 x i16>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s8i8i32 = sext <8 x i8> undef to <8 x i32>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z8i8i32 = zext <8 x i8> undef to <8 x i32>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s8i8i64 = sext <8 x i8> undef to <8 x i64>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z8i8i64 = zext <8 x i8> undef to <8 x i64>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s8i16i32 = sext <8 x i16> undef to <8 x i32>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z8i16i32 = zext <8 x i16> undef to <8 x i32>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s8i16i64 = sext <8 x i16> undef to <8 x i64>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z8i16i64 = zext <8 x i16> undef to <8 x i64>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
 ;
 ; RISCV64-LABEL: 'ext'
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i8i16 = sext <4 x i8> undef to <4 x i16>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z4i8i16 = zext <4 x i8> undef to <4 x i16>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i8i32 = sext <4 x i8> undef to <4 x i32>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z4i8i32 = zext <4 x i8> undef to <4 x i32>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i8i64 = sext <4 x i8> undef to <4 x i64>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z4i8i64 = zext <4 x i8> undef to <4 x i64>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i16i32 = sext <4 x i16> undef to <4 x i32>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z4i16i32 = zext <4 x i16> undef to <4 x i32>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i16i64 = sext <4 x i16> undef to <4 x i64>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z4i16i64 = zext <4 x i16> undef to <4 x i64>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i32i64 = sext <4 x i32> undef to <4 x i64>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z4i32i64 = zext <4 x i32> undef to <4 x i64>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s8i8i16 = sext <8 x i8> undef to <8 x i16>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z8i8i16 = zext <8 x i8> undef to <8 x i16>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s8i8i32 = sext <8 x i8> undef to <8 x i32>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z8i8i32 = zext <8 x i8> undef to <8 x i32>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s8i8i64 = sext <8 x i8> undef to <8 x i64>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z8i8i64 = zext <8 x i8> undef to <8 x i64>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s8i16i32 = sext <8 x i16> undef to <8 x i32>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z8i16i32 = zext <8 x i16> undef to <8 x i32>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s8i16i64 = sext <8 x i16> undef to <8 x i64>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %z8i16i64 = zext <8 x i16> undef to <8 x i64>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i8i16 = sext <4 x i8> undef to <4 x i16>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z4i8i16 = zext <4 x i8> undef to <4 x i16>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i8i32 = sext <4 x i8> undef to <4 x i32>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z4i8i32 = zext <4 x i8> undef to <4 x i32>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i8i64 = sext <4 x i8> undef to <4 x i64>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z4i8i64 = zext <4 x i8> undef to <4 x i64>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i16i32 = sext <4 x i16> undef to <4 x i32>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z4i16i32 = zext <4 x i16> undef to <4 x i32>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i16i64 = sext <4 x i16> undef to <4 x i64>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z4i16i64 = zext <4 x i16> undef to <4 x i64>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i32i64 = sext <4 x i32> undef to <4 x i64>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z4i32i64 = zext <4 x i32> undef to <4 x i64>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s8i8i16 = sext <8 x i8> undef to <8 x i16>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z8i8i16 = zext <8 x i8> undef to <8 x i16>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s8i8i32 = sext <8 x i8> undef to <8 x i32>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z8i8i32 = zext <8 x i8> undef to <8 x i32>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s8i8i64 = sext <8 x i8> undef to <8 x i64>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z8i8i64 = zext <8 x i8> undef to <8 x i64>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s8i16i32 = sext <8 x i16> undef to <8 x i32>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z8i16i32 = zext <8 x i16> undef to <8 x i32>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s8i16i64 = sext <8 x i16> undef to <8 x i64>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %z8i16i64 = zext <8 x i16> undef to <8 x i64>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
+;
   %s4i8i16 = sext <4 x i8>  undef to <4 x i16>
   %z4i8i16 = zext <4 x i8>  undef to <4 x i16>
   %s4i8i32 = sext <4 x i8>  undef to <4 x i32>
@@ -80,22 +81,23 @@ define void @ext() {
 
 define void @trunc() {
 ; RISCV32-LABEL: 'trunc'
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i8i16 = trunc <4 x i16> undef to <4 x i8>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s4i8i32 = trunc <4 x i32> undef to <4 x i8>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 3 for instruction:   %s4i8i64 = trunc <4 x i64> undef to <4 x i8>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i16i32 = trunc <4 x i32> undef to <4 x i16>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s4i16i64 = trunc <4 x i64> undef to <4 x i16>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i32i64 = trunc <4 x i64> undef to <4 x i32>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i8i16 = trunc <4 x i16> undef to <4 x i8>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s4i8i32 = trunc <4 x i32> undef to <4 x i8>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %s4i8i64 = trunc <4 x i64> undef to <4 x i8>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i16i32 = trunc <4 x i32> undef to <4 x i16>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s4i16i64 = trunc <4 x i64> undef to <4 x i16>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i32i64 = trunc <4 x i64> undef to <4 x i32>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
 ;
 ; RISCV64-LABEL: 'trunc'
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i8i16 = trunc <4 x i16> undef to <4 x i8>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s4i8i32 = trunc <4 x i32> undef to <4 x i8>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 3 for instruction:   %s4i8i64 = trunc <4 x i64> undef to <4 x i8>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i16i32 = trunc <4 x i32> undef to <4 x i16>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s4i16i64 = trunc <4 x i64> undef to <4 x i16>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4i32i64 = trunc <4 x i64> undef to <4 x i32>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i8i16 = trunc <4 x i16> undef to <4 x i8>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s4i8i32 = trunc <4 x i32> undef to <4 x i8>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %s4i8i64 = trunc <4 x i64> undef to <4 x i8>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i16i32 = trunc <4 x i32> undef to <4 x i16>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s4i16i64 = trunc <4 x i64> undef to <4 x i16>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4i32i64 = trunc <4 x i64> undef to <4 x i32>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
+;
   %s4i8i16 = trunc <4 x i16> undef to <4 x i8>
   %s4i8i32 = trunc <4 x i32> undef to <4 x i8>
   %s4i8i64 = trunc <4 x i64> undef to <4 x i8>
@@ -107,16 +109,17 @@ define void @trunc() {
 
 define void @fpext() {
 ; RISCV32-LABEL: 'fpext'
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %v0 = fpext <8 x half> undef to <8 x float>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %v1 = fpext <8 x half> undef to <8 x double>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %v2 = fpext <8 x float> undef to <8 x double>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v0 = fpext <8 x half> undef to <8 x float>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v1 = fpext <8 x half> undef to <8 x double>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v2 = fpext <8 x float> undef to <8 x double>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
 ;
 ; RISCV64-LABEL: 'fpext'
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %v0 = fpext <8 x half> undef to <8 x float>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %v1 = fpext <8 x half> undef to <8 x double>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %v2 = fpext <8 x float> undef to <8 x double>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v0 = fpext <8 x half> undef to <8 x float>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v1 = fpext <8 x half> undef to <8 x double>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v2 = fpext <8 x float> undef to <8 x double>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
+;
   %v0 = fpext <8 x half>  undef to <8 x float>
   %v1 = fpext <8 x half>  undef to <8 x double>
   %v2 = fpext <8 x float> undef to <8 x double>
@@ -125,16 +128,17 @@ define void @fpext() {
 
 define void @ftrunc() {
 ; RISCV32-LABEL: 'ftrunc'
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %v0 = fptrunc <8 x float> undef to <8 x half>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %v1 = fptrunc <8 x double> undef to <8 x half>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %v2 = fptrunc <8 x double> undef to <8 x float>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v0 = fptrunc <8 x float> undef to <8 x half>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v1 = fptrunc <8 x double> undef to <8 x half>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v2 = fptrunc <8 x double> undef to <8 x float>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
 ;
 ; RISCV64-LABEL: 'ftrunc'
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %v0 = fptrunc <8 x float> undef to <8 x half>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %v1 = fptrunc <8 x double> undef to <8 x half>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %v2 = fptrunc <8 x double> undef to <8 x float>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v0 = fptrunc <8 x float> undef to <8 x half>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %v1 = fptrunc <8 x double> undef to <8 x half>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %v2 = fptrunc <8 x double> undef to <8 x float>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
+;
   %v0 = fptrunc <8 x float> undef to <8 x half>
   %v1 = fptrunc <8 x double> undef to <8 x half>
   %v2 = fptrunc <8 x double> undef to <8 x float>
@@ -143,58 +147,59 @@ define void @ftrunc() {
 
 define void @fp_to_int() {
 ; RISCV32-LABEL: 'fp_to_int'
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s0 = fptosi <4 x half> undef to <4 x i8>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s1 = fptosi <4 x float> undef to <4 x i8>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 3 for instruction:   %s2 = fptosi <4 x double> undef to <4 x i8>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s3 = fptosi <4 x half> undef to <4 x i16>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4 = fptosi <4 x float> undef to <4 x i16>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s5 = fptosi <4 x double> undef to <4 x i16>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s6 = fptosi <4 x half> undef to <4 x i32>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s7 = fptosi <4 x float> undef to <4 x i32>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s8 = fptosi <4 x double> undef to <4 x i32>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s9 = fptosi <4 x half> undef to <4 x i64>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s10 = fptosi <4 x float> undef to <4 x i64>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s11 = fptosi <4 x double> undef to <4 x i16>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u0 = fptoui <4 x half> undef to <4 x i8>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u1 = fptoui <4 x float> undef to <4 x i8>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 3 for instruction:   %u2 = fptoui <4 x double> undef to <4 x i8>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u3 = fptoui <4 x half> undef to <4 x i16>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u4 = fptoui <4 x float> undef to <4 x i16>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u5 = fptoui <4 x double> undef to <4 x i16>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u6 = fptoui <4 x half> undef to <4 x i32>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u7 = fptoui <4 x float> undef to <4 x i32>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u8 = fptoui <4 x double> undef to <4 x i32>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u9 = fptoui <4 x half> undef to <4 x i64>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u10 = fptoui <4 x float> undef to <4 x i64>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u11 = fptoui <4 x double> undef to <4 x i16>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s0 = fptosi <4 x half> undef to <4 x i8>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s1 = fptosi <4 x float> undef to <4 x i8>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %s2 = fptosi <4 x double> undef to <4 x i8>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s3 = fptosi <4 x half> undef to <4 x i16>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4 = fptosi <4 x float> undef to <4 x i16>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s5 = fptosi <4 x double> undef to <4 x i16>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s6 = fptosi <4 x half> undef to <4 x i32>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s7 = fptosi <4 x float> undef to <4 x i32>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s8 = fptosi <4 x double> undef to <4 x i32>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s9 = fptosi <4 x half> undef to <4 x i64>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s10 = fptosi <4 x float> undef to <4 x i64>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s11 = fptosi <4 x double> undef to <4 x i16>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u0 = fptoui <4 x half> undef to <4 x i8>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u1 = fptoui <4 x float> undef to <4 x i8>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %u2 = fptoui <4 x double> undef to <4 x i8>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u3 = fptoui <4 x half> undef to <4 x i16>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u4 = fptoui <4 x float> undef to <4 x i16>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u5 = fptoui <4 x double> undef to <4 x i16>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u6 = fptoui <4 x half> undef to <4 x i32>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u7 = fptoui <4 x float> undef to <4 x i32>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u8 = fptoui <4 x double> undef to <4 x i32>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u9 = fptoui <4 x half> undef to <4 x i64>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u10 = fptoui <4 x float> undef to <4 x i64>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u11 = fptoui <4 x double> undef to <4 x i16>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
 ;
 ; RISCV64-LABEL: 'fp_to_int'
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s0 = fptosi <4 x half> undef to <4 x i8>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s1 = fptosi <4 x float> undef to <4 x i8>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 3 for instruction:   %s2 = fptosi <4 x double> undef to <4 x i8>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s3 = fptosi <4 x half> undef to <4 x i16>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4 = fptosi <4 x float> undef to <4 x i16>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s5 = fptosi <4 x double> undef to <4 x i16>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s6 = fptosi <4 x half> undef to <4 x i32>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s7 = fptosi <4 x float> undef to <4 x i32>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s8 = fptosi <4 x double> undef to <4 x i32>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s9 = fptosi <4 x half> undef to <4 x i64>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s10 = fptosi <4 x float> undef to <4 x i64>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s11 = fptosi <4 x double> undef to <4 x i16>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u0 = fptoui <4 x half> undef to <4 x i8>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u1 = fptoui <4 x float> undef to <4 x i8>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 3 for instruction:   %u2 = fptoui <4 x double> undef to <4 x i8>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u3 = fptoui <4 x half> undef to <4 x i16>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u4 = fptoui <4 x float> undef to <4 x i16>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u5 = fptoui <4 x double> undef to <4 x i16>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u6 = fptoui <4 x half> undef to <4 x i32>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u7 = fptoui <4 x float> undef to <4 x i32>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u8 = fptoui <4 x double> undef to <4 x i32>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u9 = fptoui <4 x half> undef to <4 x i64>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u10 = fptoui <4 x float> undef to <4 x i64>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u11 = fptoui <4 x double> undef to <4 x i16>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s0 = fptosi <4 x half> undef to <4 x i8>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s1 = fptosi <4 x float> undef to <4 x i8>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %s2 = fptosi <4 x double> undef to <4 x i8>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s3 = fptosi <4 x half> undef to <4 x i16>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4 = fptosi <4 x float> undef to <4 x i16>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s5 = fptosi <4 x double> undef to <4 x i16>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s6 = fptosi <4 x half> undef to <4 x i32>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s7 = fptosi <4 x float> undef to <4 x i32>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s8 = fptosi <4 x double> undef to <4 x i32>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s9 = fptosi <4 x half> undef to <4 x i64>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s10 = fptosi <4 x float> undef to <4 x i64>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s11 = fptosi <4 x double> undef to <4 x i16>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u0 = fptoui <4 x half> undef to <4 x i8>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u1 = fptoui <4 x float> undef to <4 x i8>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %u2 = fptoui <4 x double> undef to <4 x i8>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u3 = fptoui <4 x half> undef to <4 x i16>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u4 = fptoui <4 x float> undef to <4 x i16>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u5 = fptoui <4 x double> undef to <4 x i16>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u6 = fptoui <4 x half> undef to <4 x i32>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u7 = fptoui <4 x float> undef to <4 x i32>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u8 = fptoui <4 x double> undef to <4 x i32>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u9 = fptoui <4 x half> undef to <4 x i64>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u10 = fptoui <4 x float> undef to <4 x i64>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u11 = fptoui <4 x double> undef to <4 x i16>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
+;
   %s0 = fptosi <4 x half> undef to <4 x i8>
   %s1 = fptosi <4 x float> undef to <4 x i8>
   %s2 = fptosi <4 x double> undef to <4 x i8>
@@ -225,58 +230,59 @@ define void @fp_to_int() {
 
 define void @int_to_fp() {
 ; RISCV32-LABEL: 'int_to_fp'
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s0 = sitofp <4 x i8> undef to <4 x half>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s1 = sitofp <4 x i8> undef to <4 x float>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s2 = sitofp <4 x i8> undef to <4 x double>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s3 = sitofp <4 x i16> undef to <4 x half>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4 = sitofp <4 x i16> undef to <4 x float>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s5 = sitofp <4 x i16> undef to <4 x double>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s6 = sitofp <4 x i32> undef to <4 x half>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s7 = sitofp <4 x i32> undef to <4 x float>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s8 = sitofp <4 x i32> undef to <4 x double>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s9 = sitofp <4 x i64> undef to <4 x half>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s10 = sitofp <4 x i64> undef to <4 x float>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s11 = sitofp <4 x i16> undef to <4 x double>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u0 = uitofp <4 x i8> undef to <4 x half>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u1 = uitofp <4 x i8> undef to <4 x float>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u2 = uitofp <4 x i8> undef to <4 x double>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u3 = uitofp <4 x i16> undef to <4 x half>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u4 = uitofp <4 x i16> undef to <4 x float>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u5 = uitofp <4 x i16> undef to <4 x double>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u6 = uitofp <4 x i32> undef to <4 x half>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u7 = uitofp <4 x i32> undef to <4 x float>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u8 = uitofp <4 x i32> undef to <4 x double>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u9 = uitofp <4 x i64> undef to <4 x half>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u10 = uitofp <4 x i64> undef to <4 x float>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u11 = uitofp <4 x i16> undef to <4 x double>
-; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s0 = sitofp <4 x i8> undef to <4 x half>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s1 = sitofp <4 x i8> undef to <4 x float>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s2 = sitofp <4 x i8> undef to <4 x double>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s3 = sitofp <4 x i16> undef to <4 x half>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4 = sitofp <4 x i16> undef to <4 x float>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s5 = sitofp <4 x i16> undef to <4 x double>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s6 = sitofp <4 x i32> undef to <4 x half>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s7 = sitofp <4 x i32> undef to <4 x float>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s8 = sitofp <4 x i32> undef to <4 x double>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s9 = sitofp <4 x i64> undef to <4 x half>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s10 = sitofp <4 x i64> undef to <4 x float>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s11 = sitofp <4 x i16> undef to <4 x double>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u0 = uitofp <4 x i8> undef to <4 x half>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u1 = uitofp <4 x i8> undef to <4 x float>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u2 = uitofp <4 x i8> undef to <4 x double>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u3 = uitofp <4 x i16> undef to <4 x half>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u4 = uitofp <4 x i16> undef to <4 x float>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u5 = uitofp <4 x i16> undef to <4 x double>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u6 = uitofp <4 x i32> undef to <4 x half>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u7 = uitofp <4 x i32> undef to <4 x float>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u8 = uitofp <4 x i32> undef to <4 x double>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u9 = uitofp <4 x i64> undef to <4 x half>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u10 = uitofp <4 x i64> undef to <4 x float>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u11 = uitofp <4 x i16> undef to <4 x double>
+; RISCV32-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
 ;
 ; RISCV64-LABEL: 'int_to_fp'
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s0 = sitofp <4 x i8> undef to <4 x half>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s1 = sitofp <4 x i8> undef to <4 x float>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s2 = sitofp <4 x i8> undef to <4 x double>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s3 = sitofp <4 x i16> undef to <4 x half>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s4 = sitofp <4 x i16> undef to <4 x float>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s5 = sitofp <4 x i16> undef to <4 x double>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s6 = sitofp <4 x i32> undef to <4 x half>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s7 = sitofp <4 x i32> undef to <4 x float>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s8 = sitofp <4 x i32> undef to <4 x double>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s9 = sitofp <4 x i64> undef to <4 x half>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %s10 = sitofp <4 x i64> undef to <4 x float>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %s11 = sitofp <4 x i16> undef to <4 x double>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u0 = uitofp <4 x i8> undef to <4 x half>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u1 = uitofp <4 x i8> undef to <4 x float>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u2 = uitofp <4 x i8> undef to <4 x double>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u3 = uitofp <4 x i16> undef to <4 x half>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u4 = uitofp <4 x i16> undef to <4 x float>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u5 = uitofp <4 x i16> undef to <4 x double>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u6 = uitofp <4 x i32> undef to <4 x half>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u7 = uitofp <4 x i32> undef to <4 x float>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u8 = uitofp <4 x i32> undef to <4 x double>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u9 = uitofp <4 x i64> undef to <4 x half>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   %u10 = uitofp <4 x i64> undef to <4 x float>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %u11 = uitofp <4 x i16> undef to <4 x double>
-; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s0 = sitofp <4 x i8> undef to <4 x half>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s1 = sitofp <4 x i8> undef to <4 x float>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s2 = sitofp <4 x i8> undef to <4 x double>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s3 = sitofp <4 x i16> undef to <4 x half>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s4 = sitofp <4 x i16> undef to <4 x float>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s5 = sitofp <4 x i16> undef to <4 x double>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s6 = sitofp <4 x i32> undef to <4 x half>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s7 = sitofp <4 x i32> undef to <4 x float>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s8 = sitofp <4 x i32> undef to <4 x double>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s9 = sitofp <4 x i64> undef to <4 x half>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s10 = sitofp <4 x i64> undef to <4 x float>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %s11 = sitofp <4 x i16> undef to <4 x double>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u0 = uitofp <4 x i8> undef to <4 x half>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u1 = uitofp <4 x i8> undef to <4 x float>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u2 = uitofp <4 x i8> undef to <4 x double>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u3 = uitofp <4 x i16> undef to <4 x half>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u4 = uitofp <4 x i16> undef to <4 x float>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u5 = uitofp <4 x i16> undef to <4 x double>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u6 = uitofp <4 x i32> undef to <4 x half>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u7 = uitofp <4 x i32> undef to <4 x float>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u8 = uitofp <4 x i32> undef to <4 x double>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u9 = uitofp <4 x i64> undef to <4 x half>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %u10 = uitofp <4 x i64> undef to <4 x float>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %u11 = uitofp <4 x i16> undef to <4 x double>
+; RISCV64-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
+;
   %s0 = sitofp <4 x i8> undef to <4 x half>
   %s1 = sitofp <4 x i8> undef to <4 x float>
   %s2 = sitofp <4 x i8> undef to <4 x double>

diff  --git a/llvm/test/Analysis/CostModel/RISCV/reduce-fadd.ll b/llvm/test/Analysis/CostModel/RISCV/reduce-fadd.ll
index 89516ec15a91f..5f8d21c7545be 100644
--- a/llvm/test/Analysis/CostModel/RISCV/reduce-fadd.ll
+++ b/llvm/test/Analysis/CostModel/RISCV/reduce-fadd.ll
@@ -1,17 +1,18 @@
-; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
 ; RUN: opt < %s -mtriple=riscv64 -mattr=+v,+zfh,+experimental-zvfh -riscv-v-vector-bits-min=256 -passes='print<cost-model>' -cost-kind=throughput 2>&1 -disable-output | FileCheck %s --check-prefix=FP-REDUCE
 
 define void @reduce_fadd_half() {
 ; FP-REDUCE-LABEL: 'reduce_fadd_half'
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %V1 = call fast half @llvm.vector.reduce.fadd.v1f16(half 0xH0000, <1 x half> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 3 for instruction:   %V2 = call fast half @llvm.vector.reduce.fadd.v2f16(half 0xH0000, <2 x half> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction:   %V4 = call fast half @llvm.vector.reduce.fadd.v4f16(half 0xH0000, <4 x half> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 5 for instruction:   %V8 = call fast half @llvm.vector.reduce.fadd.v8f16(half 0xH0000, <8 x half> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 6 for instruction:   %V16 = call fast half @llvm.vector.reduce.fadd.v16f16(half 0xH0000, <16 x half> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 7 for instruction:   %v32 = call fast half @llvm.vector.reduce.fadd.v32f16(half 0xH0000, <32 x half> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 8 for instruction:   %V64 = call fast half @llvm.vector.reduce.fadd.v64f16(half 0xH0000, <64 x half> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 9 for instruction:   %V128 = call fast half @llvm.vector.reduce.fadd.v128f16(half 0xH0000, <128 x half> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %V1 = call fast half @llvm.vector.reduce.fadd.v1f16(half 0xH0000, <1 x half> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %V2 = call fast half @llvm.vector.reduce.fadd.v2f16(half 0xH0000, <2 x half> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %V4 = call fast half @llvm.vector.reduce.fadd.v4f16(half 0xH0000, <4 x half> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 5 for instruction: %V8 = call fast half @llvm.vector.reduce.fadd.v8f16(half 0xH0000, <8 x half> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 6 for instruction: %V16 = call fast half @llvm.vector.reduce.fadd.v16f16(half 0xH0000, <16 x half> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 7 for instruction: %v32 = call fast half @llvm.vector.reduce.fadd.v32f16(half 0xH0000, <32 x half> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %V64 = call fast half @llvm.vector.reduce.fadd.v64f16(half 0xH0000, <64 x half> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 9 for instruction: %V128 = call fast half @llvm.vector.reduce.fadd.v128f16(half 0xH0000, <128 x half> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
+;
   %V1 = call fast half @llvm.vector.reduce.fadd.v1f16(half 0.0, <1 x half> undef)
   %V2 = call fast half @llvm.vector.reduce.fadd.v2f16(half 0.0, <2 x half> undef)
   %V4 = call fast half @llvm.vector.reduce.fadd.v4f16(half 0.0, <4 x half> undef)
@@ -25,15 +26,16 @@ define void @reduce_fadd_half() {
 
 define void @reduce_fadd_float() {
 ; FP-REDUCE-LABEL: 'reduce_fadd_float'
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %V1 = call fast float @llvm.vector.reduce.fadd.v1f32(float 0.000000e+00, <1 x float> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 3 for instruction:   %V2 = call fast float @llvm.vector.reduce.fadd.v2f32(float 0.000000e+00, <2 x float> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction:   %V4 = call fast float @llvm.vector.reduce.fadd.v4f32(float 0.000000e+00, <4 x float> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 5 for instruction:   %V8 = call fast float @llvm.vector.reduce.fadd.v8f32(float 0.000000e+00, <8 x float> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 6 for instruction:   %V16 = call fast float @llvm.vector.reduce.fadd.v16f32(float 0.000000e+00, <16 x float> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 7 for instruction:   %v32 = call fast float @llvm.vector.reduce.fadd.v32f32(float 0.000000e+00, <32 x float> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 8 for instruction:   %V64 = call fast float @llvm.vector.reduce.fadd.v64f32(float 0.000000e+00, <64 x float> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 10 for instruction:   %V128 = call fast float @llvm.vector.reduce.fadd.v128f32(float 0.000000e+00, <128 x float> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %V1 = call fast float @llvm.vector.reduce.fadd.v1f32(float 0.000000e+00, <1 x float> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %V2 = call fast float @llvm.vector.reduce.fadd.v2f32(float 0.000000e+00, <2 x float> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %V4 = call fast float @llvm.vector.reduce.fadd.v4f32(float 0.000000e+00, <4 x float> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 5 for instruction: %V8 = call fast float @llvm.vector.reduce.fadd.v8f32(float 0.000000e+00, <8 x float> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 6 for instruction: %V16 = call fast float @llvm.vector.reduce.fadd.v16f32(float 0.000000e+00, <16 x float> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 7 for instruction: %v32 = call fast float @llvm.vector.reduce.fadd.v32f32(float 0.000000e+00, <32 x float> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 8 for instruction: %V64 = call fast float @llvm.vector.reduce.fadd.v64f32(float 0.000000e+00, <64 x float> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: %V128 = call fast float @llvm.vector.reduce.fadd.v128f32(float 0.000000e+00, <128 x float> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
+;
   %V1 = call fast float @llvm.vector.reduce.fadd.v1f32(float 0.0, <1 x float> undef)
   %V2 = call fast float @llvm.vector.reduce.fadd.v2f32(float 0.0, <2 x float> undef)
   %V4 = call fast float @llvm.vector.reduce.fadd.v4f32(float 0.0, <4 x float> undef)
@@ -47,15 +49,16 @@ define void @reduce_fadd_float() {
 
 define void @reduce_fadd_double() {
 ; FP-REDUCE-LABEL: 'reduce_fadd_double'
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 2 for instruction:   %V1 = call fast double @llvm.vector.reduce.fadd.v1f64(double 0.000000e+00, <1 x double> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 3 for instruction:   %V2 = call fast double @llvm.vector.reduce.fadd.v2f64(double 0.000000e+00, <2 x double> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction:   %V4 = call fast double @llvm.vector.reduce.fadd.v4f64(double 0.000000e+00, <4 x double> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 5 for instruction:   %V8 = call fast double @llvm.vector.reduce.fadd.v8f64(double 0.000000e+00, <8 x double> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 6 for instruction:   %V16 = call fast double @llvm.vector.reduce.fadd.v16f64(double 0.000000e+00, <16 x double> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 7 for instruction:   %v32 = call fast double @llvm.vector.reduce.fadd.v32f64(double 0.000000e+00, <32 x double> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 9 for instruction:   %V64 = call fast double @llvm.vector.reduce.fadd.v64f64(double 0.000000e+00, <64 x double> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 12 for instruction:   %V128 = call fast double @llvm.vector.reduce.fadd.v128f64(double 0.000000e+00, <128 x double> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 2 for instruction: %V1 = call fast double @llvm.vector.reduce.fadd.v1f64(double 0.000000e+00, <1 x double> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %V2 = call fast double @llvm.vector.reduce.fadd.v2f64(double 0.000000e+00, <2 x double> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %V4 = call fast double @llvm.vector.reduce.fadd.v4f64(double 0.000000e+00, <4 x double> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 5 for instruction: %V8 = call fast double @llvm.vector.reduce.fadd.v8f64(double 0.000000e+00, <8 x double> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 6 for instruction: %V16 = call fast double @llvm.vector.reduce.fadd.v16f64(double 0.000000e+00, <16 x double> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 7 for instruction: %v32 = call fast double @llvm.vector.reduce.fadd.v32f64(double 0.000000e+00, <32 x double> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 9 for instruction: %V64 = call fast double @llvm.vector.reduce.fadd.v64f64(double 0.000000e+00, <64 x double> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 12 for instruction: %V128 = call fast double @llvm.vector.reduce.fadd.v128f64(double 0.000000e+00, <128 x double> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
+;
   %V1 = call fast double @llvm.vector.reduce.fadd.v1f64(double 0.0, <1 x double> undef)
   %V2 = call fast double @llvm.vector.reduce.fadd.v2f64(double 0.0, <2 x double> undef)
   %V4 = call fast double @llvm.vector.reduce.fadd.v4f64(double 0.0, <4 x double> undef)
@@ -69,15 +72,16 @@ define void @reduce_fadd_double() {
 
 define void @reduce_oredered_fadd_half() {
 ; FP-REDUCE-LABEL: 'reduce_oredered_fadd_half'
-; FP-REDUCE-LABEL: Cost Model: Found an estimated cost of 3 for instruction:   %V1 = call half @llvm.vector.reduce.fadd.v1f16(half 0xH0000, <1 x half> undef)
-; FP-REDUCE-LABEL: Cost Model: Found an estimated cost of 4 for instruction:   %V2 = call half @llvm.vector.reduce.fadd.v2f16(half 0xH0000, <2 x half> undef)
-; FP-REDUCE-LABEL: Cost Model: Found an estimated cost of 6 for instruction:   %V4 = call half @llvm.vector.reduce.fadd.v4f16(half 0xH0000, <4 x half> undef)
-; FP-REDUCE-LABEL: Cost Model: Found an estimated cost of 10 for instruction:   %V8 = call half @llvm.vector.reduce.fadd.v8f16(half 0xH0000, <8 x half> undef)
-; FP-REDUCE-LABEL: Cost Model: Found an estimated cost of 18 for instruction:   %V16 = call half @llvm.vector.reduce.fadd.v16f16(half 0xH0000, <16 x half> undef)
-; FP-REDUCE-LABEL: Cost Model: Found an estimated cost of 34 for instruction:   %v32 = call half @llvm.vector.reduce.fadd.v32f16(half 0xH0000, <32 x half> undef)
-; FP-REDUCE-LABEL: Cost Model: Found an estimated cost of 66 for instruction:   %V64 = call half @llvm.vector.reduce.fadd.v64f16(half 0xH0000, <64 x half> undef)
-; FP-REDUCE-LABEL: Cost Model: Found an estimated cost of 130 for instruction:   %V128 = call half @llvm.vector.reduce.fadd.v128f16(half 0xH0000, <128 x half> undef)
-; FP-REDUCE-LABEL: Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %V1 = call half @llvm.vector.reduce.fadd.v1f16(half 0xH0000, <1 x half> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %V2 = call half @llvm.vector.reduce.fadd.v2f16(half 0xH0000, <2 x half> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 6 for instruction: %V4 = call half @llvm.vector.reduce.fadd.v4f16(half 0xH0000, <4 x half> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: %V8 = call half @llvm.vector.reduce.fadd.v8f16(half 0xH0000, <8 x half> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 18 for instruction: %V16 = call half @llvm.vector.reduce.fadd.v16f16(half 0xH0000, <16 x half> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 34 for instruction: %v32 = call half @llvm.vector.reduce.fadd.v32f16(half 0xH0000, <32 x half> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 66 for instruction: %V64 = call half @llvm.vector.reduce.fadd.v64f16(half 0xH0000, <64 x half> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 130 for instruction: %V128 = call half @llvm.vector.reduce.fadd.v128f16(half 0xH0000, <128 x half> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
+;
   %V1 = call half @llvm.vector.reduce.fadd.v1f16(half 0.0, <1 x half> undef)
   %V2 = call half @llvm.vector.reduce.fadd.v2f16(half 0.0, <2 x half> undef)
   %V4 = call half @llvm.vector.reduce.fadd.v4f16(half 0.0, <4 x half> undef)
@@ -91,15 +95,16 @@ define void @reduce_oredered_fadd_half() {
 
 define void @reduce_oredered_fadd_float() {
 ; FP-REDUCE-LABEL: 'reduce_oredered_fadd_float'
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 3 for instruction:   %V1 = call float @llvm.vector.reduce.fadd.v1f32(float 0.000000e+00, <1 x float> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction:   %V2 = call float @llvm.vector.reduce.fadd.v2f32(float 0.000000e+00, <2 x float> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 6 for instruction:   %V4 = call float @llvm.vector.reduce.fadd.v4f32(float 0.000000e+00, <4 x float> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 10 for instruction:   %V8 = call float @llvm.vector.reduce.fadd.v8f32(float 0.000000e+00, <8 x float> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 18 for instruction:   %V16 = call float @llvm.vector.reduce.fadd.v16f32(float 0.000000e+00, <16 x float> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 34 for instruction:   %v32 = call float @llvm.vector.reduce.fadd.v32f32(float 0.000000e+00, <32 x float> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 66 for instruction:   %V64 = call float @llvm.vector.reduce.fadd.v64f32(float 0.000000e+00, <64 x float> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 131 for instruction:   %V128 = call float @llvm.vector.reduce.fadd.v128f32(float 0.000000e+00, <128 x float> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %V1 = call float @llvm.vector.reduce.fadd.v1f32(float 0.000000e+00, <1 x float> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %V2 = call float @llvm.vector.reduce.fadd.v2f32(float 0.000000e+00, <2 x float> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 6 for instruction: %V4 = call float @llvm.vector.reduce.fadd.v4f32(float 0.000000e+00, <4 x float> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: %V8 = call float @llvm.vector.reduce.fadd.v8f32(float 0.000000e+00, <8 x float> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 18 for instruction: %V16 = call float @llvm.vector.reduce.fadd.v16f32(float 0.000000e+00, <16 x float> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 34 for instruction: %v32 = call float @llvm.vector.reduce.fadd.v32f32(float 0.000000e+00, <32 x float> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 66 for instruction: %V64 = call float @llvm.vector.reduce.fadd.v64f32(float 0.000000e+00, <64 x float> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 131 for instruction: %V128 = call float @llvm.vector.reduce.fadd.v128f32(float 0.000000e+00, <128 x float> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
+;
   %V1 = call float @llvm.vector.reduce.fadd.v1f32(float 0.0, <1 x float> undef)
   %V2 = call float @llvm.vector.reduce.fadd.v2f32(float 0.0, <2 x float> undef)
   %V4 = call float @llvm.vector.reduce.fadd.v4f32(float 0.0, <4 x float> undef)
@@ -113,15 +118,16 @@ define void @reduce_oredered_fadd_float() {
 
 define void @reduce_oredered_fadd_double() {
 ; FP-REDUCE-LABEL: 'reduce_oredered_fadd_double'
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 3 for instruction:   %V1 = call double @llvm.vector.reduce.fadd.v1f64(double 0.000000e+00, <1 x double> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction:   %V2 = call double @llvm.vector.reduce.fadd.v2f64(double 0.000000e+00, <2 x double> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 6 for instruction:   %V4 = call double @llvm.vector.reduce.fadd.v4f64(double 0.000000e+00, <4 x double> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 10 for instruction:   %V8 = call double @llvm.vector.reduce.fadd.v8f64(double 0.000000e+00, <8 x double> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 18 for instruction:   %V16 = call double @llvm.vector.reduce.fadd.v16f64(double 0.000000e+00, <16 x double> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 34 for instruction:   %v32 = call double @llvm.vector.reduce.fadd.v32f64(double 0.000000e+00, <32 x double> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 67 for instruction:   %V64 = call double @llvm.vector.reduce.fadd.v64f64(double 0.000000e+00, <64 x double> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 133 for instruction:   %V128 = call double @llvm.vector.reduce.fadd.v128f64(double 0.000000e+00, <128 x double> undef)
-; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction:   ret void
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %V1 = call double @llvm.vector.reduce.fadd.v1f64(double 0.000000e+00, <1 x double> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 4 for instruction: %V2 = call double @llvm.vector.reduce.fadd.v2f64(double 0.000000e+00, <2 x double> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 6 for instruction: %V4 = call double @llvm.vector.reduce.fadd.v4f64(double 0.000000e+00, <4 x double> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 10 for instruction: %V8 = call double @llvm.vector.reduce.fadd.v8f64(double 0.000000e+00, <8 x double> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 18 for instruction: %V16 = call double @llvm.vector.reduce.fadd.v16f64(double 0.000000e+00, <16 x double> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 34 for instruction: %v32 = call double @llvm.vector.reduce.fadd.v32f64(double 0.000000e+00, <32 x double> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 67 for instruction: %V64 = call double @llvm.vector.reduce.fadd.v64f64(double 0.000000e+00, <64 x double> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 133 for instruction: %V128 = call double @llvm.vector.reduce.fadd.v128f64(double 0.000000e+00, <128 x double> undef)
+; FP-REDUCE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret void
+;
   %V1 = call double @llvm.vector.reduce.fadd.v1f64(double 0.0, <1 x double> undef)
   %V2 = call double @llvm.vector.reduce.fadd.v2f64(double 0.0, <2 x double> undef)
   %V4 = call double @llvm.vector.reduce.fadd.v4f64(double 0.0, <4 x double> undef)


        


More information about the llvm-commits mailing list