diff options
author | Stefan Pintilie <stefanp@ca.ibm.com> | 2019-11-27 15:38:05 -0600 |
---|---|---|
committer | Stefan Pintilie <stefanp@ca.ibm.com> | 2019-11-27 15:40:13 -0600 |
commit | 8e84c9ae99846c91c4e9828f1945c200d26d2fb9 (patch) | |
tree | d1e75366180ecedfe863bff7560849e318b986a3 /llvm/test/Analysis | |
parent | 549ff601f053303356abe7d8fca8fbcf5e3502e7 (diff) | |
download | bcm5719-llvm-8e84c9ae99846c91c4e9828f1945c200d26d2fb9.tar.gz bcm5719-llvm-8e84c9ae99846c91c4e9828f1945c200d26d2fb9.zip |
[PowerPC] Separate Features that are known to be Power9 specific from Future CPU
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
Diffstat (limited to 'llvm/test/Analysis')
-rw-r--r-- | llvm/test/Analysis/CostModel/PowerPC/future-cost-model.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/Analysis/CostModel/PowerPC/future-cost-model.ll b/llvm/test/Analysis/CostModel/PowerPC/future-cost-model.ll new file mode 100644 index 00000000000..3e4fb82e600 --- /dev/null +++ b/llvm/test/Analysis/CostModel/PowerPC/future-cost-model.ll @@ -0,0 +1,16 @@ +; 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 +} + |