xref: /aosp_15_r20/external/llvm/test/MC/ARM/directive-arch_extension-mp.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker@ RUN: not llvm-mc -triple armv6-eabi -filetype asm -o /dev/null 2>&1 %s \
2*9880d681SAndroid Build Coastguard Worker@ RUN:   | FileCheck %s -check-prefix CHECK-ARMv6 -check-prefix CHECK-V6
3*9880d681SAndroid Build Coastguard Worker@ RUN: not llvm-mc -triple armv7-eabi -filetype asm -o /dev/null 2>&1 %s \
4*9880d681SAndroid Build Coastguard Worker@ RUN:   | FileCheck %s -check-prefix CHECK-ARMv7 -check-prefix CHECK-V7
5*9880d681SAndroid Build Coastguard Worker@ RUN: not llvm-mc -triple armv7m-eabi -filetype asm -o /dev/null 2>&1 %s \
6*9880d681SAndroid Build Coastguard Worker@ RUN:   | FileCheck %s -check-prefix CHECK-ARMv7M -check-prefix CHECK-V7M
7*9880d681SAndroid Build Coastguard Worker@ RUN: not llvm-mc -triple thumbv6-eabi -filetype asm -o /dev/null 2>&1 %s \
8*9880d681SAndroid Build Coastguard Worker@ RUN:   | FileCheck %s -check-prefix CHECK-THUMBv6 -check-prefix CHECK-V6
9*9880d681SAndroid Build Coastguard Worker@ RUN: not llvm-mc -triple thumbv7-eabi -filetype asm -o /dev/null 2>&1 %s \
10*9880d681SAndroid Build Coastguard Worker@ RUN:   | FileCheck %s -check-prefix CHECK-THUMBv7 -check-prefix CHECK-V7
11*9880d681SAndroid Build Coastguard Worker@ RUN: not llvm-mc -triple thumbv7m-eabi -filetype asm -o /dev/null 2>&1 %s \
12*9880d681SAndroid Build Coastguard Worker@ RUN:   | FileCheck %s -check-prefix CHECK-THUMBv7M -check-prefix CHECK-V7M
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Worker	.syntax unified
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Worker	.arch_extension mp
17*9880d681SAndroid Build Coastguard Worker@ CHECK-V6: error: architectural extension 'mp' is not allowed for the current base architecture
18*9880d681SAndroid Build Coastguard Worker@ CHECK-V6-NEXT: 	.arch_extension mp
19*9880d681SAndroid Build Coastguard Worker@ CHECK-V6-NEXT:                     ^
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Worker	.type mp,%function
22*9880d681SAndroid Build Coastguard Workermp:
23*9880d681SAndroid Build Coastguard Worker	pldw [r0]
24*9880d681SAndroid Build Coastguard Worker@ CHECK-V6: error: instruction requires: mp-extensions armv7
25*9880d681SAndroid Build Coastguard Worker@ CHECK-V7M: error: instruction requires: mp-extensions
26*9880d681SAndroid Build Coastguard Worker
27*9880d681SAndroid Build Coastguard Worker	.arch_extension nomp
28*9880d681SAndroid Build Coastguard Worker@ CHECK-V6: error: architectural extension 'mp' is not allowed for the current base architecture
29*9880d681SAndroid Build Coastguard Worker@ CHECK-V6-NEXT: 	.arch_extension nomp
30*9880d681SAndroid Build Coastguard Worker@ CHECK-V6-NEXT:                     ^
31*9880d681SAndroid Build Coastguard Worker
32*9880d681SAndroid Build Coastguard Worker	.type nomp,%function
33*9880d681SAndroid Build Coastguard Workernomp:
34*9880d681SAndroid Build Coastguard Worker	pldw [r0]
35*9880d681SAndroid Build Coastguard Worker@ CHECK-V6: error: instruction requires: mp-extensions armv7
36*9880d681SAndroid Build Coastguard Worker@ CHECK-V7: error: instruction requires: mp-extensions
37*9880d681SAndroid Build Coastguard Worker@ CHECK-V7M: error: instruction requires: mp-extensions
38*9880d681SAndroid Build Coastguard Worker
39