xref: /aosp_15_r20/external/llvm/test/MC/ARM/directive-thumb_func.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker@ RUN: not llvm-mc -triple armv7-eabi -filetype asm -o /dev/null %s 2>&1 \
2*9880d681SAndroid Build Coastguard Worker@ RUN:    | FileCheck %s -check-prefix CHECK-EABI
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker@ NOTE: this test ensures that both forms are accepted for MachO
5*9880d681SAndroid Build Coastguard Worker@ RUN: llvm-mc -triple armv7-darwin -filetype asm -o /dev/null %s
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker	.syntax unified
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker	.thumb_func
10*9880d681SAndroid Build Coastguard Workerno_suffix:
11*9880d681SAndroid Build Coastguard Worker	bx lr
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker	.thumb_func suffix
14*9880d681SAndroid Build Coastguard Workersuffix:
15*9880d681SAndroid Build Coastguard Worker	bx lr
16*9880d681SAndroid Build Coastguard Worker
17*9880d681SAndroid Build Coastguard Worker// CHECK-EABI: error: unexpected token in directive
18*9880d681SAndroid Build Coastguard Worker// CHECK-EABI: 	.thumb_func suffix
19*9880d681SAndroid Build Coastguard Worker// CHECK-EABI:              ^
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Worker// CHECK-EABI-NOT: error: invalid instruction
22*9880d681SAndroid Build Coastguard Worker
23