You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
546 B
17 lines
546 B
4 months ago
|
; 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
|
||
|
}
|
||
|
|