summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/XCore
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/XCore
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/XCore')
-rw-r--r--llvm/test/CodeGen/XCore/codemodel.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/XCore/codemodel.ll b/llvm/test/CodeGen/XCore/codemodel.ll
index d18525f3a9b..93b9d6d911d 100644
--- a/llvm/test/CodeGen/XCore/codemodel.ll
+++ b/llvm/test/CodeGen/XCore/codemodel.ll
@@ -1,6 +1,7 @@
; RUN: not llc < %s -march=xcore -code-model=medium 2>&1 | FileCheck %s -check-prefix=BAD_CM
; RUN: not llc < %s -march=xcore -code-model=kernel 2>&1 | FileCheck %s -check-prefix=BAD_CM
+; RUN: not llc < %s -march=xcore -code-model=tiny 2>&1 | FileCheck %s -check-prefix=BAD_CM
; BAD_CM: Target only supports CodeModel Small or Large
OpenPOWER on IntegriCloud