Home | History | Annotate | Download | only in ARM
      1 @ RUN: not llvm-mc -triple armv6-eabi -filetype asm -o /dev/null 2>&1 %s \
      2 @ RUN:   | FileCheck %s -check-prefix CHECK-V6
      3 @ RUN: not llvm-mc -triple armv6k-eabi -filetype asm -o /dev/null 2>&1 %s \
      4 @ RUN:   | FileCheck %s -check-prefix CHECK-V7
      5 @ RUN: not llvm-mc -triple armv7-eabi -filetype asm -o /dev/null 2>&1 %s \
      6 @ RUN:   | FileCheck %s -check-prefix CHECK-V7
      7 @ RUN: not llvm-mc -triple thumbv6-eabi -filetype asm -o /dev/null 2>&1 %s \
      8 @ RUN:   | FileCheck %s -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-V7
     11 
     12 	.syntax unified
     13 
     14 	.arch_extension sec
     15 @ CHECK-V6: error: architectural extension 'sec' is not allowed for the current base architecture
     16 @ CHECK-V6-NEXT: 	.arch_extension sec
     17 @ CHECK-V6-NEXT:                     ^
     18 @ CHECK-V7-NOT: error: architectural extension 'sec' is not allowed for the current base architecture
     19 
     20 	.type sec,%function
     21 sec:
     22 	smc #0
     23 @ CHECK-V6: error: instruction requires: TrustZone
     24 
     25 	.arch_extension nosec
     26 @ CHECK-V6: error: architectural extension 'sec' is not allowed for the current base architecture
     27 @ CHECK-V6-NEXT: 	.arch_extension nosec
     28 @ CHECK-V6-NEXT:                     ^
     29 @ CHECK-V7-NOT: error: architectural extension 'sec' is not allowed for the current base architecture
     30 
     31 	.type nosec,%function
     32 nosec:
     33 	smc #0
     34 @ CHECK-V7: error: instruction requires: TrustZone
     35 @ CHECK-V7-NOT: error: instruction requires: TrustZone
     36 
     37