mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-29 23:12:55 +01:00
14399e6e4b
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. llvm-svn: 200451
23 lines
455 B
ArmAsm
23 lines
455 B
ArmAsm
@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \
|
|
@ RUN: | llvm-readobj -arm-attributes | FileCheck %s
|
|
|
|
.syntax unified
|
|
|
|
.object_arch armv4
|
|
.arch armv7
|
|
|
|
@ 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: }
|
|
|