[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / directive-arch_extension-mp.s
blob9046c215315510aefdd0a33d4d6ad8263ba81aa1
1 @ RUN: not llvm-mc -triple armv6-eabi -filetype asm -o /dev/null 2>&1 %s \
2 @ RUN: | FileCheck %s -check-prefix CHECK-ARMv6 -check-prefix CHECK-V6
3 @ RUN: not llvm-mc -triple armv7-eabi -filetype asm -o /dev/null 2>&1 %s \
4 @ RUN: | FileCheck %s -check-prefix CHECK-ARMv7 -check-prefix CHECK-V7
5 @ RUN: not llvm-mc -triple armv7m-eabi -filetype asm -o /dev/null 2>&1 %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ARMv7M -check-prefix CHECK-V7M
7 @ RUN: not llvm-mc -triple thumbv6-eabi -filetype asm -o /dev/null 2>&1 %s \
8 @ RUN: | FileCheck %s -check-prefix CHECK-THUMBv6 -check-prefix CHECK-V6
9 @ RUN: not llvm-mc -triple thumbv7-eabi -filetype asm -o /dev/null 2>&1 %s \
10 @ RUN: | FileCheck %s -check-prefix CHECK-THUMBv7 -check-prefix CHECK-V7
11 @ RUN: not llvm-mc -triple thumbv7m-eabi -filetype asm -o /dev/null 2>&1 %s \
12 @ RUN: | FileCheck %s -check-prefix CHECK-THUMBv7M -check-prefix CHECK-V7M
14 .syntax unified
16 .arch_extension mp
17 @ CHECK-V6: error: architectural extension 'mp' is not allowed for the current base architecture
18 @ CHECK-V6-NEXT: .arch_extension mp
19 @ CHECK-V6-NEXT: ^
21 .type mp,%function
22 mp:
23 pldw [r0]
24 @ CHECK-V6: error: instruction requires: mp-extensions armv7
25 @ CHECK-V7M: error: instruction requires: mp-extensions
27 .arch_extension nomp
28 @ CHECK-V6: error: architectural extension 'mp' is not allowed for the current base architecture
29 @ CHECK-V6-NEXT: .arch_extension nomp
30 @ CHECK-V6-NEXT: ^
32 .type nomp,%function
33 nomp:
34 pldw [r0]
35 @ CHECK-V6: error: instruction requires: mp-extensions armv7
36 @ CHECK-V7: error: instruction requires: mp-extensions
37 @ CHECK-V7M: error: instruction requires: mp-extensions