mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
76448ad394
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
10 lines
406 B
LLVM
10 lines
406 B
LLVM
; 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
|
|
}
|