blob: 3e4fb82e600c6d95c6d9bc6f80a987f8d8b04b6d [file] [log] [blame]
; RUN: opt < %s -cost-model -analyze -mtriple=powerpc64le-unknown-linux-gnu \
; RUN: -mcpu=future | FileCheck %s --check-prefix=FUTURE
; RUN: opt < %s -cost-model -analyze -mtriple=powerpc64le-unknown-linux-gnu \
; RUN: -mcpu=pwr9 | FileCheck %s --check-prefix=PWR9
define void @test(i16 %p1, i16 %p2, <4 x i16> %p3, <4 x i16> %p4) {
%i1 = add i16 %p1, %p2
%v1 = add <4 x i16> %p3, %p4
ret void
; FUTURE: cost of 1 {{.*}} add
; FUTURE: cost of 1 {{.*}} add
; PWR9: cost of 1 {{.*}} add
; PWR9: cost of 2 {{.*}} add
}