brintos

brintos / llvm-project-archived public Read only

0
0
Text · 465 B · 4987daf Raw
11 lines · plain
1; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -mtriple=systemz-unknown -mcpu=z13 | FileCheck %s2 3; Test that the cost for the number of vector registers is returned for a4; non-power-of-two vector type.5define <6 x double> @fun0(<6 x double> %lhs, <6 x double> %rhs) {6  %a = fadd <6 x double> %lhs, %rhs7  ret <6 x double> %a8; CHECK: function 'fun0'9; CHECK: Cost Model: Found an estimated cost of 3 for instruction:   %a = fadd <6 x double>10}11