brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · f4c4fce Raw
49 lines · plain
1; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -mtriple=systemz-unknown -mcpu=z13 \2; RUN:  | FileCheck %s -check-prefixes=CHECK,Z133; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -mtriple=systemz-unknown -mcpu=z14 \4; RUN:  | FileCheck %s -check-prefixes=CHECK,Z145 6define void @fun(i128 %a)  {7; CHECK-LABEL: 'fun'8; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %c0 = xor i128 %l0, -19; Z13:   Cost Model: Found an estimated cost of 1 for instruction: %res0 = or i128 %a, %c010; Z14:   Cost Model: Found an estimated cost of 0 for instruction: %res0 = or i128 %a, %c011; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %c1 = xor i128 %l1, -112; CHECK: Cost Model: Found an estimated cost of 0 for instruction: %res1 = and i128 %a, %c113; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %c2 = and i128 %l2, %a14; Z13:   Cost Model: Found an estimated cost of 1 for instruction: %res2 = xor i128 %c2, -115; Z14:   Cost Model: Found an estimated cost of 0 for instruction: %res2 = xor i128 %c2, -116; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %c3 = or i128 %l3, %a17; CHECK: Cost Model: Found an estimated cost of 0 for instruction: %res3 = xor i128 %c3, -118; CHECK: Cost Model: Found an estimated cost of 1 for instruction: %c4 = xor i128 %l4, %a19; Z13:   Cost Model: Found an estimated cost of 1 for instruction: %res4 = xor i128 %c4, -120; Z14:   Cost Model: Found an estimated cost of 0 for instruction: %res4 = xor i128 %c4, -121;22  %l0 = load i128, ptr undef23  %c0 = xor i128 %l0, -124  %res0 = or i128 %a, %c025  store i128 %res0, ptr undef26 27  %l1 = load i128, ptr undef28  %c1 = xor i128 %l1, -129  %res1 = and i128 %a, %c130  store i128 %res1, ptr undef31 32  %l2 = load i128, ptr undef33  %c2 = and i128 %l2, %a34  %res2 = xor i128 %c2, -135  store i128 %res2, ptr undef36 37  %l3 = load i128, ptr undef38  %c3 = or i128 %l3, %a39  %res3 = xor i128 %c3, -140  store i128 %res3, ptr undef41 42  %l4 = load i128, ptr undef43  %c4 = xor i128 %l4, %a44  %res4 = xor i128 %c4, -145  store i128 %res4, ptr undef46 47  ret void48}49