37 lines · plain
1@ RUN: not llvm-mc -triple armv6-eabi -filetype asm -o /dev/null 2>&1 %s \2@ RUN: | FileCheck %s -check-prefix CHECK-V63@ RUN: not llvm-mc -triple armv6k-eabi -filetype asm -o /dev/null 2>&1 %s \4@ RUN: | FileCheck %s -check-prefix CHECK-V75@ RUN: not llvm-mc -triple armv7-eabi -filetype asm -o /dev/null 2>&1 %s \6@ RUN: | FileCheck %s -check-prefix CHECK-V77@ RUN: not llvm-mc -triple thumbv6-eabi -filetype asm -o /dev/null 2>&1 %s \8@ RUN: | FileCheck %s -check-prefix CHECK-V69@ RUN: not llvm-mc -triple thumbv7-eabi -filetype asm -o /dev/null 2>&1 %s \10@ RUN: | FileCheck %s -check-prefix CHECK-V711 12 .syntax unified13 14 .arch_extension sec15@ CHECK-V6: error: architectural extension 'sec' is not allowed for the current base architecture16@ CHECK-V6-NEXT: .arch_extension sec17@ CHECK-V6-NEXT: ^18@ CHECK-V7-NOT: error: architectural extension 'sec' is not allowed for the current base architecture19 20 .type sec,%function21sec:22 smc #023@ CHECK-V6: error: instruction requires: TrustZone24 25 .arch_extension nosec26@ CHECK-V6: error: architectural extension 'sec' is not allowed for the current base architecture27@ CHECK-V6-NEXT: .arch_extension nosec28@ CHECK-V6-NEXT: ^29@ CHECK-V7-NOT: error: architectural extension 'sec' is not allowed for the current base architecture30 31 .type nosec,%function32nosec:33 smc #034@ CHECK-V7: error: instruction requires: TrustZone35@ CHECK-V7-NOT: error: instruction requires: TrustZone36 37