mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
5bf65590d0
Rather than relying on support for a specific directive to determine if we are targeting MachO, explicitly check the output format. As an additional bonus, cleanup the caret diagnostic for the non-MachO case and avoid the spurious error caused by not discarding the statement. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218012 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
509 B
ArmAsm
23 lines
509 B
ArmAsm
@ RUN: not llvm-mc -triple armv7-eabi -filetype asm -o /dev/null %s 2>&1 \
|
|
@ RUN: | FileCheck %s -check-prefix CHECK-EABI
|
|
|
|
@ NOTE: this test ensures that both forms are accepted for MachO
|
|
@ RUN: llvm-mc -triple armv7-darwin -filetype asm -o /dev/null %s
|
|
|
|
.syntax unified
|
|
|
|
.thumb_func
|
|
no_suffix:
|
|
bx lr
|
|
|
|
.thumb_func suffix
|
|
suffix:
|
|
bx lr
|
|
|
|
// CHECK-EABI: error: unexpected token in directive
|
|
// CHECK-EABI: .thumb_func suffix
|
|
// CHECK-EABI: ^
|
|
|
|
// CHECK-EABI-NOT: error: invalid instruction
|
|
|