[SLP] Add cost model for `llvm.powi.*` intrinsics (REAPPLIED)
[llvm-project.git] / llvm / test / Analysis / CostModel / SystemZ / numvectorregs.ll
blobd64ab434574dd47b9cc6d8fff81868ed02cba1a2
1 ; RUN: opt < %s -passes='print<cost-model>' 2>&1 -disable-output -mtriple=systemz-unknown -mcpu=z13 | FileCheck %s
3 ; Test that the cost for the number of vector registers is returned for a
4 ; non-power-of-two vector type.
5 define <6 x double> @fun0(<6 x double> %lhs, <6 x double> %rhs) {
6   %a = fadd <6 x double> %lhs, %rhs
7   ret <6 x double> %a
8 ; CHECK: function 'fun0'
9 ; CHECK: Cost Model: Found an estimated cost of 3 for instruction:   %a = fadd <6 x double>