1 ; RUN: llc -mtriple=arm64-linux-gnu < %s | FileCheck %s 2 ; RUN: llc -mtriple=arm64-linux-gnu -filetype=obj < %s | llvm-objdump - -r -d --triple=arm64-linux-gnu | FileCheck --check-prefix=CHECK-ELF %s 3 4 define void @foo() nounwind { 5 ret void 6 } 7 8 ; Check source looks ELF-like: no leading underscore, comments with // 9 ; CHECK: foo: // @foo 10 ; CHECK: ret 11 12 ; Similarly make sure ELF output works and is vaguely sane: aarch64 target 13 ; machine with correct section & symbol names. 14 ; CHECK-ELF: file format ELF64-aarch64 15 16 ; CHECK-ELF: Disassembly of section .text 17 ; CHECK-ELF-LABEL: foo: 18 ; CHECK-ELF: ret 19