xref: /llvm-project/llvm/test/Analysis/CostModel/SystemZ/numvectorregs.ll (revision 4178e33470763b406f614b646c8b01d24309e20b)
1*4178e334SSimon Pilgrim; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -mtriple=systemz-unknown -mcpu=z13 | FileCheck %s
22c8b3377SJonas Paulsson
32c8b3377SJonas Paulsson; Test that the cost for the number of vector registers is returned for a
42c8b3377SJonas Paulsson; non-power-of-two vector type.
52c8b3377SJonas Paulssondefine <6 x double> @fun0(<6 x double> %lhs, <6 x double> %rhs) {
62c8b3377SJonas Paulsson  %a = fadd <6 x double> %lhs, %rhs
72c8b3377SJonas Paulsson  ret <6 x double> %a
815ba588dSArthur Eubanks; CHECK: function 'fun0'
92c8b3377SJonas Paulsson; CHECK: Cost Model: Found an estimated cost of 3 for instruction:   %a = fadd <6 x double>
102c8b3377SJonas Paulsson}
11