aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ARM/directive-thumb_func.s
blob: f82e0d1b60a1906ec2308e8ebec446f38d5d6bfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@ 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