llvm-6502/test/MC/ARM/directive-object_arch.s
Saleem Abdulrasool 09f38a0ef1 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
2014-01-30 04:46:41 +00:00

23 lines
455 B
ArmAsm

@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \
@ RUN: | llvm-readobj -arm-attributes | FileCheck %s
.syntax unified
.arch armv7
.object_arch armv4
@ CHECK: FileAttributes {
@ CHECK: Attribute {
@ CHECK: Tag: 5
@ CHECK: TagName: CPU_name
@ CHECK: Value: 7
@ CHECK: }
@ CHECK: Attribute {
@ CHECK: Tag: 6
@ CHEKC: Value: 1
@ CHECK: TagName: CPU_arch
@ CHECK: Description: ARM v4
@ CHECK: }
@ CHECK: }