llvm-for-llvmta/test/MC/ARM/directive-object_arch-2.s

23 lines
457 B
ArmAsm
Raw Normal View History

2022-04-25 10:02:23 +02:00
@ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \
@ RUN: | llvm-readobj --arch-specific - | 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
@ CHECK: Value: 1
@ CHECK: TagName: CPU_arch
@ CHECK: Description: ARM v4
@ CHECK: }
@ CHECK: }