55ead8506ab132a21b8fbad3290ffdc1f008d57a
[oota-llvm.git] / test / MC / ARM / directive-arch_extension-sec.s
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 thumbv6-eabi -filetype asm -o /dev/null 2>&1 %s \
6 @ RUN:   | FileCheck %s -check-prefix CHECK-THUMBv6 -check-prefix CHECK-V6
7 @ RUN: not llvm-mc -triple thumbv7-eabi -filetype asm -o /dev/null 2>&1 %s \
8 @ RUN:   | FileCheck %s -check-prefix CHECK-THUMBv7 -check-prefix CHECK-V7
9
10         .syntax unified
11
12         .arch_extension sec
13 @ CHECK-V6: error: architectural extension 'sec' is not allowed for the current base architecture
14 @ CHECK-V6-NEXT:        .arch_extension sec
15 @ CHECK-V6-NEXT:                     ^
16
17         .type sec,%function
18 sec:
19         smc #0
20 @ CHECK-V6: error: instruction requires: TrustZone
21
22         .arch_extension nosec
23 @ CHECK-V6: error: architectural extension 'sec' is not allowed for the current base architecture
24 @ CHECK-V6-NEXT:        .arch_extension nosec
25 @ CHECK-V6-NEXT:                     ^
26
27         .type nosec,%function
28 nosec:
29         smc #0
30 @ CHECK-V7: error: instruction requires: TrustZone
31