summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2015-06-12 23:37:11 +0000
committerTim Northover <tnorthover@apple.com>2015-06-12 23:37:11 +0000
commit02cfdbb7f142dfa42c600c23fdd5275a6d8dc7de (patch)
tree5f54de12e1a8a2d819439731175b9e3b53ddbdcb /llvm/test/CodeGen/AArch64
parentff715e2d5ec91e971daa70fdcfc153903030cd15 (diff)
downloadbcm5719-llvm-02cfdbb7f142dfa42c600c23fdd5275a6d8dc7de.tar.gz
bcm5719-llvm-02cfdbb7f142dfa42c600c23fdd5275a6d8dc7de.zip
AArch64: map bare-metal arm64-macho triple to MachO MC layer.
Far better than an assertion about expecting ELF. llvm-svn: 239647
Diffstat (limited to 'llvm/test/CodeGen/AArch64')
-rw-r--r--llvm/test/CodeGen/AArch64/simple-macho.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/simple-macho.ll b/llvm/test/CodeGen/AArch64/simple-macho.ll
new file mode 100644
index 00000000000..e9dd98e230d
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/simple-macho.ll
@@ -0,0 +1,12 @@
+; RUN: llc -mtriple=arm64-macho -o - %s | FileCheck %s
+; RUN: llc -mtriple=arm64-macho -filetype=obj -o %t %s
+; RUN: llvm-objdump -triple=arm64-macho -d %t | FileCheck --check-prefix=CHECK-OBJ %s
+
+define void @foo() {
+; CHECK-LABEL: _foo:
+; CHECK: ret
+
+; CHECK-OBJ: 0: c0 03 5f d6 ret
+
+ ret void
+} \ No newline at end of file
OpenPOWER on IntegriCloud