diff options
| author | Sam Parker <sam.parker@arm.com> | 2017-01-13 11:04:21 +0000 |
|---|---|---|
| committer | Sam Parker <sam.parker@arm.com> | 2017-01-13 11:04:21 +0000 |
| commit | 770ceb69ba997d9a58cc258490640960911e7c11 (patch) | |
| tree | 56912ea2260427dfdb4ede08dc37ee9dbdc56024 /llvm/test/tools/llvm-objdump/ARM/v6m-subarch.s | |
| parent | 438a1ecc2caa8a0e96ba26ea067069d59ae03404 (diff) | |
| download | bcm5719-llvm-770ceb69ba997d9a58cc258490640960911e7c11.tar.gz bcm5719-llvm-770ceb69ba997d9a58cc258490640960911e7c11.zip | |
[ARM] Enable objdump to construct triple for ARM
Now that The ARMAttributeParser has been moved into the library,
it has been modified so that it can parse the attributes without
printing them and stores them in a map. ELFObjectFile now queries
the attributes to fill out the architecture details of a provided
triple for 'arm' and 'thumb' targets. llvm-objdump uses this new
functionality.
Differential Revision: https://reviews.llvm.org/D28281
llvm-svn: 291898
Diffstat (limited to 'llvm/test/tools/llvm-objdump/ARM/v6m-subarch.s')
| -rw-r--r-- | llvm/test/tools/llvm-objdump/ARM/v6m-subarch.s | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/ARM/v6m-subarch.s b/llvm/test/tools/llvm-objdump/ARM/v6m-subarch.s new file mode 100644 index 00000000000..f4c56989c17 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/ARM/v6m-subarch.s @@ -0,0 +1,9 @@ +@ RUN: llvm-mc < %s -triple armv6m-elf -filetype=obj | llvm-objdump -triple=thumb -d - | FileCheck %s + +.arch armv6m + +dmb: +dmb + +@ CHECK-LABEL: dmb +@ CHECK: bf f3 5f 8f dmb sy |

