; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py ; RUN: opt < %s -passes="print" 2>&1 -disable-output -S -mtriple=riscv64 -mattr=+v -riscv-v-vector-bits-min=-1 | FileCheck %s define void @sadd.sat() { ; CHECK-LABEL: 'sadd.sat' ; CHECK-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %1 = call i8 @llvm.sadd.sat.i8(i8 undef, i8 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %2 = call <2 x i8> @llvm.sadd.sat.v2i8(<2 x i8> undef, <2 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %3 = call <4 x i8> @llvm.sadd.sat.v4i8(<4 x i8> undef, <4 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %4 = call <8 x i8> @llvm.sadd.sat.v8i8(<8 x i8> undef, <8 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %5 = call <16 x i8> @llvm.sadd.sat.v16i8(<16 x i8> undef, <16 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %6 = call @llvm.sadd.sat.nxv2i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %7 = call @llvm.sadd.sat.nxv4i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %8 = call @llvm.sadd.sat.nxv8i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %9 = call @llvm.sadd.sat.nxv16i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %10 = call i16 @llvm.sadd.sat.i16(i16 undef, i16 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %11 = call <2 x i16> @llvm.sadd.sat.v2i16(<2 x i16> undef, <2 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %12 = call <4 x i16> @llvm.sadd.sat.v4i16(<4 x i16> undef, <4 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %13 = call <8 x i16> @llvm.sadd.sat.v8i16(<8 x i16> undef, <8 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %14 = call <16 x i16> @llvm.sadd.sat.v16i16(<16 x i16> undef, <16 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %15 = call @llvm.sadd.sat.nxv2i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %16 = call @llvm.sadd.sat.nxv4i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %17 = call @llvm.sadd.sat.nxv8i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %18 = call @llvm.sadd.sat.nxv16i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %19 = call i32 @llvm.sadd.sat.i32(i32 undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %20 = call <2 x i32> @llvm.sadd.sat.v2i32(<2 x i32> undef, <2 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %21 = call <4 x i32> @llvm.sadd.sat.v4i32(<4 x i32> undef, <4 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %22 = call <8 x i32> @llvm.sadd.sat.v8i32(<8 x i32> undef, <8 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %23 = call <16 x i32> @llvm.sadd.sat.v16i32(<16 x i32> undef, <16 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %24 = call @llvm.sadd.sat.nxv2i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %25 = call @llvm.sadd.sat.nxv4i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %26 = call @llvm.sadd.sat.nxv8i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %27 = call @llvm.sadd.sat.nxv16i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %28 = call i64 @llvm.sadd.sat.i64(i64 undef, i64 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %29 = call <2 x i64> @llvm.sadd.sat.v2i64(<2 x i64> undef, <2 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %30 = call <4 x i64> @llvm.sadd.sat.v4i64(<4 x i64> undef, <4 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %31 = call <8 x i64> @llvm.sadd.sat.v8i64(<8 x i64> undef, <8 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %32 = call <16 x i64> @llvm.sadd.sat.v16i64(<16 x i64> undef, <16 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %33 = call @llvm.sadd.sat.nxv2i64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %34 = call @llvm.sadd.sat.nxv4i64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %35 = call @llvm.sadd.sat.nxv8i64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; call i8 @llvm.sadd.sat.i8(i8 undef, i8 undef) call <2 x i8> @llvm.sadd.sat.v2i8(<2 x i8> undef, <2 x i8> undef) call <4 x i8> @llvm.sadd.sat.v4i8(<4 x i8> undef, <4 x i8> undef) call <8 x i8> @llvm.sadd.sat.v8i8(<8 x i8> undef, <8 x i8> undef) call <16 x i8> @llvm.sadd.sat.v16i8(<16 x i8> undef, <16 x i8> undef) call @llvm.sadd.sat.nvx2i8( undef, undef) call @llvm.sadd.sat.nvx4i8( undef, undef) call @llvm.sadd.sat.nvx8i8( undef, undef) call @llvm.sadd.sat.nvx16i8( undef, undef) call i16 @llvm.sadd.sat.i16(i16 undef, i16 undef) call <2 x i16> @llvm.sadd.sat.v2i16(<2 x i16> undef, <2 x i16> undef) call <4 x i16> @llvm.sadd.sat.v4i16(<4 x i16> undef, <4 x i16> undef) call <8 x i16> @llvm.sadd.sat.v8i16(<8 x i16> undef, <8 x i16> undef) call <16 x i16> @llvm.sadd.sat.v16i16(<16 x i16> undef, <16 x i16> undef) call @llvm.sadd.sat.nvx2i16( undef, undef) call @llvm.sadd.sat.nvx4i16( undef, undef) call @llvm.sadd.sat.nvx8i16( undef, undef) call @llvm.sadd.sat.nvx16i16( undef, undef) call i32 @llvm.sadd.sat.i32(i32 undef, i32 undef) call <2 x i32> @llvm.sadd.sat.v2i32(<2 x i32> undef, <2 x i32> undef) call <4 x i32> @llvm.sadd.sat.v4i32(<4 x i32> undef, <4 x i32> undef) call <8 x i32> @llvm.sadd.sat.v8i32(<8 x i32> undef, <8 x i32> undef) call <16 x i32> @llvm.sadd.sat.v16i32(<16 x i32> undef, <16 x i32> undef) call @llvm.sadd.sat.nvx2i32( undef, undef) call @llvm.sadd.sat.nvx4i32( undef, undef) call @llvm.sadd.sat.nvx8i32( undef, undef) call @llvm.sadd.sat.nvx16i32( undef, undef) call i64 @llvm.sadd.sat.i64(i64 undef, i64 undef) call <2 x i64> @llvm.sadd.sat.v2i64(<2 x i64> undef, <2 x i64> undef) call <4 x i64> @llvm.sadd.sat.v4i64(<4 x i64> undef, <4 x i64> undef) call <8 x i64> @llvm.sadd.sat.v8i64(<8 x i64> undef, <8 x i64> undef) call <16 x i64> @llvm.sadd.sat.v16i64(<16 x i64> undef, <16 x i64> undef) call @llvm.sadd.sat.nvx2i64( undef, undef) call @llvm.sadd.sat.nvx4i64( undef, undef) call @llvm.sadd.sat.nvx8i64( undef, undef) ret void } define void @uadd.sat() { ; CHECK-LABEL: 'uadd.sat' ; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %1 = call i8 @llvm.uadd.sat.i8(i8 undef, i8 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %2 = call <2 x i8> @llvm.uadd.sat.v2i8(<2 x i8> undef, <2 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %3 = call <4 x i8> @llvm.uadd.sat.v4i8(<4 x i8> undef, <4 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %4 = call <8 x i8> @llvm.uadd.sat.v8i8(<8 x i8> undef, <8 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %5 = call <16 x i8> @llvm.uadd.sat.v16i8(<16 x i8> undef, <16 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %6 = call @llvm.uadd.sat.nxv2i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %7 = call @llvm.uadd.sat.nxv4i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %8 = call @llvm.uadd.sat.nxv8i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %9 = call @llvm.uadd.sat.nxv16i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %10 = call i16 @llvm.uadd.sat.i16(i16 undef, i16 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %11 = call <2 x i16> @llvm.uadd.sat.v2i16(<2 x i16> undef, <2 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %12 = call <4 x i16> @llvm.uadd.sat.v4i16(<4 x i16> undef, <4 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %13 = call <8 x i16> @llvm.uadd.sat.v8i16(<8 x i16> undef, <8 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %14 = call <16 x i16> @llvm.uadd.sat.v16i16(<16 x i16> undef, <16 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %15 = call @llvm.uadd.sat.nxv2i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %16 = call @llvm.uadd.sat.nxv4i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %17 = call @llvm.uadd.sat.nxv8i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %18 = call @llvm.uadd.sat.nxv16i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %19 = call i32 @llvm.uadd.sat.i32(i32 undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %20 = call <2 x i32> @llvm.uadd.sat.v2i32(<2 x i32> undef, <2 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %21 = call <4 x i32> @llvm.uadd.sat.v4i32(<4 x i32> undef, <4 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %22 = call <8 x i32> @llvm.uadd.sat.v8i32(<8 x i32> undef, <8 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %23 = call <16 x i32> @llvm.uadd.sat.v16i32(<16 x i32> undef, <16 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %24 = call @llvm.uadd.sat.nxv2i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %25 = call @llvm.uadd.sat.nxv4i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %26 = call @llvm.uadd.sat.nxv8i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %27 = call @llvm.uadd.sat.nxv16i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %28 = call i64 @llvm.uadd.sat.i64(i64 undef, i64 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %29 = call <2 x i64> @llvm.uadd.sat.v2i64(<2 x i64> undef, <2 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %30 = call <4 x i64> @llvm.uadd.sat.v4i64(<4 x i64> undef, <4 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %31 = call <8 x i64> @llvm.uadd.sat.v8i64(<8 x i64> undef, <8 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %32 = call <16 x i64> @llvm.uadd.sat.v16i64(<16 x i64> undef, <16 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %33 = call @llvm.uadd.sat.nxv2i64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %34 = call @llvm.uadd.sat.nxv4i64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %35 = call @llvm.uadd.sat.nxv8i64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; call i8 @llvm.uadd.sat.i8(i8 undef, i8 undef) call <2 x i8> @llvm.uadd.sat.v2i8(<2 x i8> undef, <2 x i8> undef) call <4 x i8> @llvm.uadd.sat.v4i8(<4 x i8> undef, <4 x i8> undef) call <8 x i8> @llvm.uadd.sat.v8i8(<8 x i8> undef, <8 x i8> undef) call <16 x i8> @llvm.uadd.sat.v16i8(<16 x i8> undef, <16 x i8> undef) call @llvm.uadd.sat.nvx2i8( undef, undef) call @llvm.uadd.sat.nvx4i8( undef, undef) call @llvm.uadd.sat.nvx8i8( undef, undef) call @llvm.uadd.sat.nvx16i8( undef, undef) call i16 @llvm.uadd.sat.i16(i16 undef, i16 undef) call <2 x i16> @llvm.uadd.sat.v2i16(<2 x i16> undef, <2 x i16> undef) call <4 x i16> @llvm.uadd.sat.v4i16(<4 x i16> undef, <4 x i16> undef) call <8 x i16> @llvm.uadd.sat.v8i16(<8 x i16> undef, <8 x i16> undef) call <16 x i16> @llvm.uadd.sat.v16i16(<16 x i16> undef, <16 x i16> undef) call @llvm.uadd.sat.nvx2i16( undef, undef) call @llvm.uadd.sat.nvx4i16( undef, undef) call @llvm.uadd.sat.nvx8i16( undef, undef) call @llvm.uadd.sat.nvx16i16( undef, undef) call i32 @llvm.uadd.sat.i32(i32 undef, i32 undef) call <2 x i32> @llvm.uadd.sat.v2i32(<2 x i32> undef, <2 x i32> undef) call <4 x i32> @llvm.uadd.sat.v4i32(<4 x i32> undef, <4 x i32> undef) call <8 x i32> @llvm.uadd.sat.v8i32(<8 x i32> undef, <8 x i32> undef) call <16 x i32> @llvm.uadd.sat.v16i32(<16 x i32> undef, <16 x i32> undef) call @llvm.uadd.sat.nvx2i32( undef, undef) call @llvm.uadd.sat.nvx4i32( undef, undef) call @llvm.uadd.sat.nvx8i32( undef, undef) call @llvm.uadd.sat.nvx16i32( undef, undef) call i64 @llvm.uadd.sat.i64(i64 undef, i64 undef) call <2 x i64> @llvm.uadd.sat.v2i64(<2 x i64> undef, <2 x i64> undef) call <4 x i64> @llvm.uadd.sat.v4i64(<4 x i64> undef, <4 x i64> undef) call <8 x i64> @llvm.uadd.sat.v8i64(<8 x i64> undef, <8 x i64> undef) call <16 x i64> @llvm.uadd.sat.v16i64(<16 x i64> undef, <16 x i64> undef) call @llvm.uadd.sat.nvx2i64( undef, undef) call @llvm.uadd.sat.nvx4i64( undef, undef) call @llvm.uadd.sat.nvx8i64( undef, undef) ret void } define void @usub.sat() { ; CHECK-LABEL: 'usub.sat' ; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %1 = call i8 @llvm.usub.sat.i8(i8 undef, i8 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %2 = call <2 x i8> @llvm.usub.sat.v2i8(<2 x i8> undef, <2 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %3 = call <4 x i8> @llvm.usub.sat.v4i8(<4 x i8> undef, <4 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %4 = call <8 x i8> @llvm.usub.sat.v8i8(<8 x i8> undef, <8 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %5 = call <16 x i8> @llvm.usub.sat.v16i8(<16 x i8> undef, <16 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %6 = call @llvm.usub.sat.nxv2i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %7 = call @llvm.usub.sat.nxv4i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %8 = call @llvm.usub.sat.nxv8i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %9 = call @llvm.usub.sat.nxv16i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %10 = call i16 @llvm.usub.sat.i16(i16 undef, i16 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %11 = call <2 x i16> @llvm.usub.sat.v2i16(<2 x i16> undef, <2 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %12 = call <4 x i16> @llvm.usub.sat.v4i16(<4 x i16> undef, <4 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %13 = call <8 x i16> @llvm.usub.sat.v8i16(<8 x i16> undef, <8 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %14 = call <16 x i16> @llvm.usub.sat.v16i16(<16 x i16> undef, <16 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %15 = call @llvm.usub.sat.nxv2i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %16 = call @llvm.usub.sat.nxv4i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %17 = call @llvm.usub.sat.nxv8i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %18 = call @llvm.usub.sat.nxv16i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %19 = call i32 @llvm.usub.sat.i32(i32 undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %20 = call <2 x i32> @llvm.usub.sat.v2i32(<2 x i32> undef, <2 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %21 = call <4 x i32> @llvm.usub.sat.v4i32(<4 x i32> undef, <4 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %22 = call <8 x i32> @llvm.usub.sat.v8i32(<8 x i32> undef, <8 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %23 = call <16 x i32> @llvm.usub.sat.v16i32(<16 x i32> undef, <16 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %24 = call @llvm.usub.sat.nxv2i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %25 = call @llvm.usub.sat.nxv4i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %26 = call @llvm.usub.sat.nxv8i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %27 = call @llvm.usub.sat.nxv16i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %28 = call i64 @llvm.usub.sat.i64(i64 undef, i64 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %29 = call <2 x i64> @llvm.usub.sat.v2i64(<2 x i64> undef, <2 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %30 = call <4 x i64> @llvm.usub.sat.v4i64(<4 x i64> undef, <4 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %31 = call <8 x i64> @llvm.usub.sat.v8i64(<8 x i64> undef, <8 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %32 = call <16 x i64> @llvm.usub.sat.v16i64(<16 x i64> undef, <16 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %33 = call @llvm.usub.sat.nxv2i64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %34 = call @llvm.usub.sat.nxv4i64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %35 = call @llvm.usub.sat.nxv8i64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; call i8 @llvm.usub.sat.i8(i8 undef, i8 undef) call <2 x i8> @llvm.usub.sat.v2i8(<2 x i8> undef, <2 x i8> undef) call <4 x i8> @llvm.usub.sat.v4i8(<4 x i8> undef, <4 x i8> undef) call <8 x i8> @llvm.usub.sat.v8i8(<8 x i8> undef, <8 x i8> undef) call <16 x i8> @llvm.usub.sat.v16i8(<16 x i8> undef, <16 x i8> undef) call @llvm.usub.sat.nvx2i8( undef, undef) call @llvm.usub.sat.nvx4i8( undef, undef) call @llvm.usub.sat.nvx8i8( undef, undef) call @llvm.usub.sat.nvx16i8( undef, undef) call i16 @llvm.usub.sat.i16(i16 undef, i16 undef) call <2 x i16> @llvm.usub.sat.v2i16(<2 x i16> undef, <2 x i16> undef) call <4 x i16> @llvm.usub.sat.v4i16(<4 x i16> undef, <4 x i16> undef) call <8 x i16> @llvm.usub.sat.v8i16(<8 x i16> undef, <8 x i16> undef) call <16 x i16> @llvm.usub.sat.v16i16(<16 x i16> undef, <16 x i16> undef) call @llvm.usub.sat.nvx2i16( undef, undef) call @llvm.usub.sat.nvx4i16( undef, undef) call @llvm.usub.sat.nvx8i16( undef, undef) call @llvm.usub.sat.nvx16i16( undef, undef) call i32 @llvm.usub.sat.i32(i32 undef, i32 undef) call <2 x i32> @llvm.usub.sat.v2i32(<2 x i32> undef, <2 x i32> undef) call <4 x i32> @llvm.usub.sat.v4i32(<4 x i32> undef, <4 x i32> undef) call <8 x i32> @llvm.usub.sat.v8i32(<8 x i32> undef, <8 x i32> undef) call <16 x i32> @llvm.usub.sat.v16i32(<16 x i32> undef, <16 x i32> undef) call @llvm.usub.sat.nvx2i32( undef, undef) call @llvm.usub.sat.nvx4i32( undef, undef) call @llvm.usub.sat.nvx8i32( undef, undef) call @llvm.usub.sat.nvx16i32( undef, undef) call i64 @llvm.usub.sat.i64(i64 undef, i64 undef) call <2 x i64> @llvm.usub.sat.v2i64(<2 x i64> undef, <2 x i64> undef) call <4 x i64> @llvm.usub.sat.v4i64(<4 x i64> undef, <4 x i64> undef) call <8 x i64> @llvm.usub.sat.v8i64(<8 x i64> undef, <8 x i64> undef) call <16 x i64> @llvm.usub.sat.v16i64(<16 x i64> undef, <16 x i64> undef) call @llvm.usub.sat.nvx2i64( undef, undef) call @llvm.usub.sat.nvx4i64( undef, undef) call @llvm.usub.sat.nvx8i64( undef, undef) ret void } define void @ssub.sat() { ; CHECK-LABEL: 'ssub.sat' ; CHECK-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %1 = call i8 @llvm.ssub.sat.i8(i8 undef, i8 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %2 = call <2 x i8> @llvm.ssub.sat.v2i8(<2 x i8> undef, <2 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %3 = call <4 x i8> @llvm.ssub.sat.v4i8(<4 x i8> undef, <4 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %4 = call <8 x i8> @llvm.ssub.sat.v8i8(<8 x i8> undef, <8 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %5 = call <16 x i8> @llvm.ssub.sat.v16i8(<16 x i8> undef, <16 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %6 = call @llvm.ssub.sat.nxv2i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %7 = call @llvm.ssub.sat.nxv4i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %8 = call @llvm.ssub.sat.nxv8i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %9 = call @llvm.ssub.sat.nxv16i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %10 = call i16 @llvm.ssub.sat.i16(i16 undef, i16 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %11 = call <2 x i16> @llvm.ssub.sat.v2i16(<2 x i16> undef, <2 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %12 = call <4 x i16> @llvm.ssub.sat.v4i16(<4 x i16> undef, <4 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %13 = call <8 x i16> @llvm.ssub.sat.v8i16(<8 x i16> undef, <8 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %14 = call <16 x i16> @llvm.ssub.sat.v16i16(<16 x i16> undef, <16 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %15 = call @llvm.ssub.sat.nxv2i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %16 = call @llvm.ssub.sat.nxv4i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %17 = call @llvm.ssub.sat.nxv8i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %18 = call @llvm.ssub.sat.nxv16i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %19 = call i32 @llvm.ssub.sat.i32(i32 undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %20 = call <2 x i32> @llvm.ssub.sat.v2i32(<2 x i32> undef, <2 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %21 = call <4 x i32> @llvm.ssub.sat.v4i32(<4 x i32> undef, <4 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %22 = call <8 x i32> @llvm.ssub.sat.v8i32(<8 x i32> undef, <8 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %23 = call <16 x i32> @llvm.ssub.sat.v16i32(<16 x i32> undef, <16 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %24 = call @llvm.ssub.sat.nxv2i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %25 = call @llvm.ssub.sat.nxv4i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %26 = call @llvm.ssub.sat.nxv8i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %27 = call @llvm.ssub.sat.nxv16i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %28 = call i64 @llvm.ssub.sat.i64(i64 undef, i64 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %29 = call <2 x i64> @llvm.ssub.sat.v2i64(<2 x i64> undef, <2 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %30 = call <4 x i64> @llvm.ssub.sat.v4i64(<4 x i64> undef, <4 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %31 = call <8 x i64> @llvm.ssub.sat.v8i64(<8 x i64> undef, <8 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %32 = call <16 x i64> @llvm.ssub.sat.v16i64(<16 x i64> undef, <16 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %33 = call @llvm.ssub.sat.nxv2i64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %34 = call @llvm.ssub.sat.nxv4i64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %35 = call @llvm.ssub.sat.nxv8i64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; call i8 @llvm.ssub.sat.i8(i8 undef, i8 undef) call <2 x i8> @llvm.ssub.sat.v2i8(<2 x i8> undef, <2 x i8> undef) call <4 x i8> @llvm.ssub.sat.v4i8(<4 x i8> undef, <4 x i8> undef) call <8 x i8> @llvm.ssub.sat.v8i8(<8 x i8> undef, <8 x i8> undef) call <16 x i8> @llvm.ssub.sat.v16i8(<16 x i8> undef, <16 x i8> undef) call @llvm.ssub.sat.nvx2i8( undef, undef) call @llvm.ssub.sat.nvx4i8( undef, undef) call @llvm.ssub.sat.nvx8i8( undef, undef) call @llvm.ssub.sat.nvx16i8( undef, undef) call i16 @llvm.ssub.sat.i16(i16 undef, i16 undef) call <2 x i16> @llvm.ssub.sat.v2i16(<2 x i16> undef, <2 x i16> undef) call <4 x i16> @llvm.ssub.sat.v4i16(<4 x i16> undef, <4 x i16> undef) call <8 x i16> @llvm.ssub.sat.v8i16(<8 x i16> undef, <8 x i16> undef) call <16 x i16> @llvm.ssub.sat.v16i16(<16 x i16> undef, <16 x i16> undef) call @llvm.ssub.sat.nvx2i16( undef, undef) call @llvm.ssub.sat.nvx4i16( undef, undef) call @llvm.ssub.sat.nvx8i16( undef, undef) call @llvm.ssub.sat.nvx16i16( undef, undef) call i32 @llvm.ssub.sat.i32(i32 undef, i32 undef) call <2 x i32> @llvm.ssub.sat.v2i32(<2 x i32> undef, <2 x i32> undef) call <4 x i32> @llvm.ssub.sat.v4i32(<4 x i32> undef, <4 x i32> undef) call <8 x i32> @llvm.ssub.sat.v8i32(<8 x i32> undef, <8 x i32> undef) call <16 x i32> @llvm.ssub.sat.v16i32(<16 x i32> undef, <16 x i32> undef) call @llvm.ssub.sat.nvx2i32( undef, undef) call @llvm.ssub.sat.nvx4i32( undef, undef) call @llvm.ssub.sat.nvx8i32( undef, undef) call @llvm.ssub.sat.nvx16i32( undef, undef) call i64 @llvm.ssub.sat.i64(i64 undef, i64 undef) call <2 x i64> @llvm.ssub.sat.v2i64(<2 x i64> undef, <2 x i64> undef) call <4 x i64> @llvm.ssub.sat.v4i64(<4 x i64> undef, <4 x i64> undef) call <8 x i64> @llvm.ssub.sat.v8i64(<8 x i64> undef, <8 x i64> undef) call <16 x i64> @llvm.ssub.sat.v16i64(<16 x i64> undef, <16 x i64> undef) call @llvm.ssub.sat.nvx2i64( undef, undef) call @llvm.ssub.sat.nvx4i64( undef, undef) call @llvm.ssub.sat.nvx8i64( undef, undef) ret void } define void @ushl.sat() { ; CHECK-LABEL: 'ushl.sat' ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = call i8 @llvm.ushl.sat.i8(i8 undef, i8 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %2 = call <2 x i8> @llvm.ushl.sat.v2i8(<2 x i8> undef, <2 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %3 = call <4 x i8> @llvm.ushl.sat.v4i8(<4 x i8> undef, <4 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 23 for instruction: %4 = call <8 x i8> @llvm.ushl.sat.v8i8(<8 x i8> undef, <8 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 47 for instruction: %5 = call <16 x i8> @llvm.ushl.sat.v16i8(<16 x i8> undef, <16 x i8> undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %6 = call @llvm.ushl.sat.nxv2i8( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %7 = call @llvm.ushl.sat.nxv4i8( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %8 = call @llvm.ushl.sat.nxv8i8( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %9 = call @llvm.ushl.sat.nxv16i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %10 = call i16 @llvm.ushl.sat.i16(i16 undef, i16 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %11 = call <2 x i16> @llvm.ushl.sat.v2i16(<2 x i16> undef, <2 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %12 = call <4 x i16> @llvm.ushl.sat.v4i16(<4 x i16> undef, <4 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 23 for instruction: %13 = call <8 x i16> @llvm.ushl.sat.v8i16(<8 x i16> undef, <8 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 47 for instruction: %14 = call <16 x i16> @llvm.ushl.sat.v16i16(<16 x i16> undef, <16 x i16> undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %15 = call @llvm.ushl.sat.nxv2i16( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %16 = call @llvm.ushl.sat.nxv4i16( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %17 = call @llvm.ushl.sat.nxv8i16( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %18 = call @llvm.ushl.sat.nxv16i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %19 = call i32 @llvm.ushl.sat.i32(i32 undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %20 = call <2 x i32> @llvm.ushl.sat.v2i32(<2 x i32> undef, <2 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %21 = call <4 x i32> @llvm.ushl.sat.v4i32(<4 x i32> undef, <4 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 23 for instruction: %22 = call <8 x i32> @llvm.ushl.sat.v8i32(<8 x i32> undef, <8 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 47 for instruction: %23 = call <16 x i32> @llvm.ushl.sat.v16i32(<16 x i32> undef, <16 x i32> undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %24 = call @llvm.ushl.sat.nxv2i32( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %25 = call @llvm.ushl.sat.nxv4i32( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %26 = call @llvm.ushl.sat.nxv8i32( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %27 = call @llvm.ushl.sat.nxv16i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %28 = call i64 @llvm.ushl.sat.i64(i64 undef, i64 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %29 = call <2 x i64> @llvm.ushl.sat.v2i64(<2 x i64> undef, <2 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %30 = call <4 x i64> @llvm.ushl.sat.v4i64(<4 x i64> undef, <4 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 23 for instruction: %31 = call <8 x i64> @llvm.ushl.sat.v8i64(<8 x i64> undef, <8 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 47 for instruction: %32 = call <16 x i64> @llvm.ushl.sat.v16i64(<16 x i64> undef, <16 x i64> undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %33 = call @llvm.ushl.sat.nxv2i64( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %34 = call @llvm.ushl.sat.nxv4i64( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %35 = call @llvm.ushl.sat.nxv8i64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; call i8 @llvm.ushl.sat.i8(i8 undef, i8 undef) call <2 x i8> @llvm.ushl.sat.v2i8(<2 x i8> undef, <2 x i8> undef) call <4 x i8> @llvm.ushl.sat.v4i8(<4 x i8> undef, <4 x i8> undef) call <8 x i8> @llvm.ushl.sat.v8i8(<8 x i8> undef, <8 x i8> undef) call <16 x i8> @llvm.ushl.sat.v16i8(<16 x i8> undef, <16 x i8> undef) call @llvm.ushl.sat.nvx2i8( undef, undef) call @llvm.ushl.sat.nvx4i8( undef, undef) call @llvm.ushl.sat.nvx8i8( undef, undef) call @llvm.ushl.sat.nvx16i8( undef, undef) call i16 @llvm.ushl.sat.i16(i16 undef, i16 undef) call <2 x i16> @llvm.ushl.sat.v2i16(<2 x i16> undef, <2 x i16> undef) call <4 x i16> @llvm.ushl.sat.v4i16(<4 x i16> undef, <4 x i16> undef) call <8 x i16> @llvm.ushl.sat.v8i16(<8 x i16> undef, <8 x i16> undef) call <16 x i16> @llvm.ushl.sat.v16i16(<16 x i16> undef, <16 x i16> undef) call @llvm.ushl.sat.nvx2i16( undef, undef) call @llvm.ushl.sat.nvx4i16( undef, undef) call @llvm.ushl.sat.nvx8i16( undef, undef) call @llvm.ushl.sat.nvx16i16( undef, undef) call i32 @llvm.ushl.sat.i32(i32 undef, i32 undef) call <2 x i32> @llvm.ushl.sat.v2i32(<2 x i32> undef, <2 x i32> undef) call <4 x i32> @llvm.ushl.sat.v4i32(<4 x i32> undef, <4 x i32> undef) call <8 x i32> @llvm.ushl.sat.v8i32(<8 x i32> undef, <8 x i32> undef) call <16 x i32> @llvm.ushl.sat.v16i32(<16 x i32> undef, <16 x i32> undef) call @llvm.ushl.sat.nvx2i32( undef, undef) call @llvm.ushl.sat.nvx4i32( undef, undef) call @llvm.ushl.sat.nvx8i32( undef, undef) call @llvm.ushl.sat.nvx16i32( undef, undef) call i64 @llvm.ushl.sat.i64(i64 undef, i64 undef) call <2 x i64> @llvm.ushl.sat.v2i64(<2 x i64> undef, <2 x i64> undef) call <4 x i64> @llvm.ushl.sat.v4i64(<4 x i64> undef, <4 x i64> undef) call <8 x i64> @llvm.ushl.sat.v8i64(<8 x i64> undef, <8 x i64> undef) call <16 x i64> @llvm.ushl.sat.v16i64(<16 x i64> undef, <16 x i64> undef) call @llvm.ushl.sat.nvx2i64( undef, undef) call @llvm.ushl.sat.nvx4i64( undef, undef) call @llvm.ushl.sat.nvx8i64( undef, undef) ret void } define void @sshl.sat() { ; CHECK-LABEL: 'sshl.sat' ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = call i8 @llvm.sshl.sat.i8(i8 undef, i8 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %2 = call <2 x i8> @llvm.sshl.sat.v2i8(<2 x i8> undef, <2 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %3 = call <4 x i8> @llvm.sshl.sat.v4i8(<4 x i8> undef, <4 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 23 for instruction: %4 = call <8 x i8> @llvm.sshl.sat.v8i8(<8 x i8> undef, <8 x i8> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 47 for instruction: %5 = call <16 x i8> @llvm.sshl.sat.v16i8(<16 x i8> undef, <16 x i8> undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %6 = call @llvm.sshl.sat.nxv2i8( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %7 = call @llvm.sshl.sat.nxv4i8( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %8 = call @llvm.sshl.sat.nxv8i8( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %9 = call @llvm.sshl.sat.nxv16i8( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %10 = call i16 @llvm.sshl.sat.i16(i16 undef, i16 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %11 = call <2 x i16> @llvm.sshl.sat.v2i16(<2 x i16> undef, <2 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %12 = call <4 x i16> @llvm.sshl.sat.v4i16(<4 x i16> undef, <4 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 23 for instruction: %13 = call <8 x i16> @llvm.sshl.sat.v8i16(<8 x i16> undef, <8 x i16> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 47 for instruction: %14 = call <16 x i16> @llvm.sshl.sat.v16i16(<16 x i16> undef, <16 x i16> undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %15 = call @llvm.sshl.sat.nxv2i16( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %16 = call @llvm.sshl.sat.nxv4i16( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %17 = call @llvm.sshl.sat.nxv8i16( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %18 = call @llvm.sshl.sat.nxv16i16( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %19 = call i32 @llvm.sshl.sat.i32(i32 undef, i32 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %20 = call <2 x i32> @llvm.sshl.sat.v2i32(<2 x i32> undef, <2 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %21 = call <4 x i32> @llvm.sshl.sat.v4i32(<4 x i32> undef, <4 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 23 for instruction: %22 = call <8 x i32> @llvm.sshl.sat.v8i32(<8 x i32> undef, <8 x i32> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 47 for instruction: %23 = call <16 x i32> @llvm.sshl.sat.v16i32(<16 x i32> undef, <16 x i32> undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %24 = call @llvm.sshl.sat.nxv2i32( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %25 = call @llvm.sshl.sat.nxv4i32( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %26 = call @llvm.sshl.sat.nxv8i32( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %27 = call @llvm.sshl.sat.nxv16i32( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %28 = call i64 @llvm.sshl.sat.i64(i64 undef, i64 undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %29 = call <2 x i64> @llvm.sshl.sat.v2i64(<2 x i64> undef, <2 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %30 = call <4 x i64> @llvm.sshl.sat.v4i64(<4 x i64> undef, <4 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 23 for instruction: %31 = call <8 x i64> @llvm.sshl.sat.v8i64(<8 x i64> undef, <8 x i64> undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 47 for instruction: %32 = call <16 x i64> @llvm.sshl.sat.v16i64(<16 x i64> undef, <16 x i64> undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %33 = call @llvm.sshl.sat.nxv2i64( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %34 = call @llvm.sshl.sat.nxv4i64( undef, undef) ; CHECK-NEXT: Cost Model: Invalid cost for instruction: %35 = call @llvm.sshl.sat.nxv8i64( undef, undef) ; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void ; call i8 @llvm.sshl.sat.i8(i8 undef, i8 undef) call <2 x i8> @llvm.sshl.sat.v2i8(<2 x i8> undef, <2 x i8> undef) call <4 x i8> @llvm.sshl.sat.v4i8(<4 x i8> undef, <4 x i8> undef) call <8 x i8> @llvm.sshl.sat.v8i8(<8 x i8> undef, <8 x i8> undef) call <16 x i8> @llvm.sshl.sat.v16i8(<16 x i8> undef, <16 x i8> undef) call @llvm.sshl.sat.nvx2i8( undef, undef) call @llvm.sshl.sat.nvx4i8( undef, undef) call @llvm.sshl.sat.nvx8i8( undef, undef) call @llvm.sshl.sat.nvx16i8( undef, undef) call i16 @llvm.sshl.sat.i16(i16 undef, i16 undef) call <2 x i16> @llvm.sshl.sat.v2i16(<2 x i16> undef, <2 x i16> undef) call <4 x i16> @llvm.sshl.sat.v4i16(<4 x i16> undef, <4 x i16> undef) call <8 x i16> @llvm.sshl.sat.v8i16(<8 x i16> undef, <8 x i16> undef) call <16 x i16> @llvm.sshl.sat.v16i16(<16 x i16> undef, <16 x i16> undef) call @llvm.sshl.sat.nvx2i16( undef, undef) call @llvm.sshl.sat.nvx4i16( undef, undef) call @llvm.sshl.sat.nvx8i16( undef, undef) call @llvm.sshl.sat.nvx16i16( undef, undef) call i32 @llvm.sshl.sat.i32(i32 undef, i32 undef) call <2 x i32> @llvm.sshl.sat.v2i32(<2 x i32> undef, <2 x i32> undef) call <4 x i32> @llvm.sshl.sat.v4i32(<4 x i32> undef, <4 x i32> undef) call <8 x i32> @llvm.sshl.sat.v8i32(<8 x i32> undef, <8 x i32> undef) call <16 x i32> @llvm.sshl.sat.v16i32(<16 x i32> undef, <16 x i32> undef) call @llvm.sshl.sat.nvx2i32( undef, undef) call @llvm.sshl.sat.nvx4i32( undef, undef) call @llvm.sshl.sat.nvx8i32( undef, undef) call @llvm.sshl.sat.nvx16i32( undef, undef) call i64 @llvm.sshl.sat.i64(i64 undef, i64 undef) call <2 x i64> @llvm.sshl.sat.v2i64(<2 x i64> undef, <2 x i64> undef) call <4 x i64> @llvm.sshl.sat.v4i64(<4 x i64> undef, <4 x i64> undef) call <8 x i64> @llvm.sshl.sat.v8i64(<8 x i64> undef, <8 x i64> undef) call <16 x i64> @llvm.sshl.sat.v16i64(<16 x i64> undef, <16 x i64> undef) call @llvm.sshl.sat.nvx2i64( undef, undef) call @llvm.sshl.sat.nvx4i64( undef, undef) call @llvm.sshl.sat.nvx8i64( undef, undef) ret void } declare i8 @llvm.sadd.sat.i8(i8, i8) declare <2 x i8> @llvm.sadd.sat.v2i8(<2 x i8>, <2 x i8>) declare <4 x i8> @llvm.sadd.sat.v4i8(<4 x i8>, <4 x i8>) declare <8 x i8> @llvm.sadd.sat.v8i8(<8 x i8>, <8 x i8>) declare <16 x i8> @llvm.sadd.sat.v16i8(<16 x i8>, <16 x i8>) declare @llvm.sadd.sat.nvx2i8(, ) declare @llvm.sadd.sat.nvx4i8(, ) declare @llvm.sadd.sat.nvx8i8(, ) declare @llvm.sadd.sat.nvx16i8(, ) declare i16 @llvm.sadd.sat.i16(i16, i16) declare <2 x i16> @llvm.sadd.sat.v2i16(<2 x i16>, <2 x i16>) declare <4 x i16> @llvm.sadd.sat.v4i16(<4 x i16>, <4 x i16>) declare <8 x i16> @llvm.sadd.sat.v8i16(<8 x i16>, <8 x i16>) declare <16 x i16> @llvm.sadd.sat.v16i16(<16 x i16>, <16 x i16>) declare @llvm.sadd.sat.nvx2i16(, ) declare @llvm.sadd.sat.nvx4i16(, ) declare @llvm.sadd.sat.nvx8i16(, ) declare @llvm.sadd.sat.nvx16i16(, ) declare i32 @llvm.sadd.sat.i32(i32, i32) declare <2 x i32> @llvm.sadd.sat.v2i32(<2 x i32>, <2 x i32>) declare <4 x i32> @llvm.sadd.sat.v4i32(<4 x i32>, <4 x i32>) declare <8 x i32> @llvm.sadd.sat.v8i32(<8 x i32>, <8 x i32>) declare <16 x i32> @llvm.sadd.sat.v16i32(<16 x i32>, <16 x i32>) declare @llvm.sadd.sat.nvx2i32(, ) declare @llvm.sadd.sat.nvx4i32(, ) declare @llvm.sadd.sat.nvx8i32(, ) declare @llvm.sadd.sat.nvx16i32(, ) declare i64 @llvm.sadd.sat.i64(i64, i64) declare <2 x i64> @llvm.sadd.sat.v2i64(<2 x i64>, <2 x i64>) declare <4 x i64> @llvm.sadd.sat.v4i64(<4 x i64>, <4 x i64>) declare <8 x i64> @llvm.sadd.sat.v8i64(<8 x i64>, <8 x i64>) declare <16 x i64> @llvm.sadd.sat.v16i64(<16 x i64>, <16 x i64>) declare @llvm.sadd.sat.nvx2i64(, ) declare @llvm.sadd.sat.nvx4i64(, ) declare @llvm.sadd.sat.nvx8i64(, ) declare i8 @llvm.uadd.sat.i8(i8, i8) declare <2 x i8> @llvm.uadd.sat.v2i8(<2 x i8>, <2 x i8>) declare <4 x i8> @llvm.uadd.sat.v4i8(<4 x i8>, <4 x i8>) declare <8 x i8> @llvm.uadd.sat.v8i8(<8 x i8>, <8 x i8>) declare <16 x i8> @llvm.uadd.sat.v16i8(<16 x i8>, <16 x i8>) declare @llvm.uadd.sat.nvx2i8(, ) declare @llvm.uadd.sat.nvx4i8(, ) declare @llvm.uadd.sat.nvx8i8(, ) declare @llvm.uadd.sat.nvx16i8(, ) declare i16 @llvm.uadd.sat.i16(i16, i16) declare <2 x i16> @llvm.uadd.sat.v2i16(<2 x i16>, <2 x i16>) declare <4 x i16> @llvm.uadd.sat.v4i16(<4 x i16>, <4 x i16>) declare <8 x i16> @llvm.uadd.sat.v8i16(<8 x i16>, <8 x i16>) declare <16 x i16> @llvm.uadd.sat.v16i16(<16 x i16>, <16 x i16>) declare @llvm.uadd.sat.nvx2i16(, ) declare @llvm.uadd.sat.nvx4i16(, ) declare @llvm.uadd.sat.nvx8i16(, ) declare @llvm.uadd.sat.nvx16i16(, ) declare i32 @llvm.uadd.sat.i32(i32, i32) declare <2 x i32> @llvm.uadd.sat.v2i32(<2 x i32>, <2 x i32>) declare <4 x i32> @llvm.uadd.sat.v4i32(<4 x i32>, <4 x i32>) declare <8 x i32> @llvm.uadd.sat.v8i32(<8 x i32>, <8 x i32>) declare <16 x i32> @llvm.uadd.sat.v16i32(<16 x i32>, <16 x i32>) declare @llvm.uadd.sat.nvx2i32(, ) declare @llvm.uadd.sat.nvx4i32(, ) declare @llvm.uadd.sat.nvx8i32(, ) declare @llvm.uadd.sat.nvx16i32(, ) declare i64 @llvm.uadd.sat.i64(i64, i64) declare <2 x i64> @llvm.uadd.sat.v2i64(<2 x i64>, <2 x i64>) declare <4 x i64> @llvm.uadd.sat.v4i64(<4 x i64>, <4 x i64>) declare <8 x i64> @llvm.uadd.sat.v8i64(<8 x i64>, <8 x i64>) declare <16 x i64> @llvm.uadd.sat.v16i64(<16 x i64>, <16 x i64>) declare @llvm.uadd.sat.nvx2i64(, ) declare @llvm.uadd.sat.nvx4i64(, ) declare @llvm.uadd.sat.nvx8i64(, ) declare i8 @llvm.usub.sat.i8(i8, i8) declare <2 x i8> @llvm.usub.sat.v2i8(<2 x i8>, <2 x i8>) declare <4 x i8> @llvm.usub.sat.v4i8(<4 x i8>, <4 x i8>) declare <8 x i8> @llvm.usub.sat.v8i8(<8 x i8>, <8 x i8>) declare <16 x i8> @llvm.usub.sat.v16i8(<16 x i8>, <16 x i8>) declare @llvm.usub.sat.nvx2i8(, ) declare @llvm.usub.sat.nvx4i8(, ) declare @llvm.usub.sat.nvx8i8(, ) declare @llvm.usub.sat.nvx16i8(, ) declare i16 @llvm.usub.sat.i16(i16, i16) declare <2 x i16> @llvm.usub.sat.v2i16(<2 x i16>, <2 x i16>) declare <4 x i16> @llvm.usub.sat.v4i16(<4 x i16>, <4 x i16>) declare <8 x i16> @llvm.usub.sat.v8i16(<8 x i16>, <8 x i16>) declare <16 x i16> @llvm.usub.sat.v16i16(<16 x i16>, <16 x i16>) declare @llvm.usub.sat.nvx2i16(, ) declare @llvm.usub.sat.nvx4i16(, ) declare @llvm.usub.sat.nvx8i16(, ) declare @llvm.usub.sat.nvx16i16(, ) declare i32 @llvm.usub.sat.i32(i32, i32) declare <2 x i32> @llvm.usub.sat.v2i32(<2 x i32>, <2 x i32>) declare <4 x i32> @llvm.usub.sat.v4i32(<4 x i32>, <4 x i32>) declare <8 x i32> @llvm.usub.sat.v8i32(<8 x i32>, <8 x i32>) declare <16 x i32> @llvm.usub.sat.v16i32(<16 x i32>, <16 x i32>) declare @llvm.usub.sat.nvx2i32(, ) declare @llvm.usub.sat.nvx4i32(, ) declare @llvm.usub.sat.nvx8i32(, ) declare @llvm.usub.sat.nvx16i32(, ) declare i64 @llvm.usub.sat.i64(i64, i64) declare <2 x i64> @llvm.usub.sat.v2i64(<2 x i64>, <2 x i64>) declare <4 x i64> @llvm.usub.sat.v4i64(<4 x i64>, <4 x i64>) declare <8 x i64> @llvm.usub.sat.v8i64(<8 x i64>, <8 x i64>) declare <16 x i64> @llvm.usub.sat.v16i64(<16 x i64>, <16 x i64>) declare @llvm.usub.sat.nvx2i64(, ) declare @llvm.usub.sat.nvx4i64(, ) declare @llvm.usub.sat.nvx8i64(, ) declare i8 @llvm.ssub.sat.i8(i8, i8) declare <2 x i8> @llvm.ssub.sat.v2i8(<2 x i8>, <2 x i8>) declare <4 x i8> @llvm.ssub.sat.v4i8(<4 x i8>, <4 x i8>) declare <8 x i8> @llvm.ssub.sat.v8i8(<8 x i8>, <8 x i8>) declare <16 x i8> @llvm.ssub.sat.v16i8(<16 x i8>, <16 x i8>) declare @llvm.ssub.sat.nvx2i8(, ) declare @llvm.ssub.sat.nvx4i8(, ) declare @llvm.ssub.sat.nvx8i8(, ) declare @llvm.ssub.sat.nvx16i8(, ) declare i16 @llvm.ssub.sat.i16(i16, i16) declare <2 x i16> @llvm.ssub.sat.v2i16(<2 x i16>, <2 x i16>) declare <4 x i16> @llvm.ssub.sat.v4i16(<4 x i16>, <4 x i16>) declare <8 x i16> @llvm.ssub.sat.v8i16(<8 x i16>, <8 x i16>) declare <16 x i16> @llvm.ssub.sat.v16i16(<16 x i16>, <16 x i16>) declare @llvm.ssub.sat.nvx2i16(, ) declare @llvm.ssub.sat.nvx4i16(, ) declare @llvm.ssub.sat.nvx8i16(, ) declare @llvm.ssub.sat.nvx16i16(, ) declare i32 @llvm.ssub.sat.i32(i32, i32) declare <2 x i32> @llvm.ssub.sat.v2i32(<2 x i32>, <2 x i32>) declare <4 x i32> @llvm.ssub.sat.v4i32(<4 x i32>, <4 x i32>) declare <8 x i32> @llvm.ssub.sat.v8i32(<8 x i32>, <8 x i32>) declare <16 x i32> @llvm.ssub.sat.v16i32(<16 x i32>, <16 x i32>) declare @llvm.ssub.sat.nvx2i32(, ) declare @llvm.ssub.sat.nvx4i32(, ) declare @llvm.ssub.sat.nvx8i32(, ) declare @llvm.ssub.sat.nvx16i32(, ) declare i64 @llvm.ssub.sat.i64(i64, i64) declare <2 x i64> @llvm.ssub.sat.v2i64(<2 x i64>, <2 x i64>) declare <4 x i64> @llvm.ssub.sat.v4i64(<4 x i64>, <4 x i64>) declare <8 x i64> @llvm.ssub.sat.v8i64(<8 x i64>, <8 x i64>) declare <16 x i64> @llvm.ssub.sat.v16i64(<16 x i64>, <16 x i64>) declare @llvm.ssub.sat.nvx2i64(, ) declare @llvm.ssub.sat.nvx4i64(, ) declare @llvm.ssub.sat.nvx8i64(, ) declare i8 @llvm.ushl.sat.i8(i8, i8) declare <2 x i8> @llvm.ushl.sat.v2i8(<2 x i8>, <2 x i8>) declare <4 x i8> @llvm.ushl.sat.v4i8(<4 x i8>, <4 x i8>) declare <8 x i8> @llvm.ushl.sat.v8i8(<8 x i8>, <8 x i8>) declare <16 x i8> @llvm.ushl.sat.v16i8(<16 x i8>, <16 x i8>) declare @llvm.ushl.sat.nvx2i8(, ) declare @llvm.ushl.sat.nvx4i8(, ) declare @llvm.ushl.sat.nvx8i8(, ) declare @llvm.ushl.sat.nvx16i8(, ) declare i16 @llvm.ushl.sat.i16(i16, i16) declare <2 x i16> @llvm.ushl.sat.v2i16(<2 x i16>, <2 x i16>) declare <4 x i16> @llvm.ushl.sat.v4i16(<4 x i16>, <4 x i16>) declare <8 x i16> @llvm.ushl.sat.v8i16(<8 x i16>, <8 x i16>) declare <16 x i16> @llvm.ushl.sat.v16i16(<16 x i16>, <16 x i16>) declare @llvm.ushl.sat.nvx2i16(, ) declare @llvm.ushl.sat.nvx4i16(, ) declare @llvm.ushl.sat.nvx8i16(, ) declare @llvm.ushl.sat.nvx16i16(, ) declare i32 @llvm.ushl.sat.i32(i32, i32) declare <2 x i32> @llvm.ushl.sat.v2i32(<2 x i32>, <2 x i32>) declare <4 x i32> @llvm.ushl.sat.v4i32(<4 x i32>, <4 x i32>) declare <8 x i32> @llvm.ushl.sat.v8i32(<8 x i32>, <8 x i32>) declare <16 x i32> @llvm.ushl.sat.v16i32(<16 x i32>, <16 x i32>) declare @llvm.ushl.sat.nvx2i32(, ) declare @llvm.ushl.sat.nvx4i32(, ) declare @llvm.ushl.sat.nvx8i32(, ) declare @llvm.ushl.sat.nvx16i32(, ) declare i64 @llvm.ushl.sat.i64(i64, i64) declare <2 x i64> @llvm.ushl.sat.v2i64(<2 x i64>, <2 x i64>) declare <4 x i64> @llvm.ushl.sat.v4i64(<4 x i64>, <4 x i64>) declare <8 x i64> @llvm.ushl.sat.v8i64(<8 x i64>, <8 x i64>) declare <16 x i64> @llvm.ushl.sat.v16i64(<16 x i64>, <16 x i64>) declare @llvm.ushl.sat.nvx2i64(, ) declare @llvm.ushl.sat.nvx4i64(, ) declare @llvm.ushl.sat.nvx8i64(, ) declare i8 @llvm.sshl.sat.i8(i8, i8) declare <2 x i8> @llvm.sshl.sat.v2i8(<2 x i8>, <2 x i8>) declare <4 x i8> @llvm.sshl.sat.v4i8(<4 x i8>, <4 x i8>) declare <8 x i8> @llvm.sshl.sat.v8i8(<8 x i8>, <8 x i8>) declare <16 x i8> @llvm.sshl.sat.v16i8(<16 x i8>, <16 x i8>) declare @llvm.sshl.sat.nvx2i8(, ) declare @llvm.sshl.sat.nvx4i8(, ) declare @llvm.sshl.sat.nvx8i8(, ) declare @llvm.sshl.sat.nvx16i8(, ) declare i16 @llvm.sshl.sat.i16(i16, i16) declare <2 x i16> @llvm.sshl.sat.v2i16(<2 x i16>, <2 x i16>) declare <4 x i16> @llvm.sshl.sat.v4i16(<4 x i16>, <4 x i16>) declare <8 x i16> @llvm.sshl.sat.v8i16(<8 x i16>, <8 x i16>) declare <16 x i16> @llvm.sshl.sat.v16i16(<16 x i16>, <16 x i16>) declare @llvm.sshl.sat.nvx2i16(, ) declare @llvm.sshl.sat.nvx4i16(, ) declare @llvm.sshl.sat.nvx8i16(, ) declare @llvm.sshl.sat.nvx16i16(, ) declare i32 @llvm.sshl.sat.i32(i32, i32) declare <2 x i32> @llvm.sshl.sat.v2i32(<2 x i32>, <2 x i32>) declare <4 x i32> @llvm.sshl.sat.v4i32(<4 x i32>, <4 x i32>) declare <8 x i32> @llvm.sshl.sat.v8i32(<8 x i32>, <8 x i32>) declare <16 x i32> @llvm.sshl.sat.v16i32(<16 x i32>, <16 x i32>) declare @llvm.sshl.sat.nvx2i32(, ) declare @llvm.sshl.sat.nvx4i32(, ) declare @llvm.sshl.sat.nvx8i32(, ) declare @llvm.sshl.sat.nvx16i32(, ) declare i64 @llvm.sshl.sat.i64(i64, i64) declare <2 x i64> @llvm.sshl.sat.v2i64(<2 x i64>, <2 x i64>) declare <4 x i64> @llvm.sshl.sat.v4i64(<4 x i64>, <4 x i64>) declare <8 x i64> @llvm.sshl.sat.v8i64(<8 x i64>, <8 x i64>) declare <16 x i64> @llvm.sshl.sat.v16i64(<16 x i64>, <16 x i64>) declare @llvm.sshl.sat.nvx2i64(, ) declare @llvm.sshl.sat.nvx4i64(, ) declare @llvm.sshl.sat.nvx8i64(, )