aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64/cpus.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/AArch64/cpus.ll')
-rw-r--r--test/CodeGen/AArch64/cpus.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/cpus.ll b/test/CodeGen/AArch64/cpus.ll
new file mode 100644
index 000000000000..f0f36bd5cea5
--- /dev/null
+++ b/test/CodeGen/AArch64/cpus.ll
@@ -0,0 +1,14 @@
+; This tests that llc accepts all valid AArch64 CPUs
+
+
+; RUN: llc < %s -mtriple=arm64-unknown-unknown -mcpu=generic 2>&1 | FileCheck %s
+; RUN: llc < %s -mtriple=arm64-unknown-unknown -mcpu=cortex-a53 2>&1 | FileCheck %s
+; RUN: llc < %s -mtriple=arm64-unknown-unknown -mcpu=cortex-a57 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
+; INVALID: {{.*}} is not a recognized processor for this target
+
+define i32 @f(i64 %z) {
+ ret i32 0
+}