mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
c8cead33b4
The Power 9 CPU has some features that are unlikely to be passed on to future versions of the CPU. This patch separates this out so that future CPU does not inherit them. Differential Revision: https://reviews.llvm.org/D70466
17 lines
546 B
LLVM
17 lines
546 B
LLVM
; 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
|
|
}
|
|
|