diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-01-30 04:46:41 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-01-30 04:46:41 +0000 |
commit | 09f38a0ef13bf542f7b3f1862d718e33e7de587b (patch) | |
tree | c82a746a55e2173bda6e65335d953fcaf7d13eab /test/MC/ARM/directive-object_arch-3.s | |
parent | 459c9497772f7d4e8567233a99f126198ec93b68 (diff) | |
download | llvm-09f38a0ef13bf542f7b3f1862d718e33e7de587b.tar.gz llvm-09f38a0ef13bf542f7b3f1862d718e33e7de587b.tar.bz2 llvm-09f38a0ef13bf542f7b3f1862d718e33e7de587b.tar.xz |
ARM IAS: support .object_arch
The .object_arch directive indicates an alternative architecture to be specified
in the object file. The directive does *not* effect the enabled feature bits
for the object file generation. This is particularly useful when the code
performs runtime detection and would like to indicate a lower architecture as
the requirements than the actual instructions used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM/directive-object_arch-3.s')
-rw-r--r-- | test/MC/ARM/directive-object_arch-3.s | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/MC/ARM/directive-object_arch-3.s b/test/MC/ARM/directive-object_arch-3.s new file mode 100644 index 0000000000..5dd26197ab --- /dev/null +++ b/test/MC/ARM/directive-object_arch-3.s @@ -0,0 +1,11 @@ +@ RUN: llvm-mc -triple armv7-eabi -filetype asm -o - %s | FileCheck %s + + .syntax unified + + .arch armv7 + .object_arch armv4 + +@ CHECK: .text +@ CHECK: .arch armv7 +@ CHECK: .object_arch armv4 + |