1; RUN: opt < %s -cost-model -analyze -mtriple=powerpc64le-unknown-linux-gnu \
2; RUN:       -mcpu=future | FileCheck %s --check-prefix=FUTURE
3; RUN: opt < %s -cost-model -analyze -mtriple=powerpc64le-unknown-linux-gnu \
4; RUN:       -mcpu=pwr9 | FileCheck %s --check-prefix=PWR9
5
6define void @test(i16 %p1, i16 %p2, <4 x i16> %p3, <4 x i16> %p4) {
7  %i1 = add i16 %p1, %p2
8  %v1 = add <4 x i16> %p3, %p4
9  ret void
10  ; FUTURE: cost of 1 {{.*}} add
11  ; FUTURE: cost of 1 {{.*}} add
12
13  ; PWR9: cost of 1 {{.*}} add
14  ; PWR9: cost of 2 {{.*}} add
15}
16
17