summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2018-12-07 12:10:23 +0000
committerDavid Green <david.green@arm.com>2018-12-07 12:10:23 +0000
commitca29c271d2b951b125b7f97264ca7b927db0b1cf (patch)
tree0c576a9c69d06179da070a855a87d460b62e4003 /llvm/test/CodeGen/ARM
parent700a29a153039c6176efaf7a3b7c0a274b8aafed (diff)
downloadbcm5719-llvm-ca29c271d2b951b125b7f97264ca7b927db0b1cf.tar.gz
bcm5719-llvm-ca29c271d2b951b125b7f97264ca7b927db0b1cf.zip
[Targets] Add errors for tiny and kernel codemodel on targets that don't support them
Adds fatal errors for any target that does not support the Tiny or Kernel codemodels by rejigging the getEffectiveCodeModel calls. Differential Revision: https://reviews.llvm.org/D50141 llvm-svn: 348585
Diffstat (limited to 'llvm/test/CodeGen/ARM')
-rw-r--r--llvm/test/CodeGen/ARM/codemodel.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/codemodel.ll b/llvm/test/CodeGen/ARM/codemodel.ll
new file mode 100644
index 00000000000..ec9982faba1
--- /dev/null
+++ b/llvm/test/CodeGen/ARM/codemodel.ll
@@ -0,0 +1,9 @@
+; RUN: not llc -verify-machineinstrs -o - -mtriple=arm-none-eabi -code-model=tiny < %s 2>&1 | FileCheck %s --check-prefix=TINY
+; RUN: not llc -verify-machineinstrs -o - -mtriple=arm-none-eabi -code-model=kernel < %s 2>&1 | FileCheck %s --check-prefix=KERNEL
+
+; TINY: Target does not support the tiny CodeModel
+; KERNEL: Target does not support the kernel CodeModel
+
+define void @foo() {
+ ret void
+}
OpenPOWER on IntegriCloud