[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / directive-thumb_func.s
blobe83901888358de43ac7fd8d79f61357dc864c133
1 @ RUN: not llvm-mc -triple armv7-eabi -filetype asm -o /dev/null %s 2>&1 \
2 @ RUN: | FileCheck %s -check-prefix CHECK-EABI
4 @ NOTE: this test ensures that both forms are accepted for MachO
5 @ RUN: llvm-mc -triple armv7-darwin -filetype asm -o /dev/null %s
7 .syntax unified
9 .thumb_func
10 no_suffix:
11 bx lr
13 .thumb_func suffix
14 suffix:
15 bx lr
17 // CHECK-EABI: error: unexpected token in '.thumb_func' directive
18 // CHECK-EABI: .thumb_func suffix
19 // CHECK-EABI: ^
21 // CHECK-EABI-NOT: error: invalid instruction