xref: /llvm-project/llvm/test/CodeGen/AArch64/tiny_supported.ll (revision d39b4ce3ce8a3c256e01bdec2b140777a332a633)
1; RUN: llc -verify-machineinstrs -o - -mtriple=aarch64-none-linux-gnu -code-model=tiny < %s 2>&1 | FileCheck %s
2; RUN: llc -verify-machineinstrs -o - -mtriple=aarch64 -code-model=tiny < %s 2>&1 | FileCheck %s
3; RUN: not --crash llc -verify-machineinstrs -o - -mtriple=arm64-apple-darwin -code-model=tiny < %s 2>&1 | FileCheck %s --check-prefix=NOTINY
4; RUN: not --crash llc -verify-machineinstrs -o - -mtriple=arm64-apple-ios -code-model=tiny < %s 2>&1 | FileCheck %s --check-prefix=NOTINY
5; RUN: not --crash llc -verify-machineinstrs -o - -mtriple=aarch64-unknown-windows-msvc -code-model=tiny < %s 2>&1 | FileCheck %s --check-prefix=NOTINY
6
7; CHECK-NOT:   tiny code model is only supported on ELF
8; CHECK-LABEL:   foo
9; NOTINY:   tiny code model is only supported on ELF
10
11define void @foo() {
12  ret void
13}
14