1 ; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -mtriple=systemz-unknown -mcpu=z13 | FileCheck %s
3 ; Costs for conversion of i1 to fp.
5 define float @fun0(i64 %val1, i64 %val2) {
6 %cmp = icmp eq i64 %val1, %val2
7 %v = uitofp i1 %cmp to float
11 ; CHECK: cost of 1 for instruction: %cmp = icmp eq i64 %val1, %val2
12 ; CHECK: cost of 5 for instruction: %v = uitofp i1 %cmp to float
15 define double @fun1(i64 %val1, i64 %val2) {
16 %cmp = icmp eq i64 %val1, %val2
17 %v = uitofp i1 %cmp to double
21 ; CHECK: cost of 1 for instruction: %cmp = icmp eq i64 %val1, %val2
22 ; CHECK: cost of 5 for instruction: %v = uitofp i1 %cmp to double