1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/MC/ARM/directive-thumb_func.s
Nirav Dave 3bc0a0e24a [ARM][MC] Cleanup ARM Target Assembly Parser
Summary:
Correctly parse end-of-statement tokens and handle preprocessor
end-of-line comments in ARM assembly processor.

Reviewers: rnk, majnemer

Subscribers: aemerson, rengolin, llvm-commits

Differential Revision: https://reviews.llvm.org/D26152

llvm-svn: 285830
2016-11-02 16:22:51 +00:00

23 lines
523 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 '.thumb_func' directive
// CHECK-EABI: .thumb_func suffix
// CHECK-EABI: ^
// CHECK-EABI-NOT: error: invalid instruction