diff options
| author | Artyom Skrobov <Artyom.Skrobov@arm.com> | 2015-09-30 17:25:52 +0000 |
|---|---|---|
| committer | Artyom Skrobov <Artyom.Skrobov@arm.com> | 2015-09-30 17:25:52 +0000 |
| commit | 72ca6b8f3fcc2f8936ec675969f036521fabc63f (patch) | |
| tree | 5319f00cc41a3cfe9e7f1ff5ed620c38cf65c59c /llvm/test/MC/ARM/directive-arch_extension-sec.s | |
| parent | f7c5fbb1ca982eebad6000d2ca53d8ad2cb922ff (diff) | |
| download | bcm5719-llvm-72ca6b8f3fcc2f8936ec675969f036521fabc63f.tar.gz bcm5719-llvm-72ca6b8f3fcc2f8936ec675969f036521fabc63f.zip | |
[ARM] Support for ARMv6-Z / ARMv6-ZK missing
As Richard Barton observed at http://reviews.llvm.org/D12937#inline-107121
TargetParser in LLVM has insufficient support for ARMv6Z and ARMv6ZK.
In particular, there were no tests for TrustZone being supported in these
architectures.
The patch clears a FIXME: left by Saleem Abdulrasool in r201471, and fixes
his test case which hadn't really been testing what it was claiming to test.
Differential Revision: http://reviews.llvm.org/D13236
llvm-svn: 248921
Diffstat (limited to 'llvm/test/MC/ARM/directive-arch_extension-sec.s')
| -rw-r--r-- | llvm/test/MC/ARM/directive-arch_extension-sec.s | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/llvm/test/MC/ARM/directive-arch_extension-sec.s b/llvm/test/MC/ARM/directive-arch_extension-sec.s index 55ead8506ab..645da0f75d3 100644 --- a/llvm/test/MC/ARM/directive-arch_extension-sec.s +++ b/llvm/test/MC/ARM/directive-arch_extension-sec.s @@ -1,11 +1,13 @@ @ RUN: not llvm-mc -triple armv6-eabi -filetype asm -o /dev/null 2>&1 %s \ -@ RUN: | FileCheck %s -check-prefix CHECK-ARMv6 -check-prefix CHECK-V6 +@ RUN: | FileCheck %s -check-prefix CHECK-V6 +@ RUN: not llvm-mc -triple armv6k-eabi -filetype asm -o /dev/null 2>&1 %s \ +@ RUN: | FileCheck %s -check-prefix CHECK-V7 @ RUN: not llvm-mc -triple armv7-eabi -filetype asm -o /dev/null 2>&1 %s \ -@ RUN: | FileCheck %s -check-prefix CHECK-ARMv7 -check-prefix CHECK-V7 +@ RUN: | FileCheck %s -check-prefix CHECK-V7 @ RUN: not llvm-mc -triple thumbv6-eabi -filetype asm -o /dev/null 2>&1 %s \ -@ RUN: | FileCheck %s -check-prefix CHECK-THUMBv6 -check-prefix CHECK-V6 +@ RUN: | FileCheck %s -check-prefix CHECK-V6 @ RUN: not llvm-mc -triple thumbv7-eabi -filetype asm -o /dev/null 2>&1 %s \ -@ RUN: | FileCheck %s -check-prefix CHECK-THUMBv7 -check-prefix CHECK-V7 +@ RUN: | FileCheck %s -check-prefix CHECK-V7 .syntax unified @@ -13,6 +15,7 @@ @ CHECK-V6: error: architectural extension 'sec' is not allowed for the current base architecture @ CHECK-V6-NEXT: .arch_extension sec @ CHECK-V6-NEXT: ^ +@ CHECK-V7-NOT: error: architectural extension 'sec' is not allowed for the current base architecture .type sec,%function sec: @@ -23,9 +26,11 @@ sec: @ CHECK-V6: error: architectural extension 'sec' is not allowed for the current base architecture @ CHECK-V6-NEXT: .arch_extension nosec @ CHECK-V6-NEXT: ^ +@ CHECK-V7-NOT: error: architectural extension 'sec' is not allowed for the current base architecture .type nosec,%function nosec: smc #0 @ CHECK-V7: error: instruction requires: TrustZone +@ CHECK-V7-NOT: error: instruction requires: TrustZone |

