summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2019-01-28 19:27:33 +0000
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>2019-01-28 19:27:33 +0000
commit556ea7d2e0ba09199e272509369449eb74c6cffc (patch)
treeb53f815bd13699dfe4384492f3530b46fe628ce8 /llvm/test/CodeGen
parent12f4b86808bf0874e222605c93c6e2be56b81bf5 (diff)
downloadbcm5719-llvm-556ea7d2e0ba09199e272509369449eb74c6cffc.tar.gz
bcm5719-llvm-556ea7d2e0ba09199e272509369449eb74c6cffc.zip
[AArch64] Add 'apple-latest' CPU alias
The 'apple-latest' alias is supposed to provide a CPU that contains the latest Apple processor model supported by LLVM. This is supposed to be used by tools like lldb to provide a target that supports most of the CPU features. For now, this is mapped to Cyclone. Differential Revision: https://reviews.llvm.org/D56384 llvm-svn: 352412
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/AArch64/apple-latest-cpu.ll7
-rw-r--r--llvm/test/CodeGen/AArch64/cpus.ll1
2 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/apple-latest-cpu.ll b/llvm/test/CodeGen/AArch64/apple-latest-cpu.ll
new file mode 100644
index 00000000000..033c3772af0
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/apple-latest-cpu.ll
@@ -0,0 +1,7 @@
+; RUN: llc -mtriple=arm64-apple-ios -mcpu=apple-latest -stop-before=expand-isel-pseudos -o - 2>&1 < %s | FileCheck %s
+
+; CHECK-LABEL: @dummy
+; CHECK: "target-cpu"="apple-latest"
+define void @dummy() {
+ ret void
+}
diff --git a/llvm/test/CodeGen/AArch64/cpus.ll b/llvm/test/CodeGen/AArch64/cpus.ll
index d4a32bd278c..c639ee0beff 100644
--- a/llvm/test/CodeGen/AArch64/cpus.ll
+++ b/llvm/test/CodeGen/AArch64/cpus.ll
@@ -18,6 +18,7 @@
; RUN: llc < %s -mtriple=arm64-unknown-unknown -mcpu=kryo 2>&1 | FileCheck %s
; RUN: llc < %s -mtriple=arm64-unknown-unknown -mcpu=thunderx2t99 2>&1 | FileCheck %s
; RUN: llc < %s -mtriple=arm64-unknown-unknown -mcpu=tsv110 2>&1 | FileCheck %s
+; RUN: llc < %s -mtriple=arm64-unknown-unknown -mcpu=apple-latest 2>&1 | FileCheck %s
; RUN: llc < %s -mtriple=arm64-unknown-unknown -mcpu=invalidcpu 2>&1 | FileCheck %s --check-prefix=INVALID
; CHECK-NOT: {{.*}} is not a recognized processor for this target
OpenPOWER on IntegriCloud