[llvm] 23f60d4 - [CostModel][X86] Add cost kinds test coverage for integer comparisons
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 18 07:27:06 PDT 2022
Author: Simon Pilgrim
Date: 2022-08-18T15:26:53+01:00
New Revision: 23f60d43a24a67bdb7c219dc14baeb786616a56f
URL: https://github.com/llvm/llvm-project/commit/23f60d43a24a67bdb7c219dc14baeb786616a56f
DIFF: https://github.com/llvm/llvm-project/commit/23f60d43a24a67bdb7c219dc14baeb786616a56f.diff
LOG: [CostModel][X86] Add cost kinds test coverage for integer comparisons
Added:
llvm/test/Analysis/CostModel/X86/icmp-costkinds.ll
Modified:
Removed:
################################################################################
diff --git a/llvm/test/Analysis/CostModel/X86/icmp-costkinds.ll b/llvm/test/Analysis/CostModel/X86/icmp-costkinds.ll
new file mode 100644
index 000000000000..0760157af527
--- /dev/null
+++ b/llvm/test/Analysis/CostModel/X86/icmp-costkinds.ll
@@ -0,0 +1,991 @@
+; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
+; RUN: opt -mtriple=x86_64-- -passes="print<cost-model>" 2>&1 -disable-output -mattr=+sse2 -cost-kind=latency < %s | FileCheck %s --check-prefixes=LATE
+; RUN: opt -mtriple=x86_64-- -passes="print<cost-model>" 2>&1 -disable-output -mattr=+sse2 -cost-kind=code-size < %s | FileCheck %s --check-prefixes=SIZE
+; RUN: opt -mtriple=x86_64-- -passes="print<cost-model>" 2>&1 -disable-output -mattr=+sse2 -cost-kind=size-latency < %s | FileCheck %s --check-prefixes=SIZE_LATE
+;
+; RUN: opt -mtriple=x86_64-- -passes="print<cost-model>" 2>&1 -disable-output -mattr=+avx -cost-kind=latency < %s | FileCheck %s --check-prefixes=LATE
+; RUN: opt -mtriple=x86_64-- -passes="print<cost-model>" 2>&1 -disable-output -mattr=+avx -cost-kind=code-size < %s | FileCheck %s --check-prefixes=SIZE
+; RUN: opt -mtriple=x86_64-- -passes="print<cost-model>" 2>&1 -disable-output -mattr=+avx -cost-kind=size-latency < %s | FileCheck %s --check-prefixes=SIZE_LATE
+;
+; RUN: opt -mtriple=x86_64-- -passes="print<cost-model>" 2>&1 -disable-output -mattr=+avx2 -cost-kind=latency < %s | FileCheck %s --check-prefixes=LATE
+; RUN: opt -mtriple=x86_64-- -passes="print<cost-model>" 2>&1 -disable-output -mattr=+avx2 -cost-kind=code-size < %s | FileCheck %s --check-prefixes=SIZE
+; RUN: opt -mtriple=x86_64-- -passes="print<cost-model>" 2>&1 -disable-output -mattr=+avx2 -cost-kind=size-latency < %s | FileCheck %s --check-prefixes=SIZE_LATE
+;
+; RUN: opt -mtriple=x86_64-- -passes="print<cost-model>" 2>&1 -disable-output -mattr=+avx512f,+avx512vl -cost-kind=latency < %s | FileCheck %s --check-prefixes=LATE
+; RUN: opt -mtriple=x86_64-- -passes="print<cost-model>" 2>&1 -disable-output -mattr=+avx512f,+avx512vl -cost-kind=code-size < %s | FileCheck %s --check-prefixes=SIZE
+; RUN: opt -mtriple=x86_64-- -passes="print<cost-model>" 2>&1 -disable-output -mattr=+avx512f,+avx512vl -cost-kind=size-latency < %s | FileCheck %s --check-prefixes=SIZE_LATE
+;
+; RUN: opt -mtriple=x86_64-- -passes="print<cost-model>" 2>&1 -disable-output -mattr=+avx512bw,+avx512vl -cost-kind=latency < %s | FileCheck %s --check-prefixes=LATE
+; RUN: opt -mtriple=x86_64-- -passes="print<cost-model>" 2>&1 -disable-output -mattr=+avx512bw,+avx512vl -cost-kind=code-size < %s | FileCheck %s --check-prefixes=SIZE
+; RUN: opt -mtriple=x86_64-- -passes="print<cost-model>" 2>&1 -disable-output -mattr=+avx512bw,+avx512vl -cost-kind=size-latency < %s | FileCheck %s --check-prefixes=SIZE_LATE
+
+define i32 @cmp_int_eq(i32 %arg) {
+; LATE-LABEL: 'cmp_int_eq'
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp eq i8 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp eq <16 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp eq <32 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp eq <64 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp eq <128 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp eq i16 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp eq <8 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp eq <16 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp eq <32 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp eq <64 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp eq i32 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp eq <4 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp eq <8 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp eq <16 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp eq <32 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp eq i64 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp eq <2 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp eq <4 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp eq <8 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp eq <16 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE-LABEL: 'cmp_int_eq'
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp eq i8 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp eq <16 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp eq <32 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp eq <64 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp eq <128 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp eq i16 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp eq <8 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp eq <16 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp eq <32 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp eq <64 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp eq i32 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp eq <4 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp eq <8 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp eq <16 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp eq <32 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp eq i64 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp eq <2 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp eq <4 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp eq <8 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp eq <16 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE_LATE-LABEL: 'cmp_int_eq'
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp eq i8 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp eq <16 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp eq <32 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp eq <64 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp eq <128 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp eq i16 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp eq <8 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp eq <16 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp eq <32 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp eq <64 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp eq i32 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp eq <4 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp eq <8 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp eq <16 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp eq <32 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp eq i64 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp eq <2 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp eq <4 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp eq <8 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp eq <16 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+ %I8 = icmp eq i8 undef, undef
+ %V16I8 = icmp eq <16 x i8> undef, undef
+ %V32I8 = icmp eq <32 x i8> undef, undef
+ %V64I8 = icmp eq <64 x i8> undef, undef
+ %V128I8 = icmp eq <128 x i8> undef, undef
+
+ %I16 = icmp eq i16 undef, undef
+ %V8I16 = icmp eq <8 x i16> undef, undef
+ %V16I16 = icmp eq <16 x i16> undef, undef
+ %V32I16 = icmp eq <32 x i16> undef, undef
+ %V64I16 = icmp eq <64 x i16> undef, undef
+
+ %I32 = icmp eq i32 undef, undef
+ %V4I32 = icmp eq <4 x i32> undef, undef
+ %V8I32 = icmp eq <8 x i32> undef, undef
+ %V16I32 = icmp eq <16 x i32> undef, undef
+ %V32I32 = icmp eq <32 x i32> undef, undef
+
+ %I64 = icmp eq i64 undef, undef
+ %V2I64 = icmp eq <2 x i64> undef, undef
+ %V4I64 = icmp eq <4 x i64> undef, undef
+ %V8I64 = icmp eq <8 x i64> undef, undef
+ %V16I64 = icmp eq <16 x i64> undef, undef
+
+ ret i32 undef
+}
+
+define i32 @cmp_int_ne(i32 %arg) {
+; LATE-LABEL: 'cmp_int_ne'
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp ne i8 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp ne <16 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp ne <32 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp ne <64 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp ne <128 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp ne i16 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp ne <8 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp ne <16 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp ne <32 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp ne <64 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp ne i32 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp ne <4 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp ne <8 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp ne <16 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp ne <32 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp ne i64 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp ne <2 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp ne <4 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp ne <8 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp ne <16 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE-LABEL: 'cmp_int_ne'
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp ne i8 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp ne <16 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp ne <32 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp ne <64 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp ne <128 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp ne i16 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp ne <8 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp ne <16 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp ne <32 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp ne <64 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp ne i32 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp ne <4 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp ne <8 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp ne <16 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp ne <32 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp ne i64 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp ne <2 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp ne <4 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp ne <8 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp ne <16 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE_LATE-LABEL: 'cmp_int_ne'
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp ne i8 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp ne <16 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp ne <32 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp ne <64 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp ne <128 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp ne i16 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp ne <8 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp ne <16 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp ne <32 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp ne <64 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp ne i32 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp ne <4 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp ne <8 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp ne <16 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp ne <32 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp ne i64 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp ne <2 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp ne <4 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp ne <8 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp ne <16 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+ %I8 = icmp ne i8 undef, undef
+ %V16I8 = icmp ne <16 x i8> undef, undef
+ %V32I8 = icmp ne <32 x i8> undef, undef
+ %V64I8 = icmp ne <64 x i8> undef, undef
+ %V128I8 = icmp ne <128 x i8> undef, undef
+
+ %I16 = icmp ne i16 undef, undef
+ %V8I16 = icmp ne <8 x i16> undef, undef
+ %V16I16 = icmp ne <16 x i16> undef, undef
+ %V32I16 = icmp ne <32 x i16> undef, undef
+ %V64I16 = icmp ne <64 x i16> undef, undef
+
+ %I32 = icmp ne i32 undef, undef
+ %V4I32 = icmp ne <4 x i32> undef, undef
+ %V8I32 = icmp ne <8 x i32> undef, undef
+ %V16I32 = icmp ne <16 x i32> undef, undef
+ %V32I32 = icmp ne <32 x i32> undef, undef
+
+ %I64 = icmp ne i64 undef, undef
+ %V2I64 = icmp ne <2 x i64> undef, undef
+ %V4I64 = icmp ne <4 x i64> undef, undef
+ %V8I64 = icmp ne <8 x i64> undef, undef
+ %V16I64 = icmp ne <16 x i64> undef, undef
+
+ ret i32 undef
+}
+
+define i32 @cmp_int_sge(i32 %arg) {
+; LATE-LABEL: 'cmp_int_sge'
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp sge i8 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp sge <16 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp sge <32 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp sge <64 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp sge <128 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp sge i16 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp sge <8 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp sge <16 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp sge <32 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp sge <64 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp sge i32 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp sge <4 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp sge <8 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp sge <16 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp sge <32 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp sge i64 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp sge <2 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp sge <4 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp sge <8 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp sge <16 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE-LABEL: 'cmp_int_sge'
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp sge i8 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp sge <16 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp sge <32 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp sge <64 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp sge <128 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp sge i16 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp sge <8 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp sge <16 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp sge <32 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp sge <64 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp sge i32 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp sge <4 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp sge <8 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp sge <16 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp sge <32 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp sge i64 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp sge <2 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp sge <4 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp sge <8 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp sge <16 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE_LATE-LABEL: 'cmp_int_sge'
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp sge i8 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp sge <16 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp sge <32 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp sge <64 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp sge <128 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp sge i16 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp sge <8 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp sge <16 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp sge <32 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp sge <64 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp sge i32 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp sge <4 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp sge <8 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp sge <16 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp sge <32 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp sge i64 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp sge <2 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp sge <4 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp sge <8 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp sge <16 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+ %I8 = icmp sge i8 undef, undef
+ %V16I8 = icmp sge <16 x i8> undef, undef
+ %V32I8 = icmp sge <32 x i8> undef, undef
+ %V64I8 = icmp sge <64 x i8> undef, undef
+ %V128I8 = icmp sge <128 x i8> undef, undef
+
+ %I16 = icmp sge i16 undef, undef
+ %V8I16 = icmp sge <8 x i16> undef, undef
+ %V16I16 = icmp sge <16 x i16> undef, undef
+ %V32I16 = icmp sge <32 x i16> undef, undef
+ %V64I16 = icmp sge <64 x i16> undef, undef
+
+ %I32 = icmp sge i32 undef, undef
+ %V4I32 = icmp sge <4 x i32> undef, undef
+ %V8I32 = icmp sge <8 x i32> undef, undef
+ %V16I32 = icmp sge <16 x i32> undef, undef
+ %V32I32 = icmp sge <32 x i32> undef, undef
+
+ %I64 = icmp sge i64 undef, undef
+ %V2I64 = icmp sge <2 x i64> undef, undef
+ %V4I64 = icmp sge <4 x i64> undef, undef
+ %V8I64 = icmp sge <8 x i64> undef, undef
+ %V16I64 = icmp sge <16 x i64> undef, undef
+
+ ret i32 undef
+}
+
+define i32 @cmp_int_uge(i32 %arg) {
+; LATE-LABEL: 'cmp_int_uge'
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp uge i8 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp uge <16 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp uge <32 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp uge <64 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp uge <128 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp uge i16 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp uge <8 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp uge <16 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp uge <32 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp uge <64 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp uge i32 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp uge <4 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp uge <8 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp uge <16 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp uge <32 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp uge i64 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp uge <2 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp uge <4 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp uge <8 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp uge <16 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE-LABEL: 'cmp_int_uge'
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp uge i8 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp uge <16 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp uge <32 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp uge <64 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp uge <128 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp uge i16 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp uge <8 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp uge <16 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp uge <32 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp uge <64 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp uge i32 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp uge <4 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp uge <8 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp uge <16 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp uge <32 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp uge i64 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp uge <2 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp uge <4 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp uge <8 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp uge <16 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE_LATE-LABEL: 'cmp_int_uge'
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp uge i8 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp uge <16 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp uge <32 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp uge <64 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp uge <128 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp uge i16 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp uge <8 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp uge <16 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp uge <32 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp uge <64 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp uge i32 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp uge <4 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp uge <8 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp uge <16 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp uge <32 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp uge i64 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp uge <2 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp uge <4 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp uge <8 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp uge <16 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+ %I8 = icmp uge i8 undef, undef
+ %V16I8 = icmp uge <16 x i8> undef, undef
+ %V32I8 = icmp uge <32 x i8> undef, undef
+ %V64I8 = icmp uge <64 x i8> undef, undef
+ %V128I8 = icmp uge <128 x i8> undef, undef
+
+ %I16 = icmp uge i16 undef, undef
+ %V8I16 = icmp uge <8 x i16> undef, undef
+ %V16I16 = icmp uge <16 x i16> undef, undef
+ %V32I16 = icmp uge <32 x i16> undef, undef
+ %V64I16 = icmp uge <64 x i16> undef, undef
+
+ %I32 = icmp uge i32 undef, undef
+ %V4I32 = icmp uge <4 x i32> undef, undef
+ %V8I32 = icmp uge <8 x i32> undef, undef
+ %V16I32 = icmp uge <16 x i32> undef, undef
+ %V32I32 = icmp uge <32 x i32> undef, undef
+
+ %I64 = icmp uge i64 undef, undef
+ %V2I64 = icmp uge <2 x i64> undef, undef
+ %V4I64 = icmp uge <4 x i64> undef, undef
+ %V8I64 = icmp uge <8 x i64> undef, undef
+ %V16I64 = icmp uge <16 x i64> undef, undef
+
+ ret i32 undef
+}
+
+define i32 @cmp_int_sgt(i32 %arg) {
+; LATE-LABEL: 'cmp_int_sgt'
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp sgt i8 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp sgt <16 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp sgt <32 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp sgt <64 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp sgt <128 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp sgt i16 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp sgt <8 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp sgt <16 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp sgt <32 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp sgt <64 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp sgt i32 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp sgt <4 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp sgt <8 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp sgt <16 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp sgt <32 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp sgt i64 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp sgt <2 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp sgt <4 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp sgt <8 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp sgt <16 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE-LABEL: 'cmp_int_sgt'
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp sgt i8 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp sgt <16 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp sgt <32 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp sgt <64 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp sgt <128 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp sgt i16 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp sgt <8 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp sgt <16 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp sgt <32 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp sgt <64 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp sgt i32 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp sgt <4 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp sgt <8 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp sgt <16 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp sgt <32 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp sgt i64 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp sgt <2 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp sgt <4 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp sgt <8 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp sgt <16 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE_LATE-LABEL: 'cmp_int_sgt'
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp sgt i8 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp sgt <16 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp sgt <32 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp sgt <64 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp sgt <128 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp sgt i16 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp sgt <8 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp sgt <16 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp sgt <32 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp sgt <64 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp sgt i32 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp sgt <4 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp sgt <8 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp sgt <16 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp sgt <32 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp sgt i64 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp sgt <2 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp sgt <4 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp sgt <8 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp sgt <16 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+ %I8 = icmp sgt i8 undef, undef
+ %V16I8 = icmp sgt <16 x i8> undef, undef
+ %V32I8 = icmp sgt <32 x i8> undef, undef
+ %V64I8 = icmp sgt <64 x i8> undef, undef
+ %V128I8 = icmp sgt <128 x i8> undef, undef
+
+ %I16 = icmp sgt i16 undef, undef
+ %V8I16 = icmp sgt <8 x i16> undef, undef
+ %V16I16 = icmp sgt <16 x i16> undef, undef
+ %V32I16 = icmp sgt <32 x i16> undef, undef
+ %V64I16 = icmp sgt <64 x i16> undef, undef
+
+ %I32 = icmp sgt i32 undef, undef
+ %V4I32 = icmp sgt <4 x i32> undef, undef
+ %V8I32 = icmp sgt <8 x i32> undef, undef
+ %V16I32 = icmp sgt <16 x i32> undef, undef
+ %V32I32 = icmp sgt <32 x i32> undef, undef
+
+ %I64 = icmp sgt i64 undef, undef
+ %V2I64 = icmp sgt <2 x i64> undef, undef
+ %V4I64 = icmp sgt <4 x i64> undef, undef
+ %V8I64 = icmp sgt <8 x i64> undef, undef
+ %V16I64 = icmp sgt <16 x i64> undef, undef
+
+ ret i32 undef
+}
+
+define i32 @cmp_int_ugt(i32 %arg) {
+; LATE-LABEL: 'cmp_int_ugt'
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp ugt i8 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp ugt <16 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp ugt <32 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp ugt <64 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp ugt <128 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp ugt i16 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp ugt <8 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp ugt <16 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp ugt <32 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp ugt <64 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp ugt i32 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp ugt <4 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp ugt <8 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp ugt <16 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp ugt <32 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp ugt i64 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp ugt <2 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp ugt <4 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp ugt <8 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp ugt <16 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE-LABEL: 'cmp_int_ugt'
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp ugt i8 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp ugt <16 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp ugt <32 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp ugt <64 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp ugt <128 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp ugt i16 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp ugt <8 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp ugt <16 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp ugt <32 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp ugt <64 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp ugt i32 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp ugt <4 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp ugt <8 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp ugt <16 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp ugt <32 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp ugt i64 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp ugt <2 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp ugt <4 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp ugt <8 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp ugt <16 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE_LATE-LABEL: 'cmp_int_ugt'
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp ugt i8 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp ugt <16 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp ugt <32 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp ugt <64 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp ugt <128 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp ugt i16 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp ugt <8 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp ugt <16 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp ugt <32 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp ugt <64 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp ugt i32 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp ugt <4 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp ugt <8 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp ugt <16 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp ugt <32 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp ugt i64 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp ugt <2 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp ugt <4 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp ugt <8 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp ugt <16 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+ %I8 = icmp ugt i8 undef, undef
+ %V16I8 = icmp ugt <16 x i8> undef, undef
+ %V32I8 = icmp ugt <32 x i8> undef, undef
+ %V64I8 = icmp ugt <64 x i8> undef, undef
+ %V128I8 = icmp ugt <128 x i8> undef, undef
+
+ %I16 = icmp ugt i16 undef, undef
+ %V8I16 = icmp ugt <8 x i16> undef, undef
+ %V16I16 = icmp ugt <16 x i16> undef, undef
+ %V32I16 = icmp ugt <32 x i16> undef, undef
+ %V64I16 = icmp ugt <64 x i16> undef, undef
+
+ %I32 = icmp ugt i32 undef, undef
+ %V4I32 = icmp ugt <4 x i32> undef, undef
+ %V8I32 = icmp ugt <8 x i32> undef, undef
+ %V16I32 = icmp ugt <16 x i32> undef, undef
+ %V32I32 = icmp ugt <32 x i32> undef, undef
+
+ %I64 = icmp ugt i64 undef, undef
+ %V2I64 = icmp ugt <2 x i64> undef, undef
+ %V4I64 = icmp ugt <4 x i64> undef, undef
+ %V8I64 = icmp ugt <8 x i64> undef, undef
+ %V16I64 = icmp ugt <16 x i64> undef, undef
+
+ ret i32 undef
+}
+
+define i32 @cmp_int_sle(i32 %arg) {
+; LATE-LABEL: 'cmp_int_sle'
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp sle i8 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp sle <16 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp sle <32 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp sle <64 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp sle <128 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp sle i16 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp sle <8 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp sle <16 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp sle <32 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp sle <64 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp sle i32 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp sle <4 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp sle <8 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp sle <16 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp sle <32 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp sle i64 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp sle <2 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp sle <4 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp sle <8 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp sle <16 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE-LABEL: 'cmp_int_sle'
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp sle i8 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp sle <16 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp sle <32 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp sle <64 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp sle <128 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp sle i16 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp sle <8 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp sle <16 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp sle <32 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp sle <64 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp sle i32 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp sle <4 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp sle <8 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp sle <16 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp sle <32 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp sle i64 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp sle <2 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp sle <4 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp sle <8 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp sle <16 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE_LATE-LABEL: 'cmp_int_sle'
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp sle i8 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp sle <16 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp sle <32 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp sle <64 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp sle <128 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp sle i16 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp sle <8 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp sle <16 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp sle <32 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp sle <64 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp sle i32 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp sle <4 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp sle <8 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp sle <16 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp sle <32 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp sle i64 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp sle <2 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp sle <4 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp sle <8 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp sle <16 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+ %I8 = icmp sle i8 undef, undef
+ %V16I8 = icmp sle <16 x i8> undef, undef
+ %V32I8 = icmp sle <32 x i8> undef, undef
+ %V64I8 = icmp sle <64 x i8> undef, undef
+ %V128I8 = icmp sle <128 x i8> undef, undef
+
+ %I16 = icmp sle i16 undef, undef
+ %V8I16 = icmp sle <8 x i16> undef, undef
+ %V16I16 = icmp sle <16 x i16> undef, undef
+ %V32I16 = icmp sle <32 x i16> undef, undef
+ %V64I16 = icmp sle <64 x i16> undef, undef
+
+ %I32 = icmp sle i32 undef, undef
+ %V4I32 = icmp sle <4 x i32> undef, undef
+ %V8I32 = icmp sle <8 x i32> undef, undef
+ %V16I32 = icmp sle <16 x i32> undef, undef
+ %V32I32 = icmp sle <32 x i32> undef, undef
+
+ %I64 = icmp sle i64 undef, undef
+ %V2I64 = icmp sle <2 x i64> undef, undef
+ %V4I64 = icmp sle <4 x i64> undef, undef
+ %V8I64 = icmp sle <8 x i64> undef, undef
+ %V16I64 = icmp sle <16 x i64> undef, undef
+
+ ret i32 undef
+}
+
+define i32 @cmp_int_ule(i32 %arg) {
+; LATE-LABEL: 'cmp_int_ule'
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp ule i8 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp ule <16 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp ule <32 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp ule <64 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp ule <128 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp ule i16 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp ule <8 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp ule <16 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp ule <32 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp ule <64 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp ule i32 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp ule <4 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp ule <8 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp ule <16 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp ule <32 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp ule i64 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp ule <2 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp ule <4 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp ule <8 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp ule <16 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE-LABEL: 'cmp_int_ule'
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp ule i8 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp ule <16 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp ule <32 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp ule <64 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp ule <128 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp ule i16 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp ule <8 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp ule <16 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp ule <32 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp ule <64 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp ule i32 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp ule <4 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp ule <8 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp ule <16 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp ule <32 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp ule i64 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp ule <2 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp ule <4 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp ule <8 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp ule <16 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE_LATE-LABEL: 'cmp_int_ule'
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp ule i8 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp ule <16 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp ule <32 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp ule <64 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp ule <128 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp ule i16 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp ule <8 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp ule <16 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp ule <32 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp ule <64 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp ule i32 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp ule <4 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp ule <8 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp ule <16 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp ule <32 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp ule i64 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp ule <2 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp ule <4 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp ule <8 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp ule <16 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+ %I8 = icmp ule i8 undef, undef
+ %V16I8 = icmp ule <16 x i8> undef, undef
+ %V32I8 = icmp ule <32 x i8> undef, undef
+ %V64I8 = icmp ule <64 x i8> undef, undef
+ %V128I8 = icmp ule <128 x i8> undef, undef
+
+ %I16 = icmp ule i16 undef, undef
+ %V8I16 = icmp ule <8 x i16> undef, undef
+ %V16I16 = icmp ule <16 x i16> undef, undef
+ %V32I16 = icmp ule <32 x i16> undef, undef
+ %V64I16 = icmp ule <64 x i16> undef, undef
+
+ %I32 = icmp ule i32 undef, undef
+ %V4I32 = icmp ule <4 x i32> undef, undef
+ %V8I32 = icmp ule <8 x i32> undef, undef
+ %V16I32 = icmp ule <16 x i32> undef, undef
+ %V32I32 = icmp ule <32 x i32> undef, undef
+
+ %I64 = icmp ule i64 undef, undef
+ %V2I64 = icmp ule <2 x i64> undef, undef
+ %V4I64 = icmp ule <4 x i64> undef, undef
+ %V8I64 = icmp ule <8 x i64> undef, undef
+ %V16I64 = icmp ule <16 x i64> undef, undef
+
+ ret i32 undef
+}
+
+define i32 @cmp_int_slt(i32 %arg) {
+; LATE-LABEL: 'cmp_int_slt'
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp slt i8 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp slt <16 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp slt <32 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp slt <64 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp slt <128 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp slt i16 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp slt <8 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp slt <16 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp slt <32 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp slt <64 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp slt i32 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp slt <4 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp slt <8 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp slt <16 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp slt <32 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp slt i64 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp slt <2 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp slt <4 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp slt <8 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp slt <16 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE-LABEL: 'cmp_int_slt'
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp slt i8 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp slt <16 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp slt <32 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp slt <64 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp slt <128 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp slt i16 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp slt <8 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp slt <16 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp slt <32 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp slt <64 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp slt i32 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp slt <4 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp slt <8 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp slt <16 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp slt <32 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp slt i64 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp slt <2 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp slt <4 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp slt <8 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp slt <16 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE_LATE-LABEL: 'cmp_int_slt'
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp slt i8 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp slt <16 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp slt <32 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp slt <64 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp slt <128 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp slt i16 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp slt <8 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp slt <16 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp slt <32 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp slt <64 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp slt i32 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp slt <4 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp slt <8 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp slt <16 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp slt <32 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp slt i64 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp slt <2 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp slt <4 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp slt <8 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp slt <16 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+ %I8 = icmp slt i8 undef, undef
+ %V16I8 = icmp slt <16 x i8> undef, undef
+ %V32I8 = icmp slt <32 x i8> undef, undef
+ %V64I8 = icmp slt <64 x i8> undef, undef
+ %V128I8 = icmp slt <128 x i8> undef, undef
+
+ %I16 = icmp slt i16 undef, undef
+ %V8I16 = icmp slt <8 x i16> undef, undef
+ %V16I16 = icmp slt <16 x i16> undef, undef
+ %V32I16 = icmp slt <32 x i16> undef, undef
+ %V64I16 = icmp slt <64 x i16> undef, undef
+
+ %I32 = icmp slt i32 undef, undef
+ %V4I32 = icmp slt <4 x i32> undef, undef
+ %V8I32 = icmp slt <8 x i32> undef, undef
+ %V16I32 = icmp slt <16 x i32> undef, undef
+ %V32I32 = icmp slt <32 x i32> undef, undef
+
+ %I64 = icmp slt i64 undef, undef
+ %V2I64 = icmp slt <2 x i64> undef, undef
+ %V4I64 = icmp slt <4 x i64> undef, undef
+ %V8I64 = icmp slt <8 x i64> undef, undef
+ %V16I64 = icmp slt <16 x i64> undef, undef
+
+ ret i32 undef
+}
+
+define i32 @cmp_int_ult(i32 %arg) {
+; LATE-LABEL: 'cmp_int_ult'
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp ult i8 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp ult <16 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp ult <32 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp ult <64 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp ult <128 x i8> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp ult i16 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp ult <8 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp ult <16 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp ult <32 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp ult <64 x i16> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp ult i32 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp ult <4 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp ult <8 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp ult <16 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp ult <32 x i32> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp ult i64 undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp ult <2 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp ult <4 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp ult <8 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp ult <16 x i64> undef, undef
+; LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE-LABEL: 'cmp_int_ult'
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp ult i8 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp ult <16 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp ult <32 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp ult <64 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp ult <128 x i8> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp ult i16 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp ult <8 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp ult <16 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp ult <32 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp ult <64 x i16> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp ult i32 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp ult <4 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp ult <8 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp ult <16 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp ult <32 x i32> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp ult i64 undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp ult <2 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp ult <4 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp ult <8 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp ult <16 x i64> undef, undef
+; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+; SIZE_LATE-LABEL: 'cmp_int_ult'
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I8 = icmp ult i8 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I8 = icmp ult <16 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I8 = icmp ult <32 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I8 = icmp ult <64 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V128I8 = icmp ult <128 x i8> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I16 = icmp ult i16 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I16 = icmp ult <8 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I16 = icmp ult <16 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I16 = icmp ult <32 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V64I16 = icmp ult <64 x i16> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I32 = icmp ult i32 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I32 = icmp ult <4 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I32 = icmp ult <8 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I32 = icmp ult <16 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V32I32 = icmp ult <32 x i32> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = icmp ult i64 undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V2I64 = icmp ult <2 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V4I64 = icmp ult <4 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V8I64 = icmp ult <8 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %V16I64 = icmp ult <16 x i64> undef, undef
+; SIZE_LATE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 undef
+;
+ %I8 = icmp ult i8 undef, undef
+ %V16I8 = icmp ult <16 x i8> undef, undef
+ %V32I8 = icmp ult <32 x i8> undef, undef
+ %V64I8 = icmp ult <64 x i8> undef, undef
+ %V128I8 = icmp ult <128 x i8> undef, undef
+
+ %I16 = icmp ult i16 undef, undef
+ %V8I16 = icmp ult <8 x i16> undef, undef
+ %V16I16 = icmp ult <16 x i16> undef, undef
+ %V32I16 = icmp ult <32 x i16> undef, undef
+ %V64I16 = icmp ult <64 x i16> undef, undef
+
+ %I32 = icmp ult i32 undef, undef
+ %V4I32 = icmp ult <4 x i32> undef, undef
+ %V8I32 = icmp ult <8 x i32> undef, undef
+ %V16I32 = icmp ult <16 x i32> undef, undef
+ %V32I32 = icmp ult <32 x i32> undef, undef
+
+ %I64 = icmp ult i64 undef, undef
+ %V2I64 = icmp ult <2 x i64> undef, undef
+ %V4I64 = icmp ult <4 x i64> undef, undef
+ %V8I64 = icmp ult <8 x i64> undef, undef
+ %V16I64 = icmp ult <16 x i64> undef, undef
+
+ ret i32 undef
+}
+
More information about the llvm-commits
mailing list