mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
31 lines
942 B
ArmAsm
31 lines
942 B
ArmAsm
|
@ Test the .arch directive for armv2a
|
||
|
|
||
|
@ This test case will check the default .ARM.attributes value for the
|
||
|
@ armv2a architecture.
|
||
|
|
||
|
@ RUN: llvm-mc < %s -arch=arm -filetype=asm \
|
||
|
@ RUN: | FileCheck %s --check-prefix=CHECK-ASM
|
||
|
@ RUN: llvm-mc < %s -arch=arm -filetype=obj \
|
||
|
@ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
|
||
|
|
||
|
.syntax unified
|
||
|
.arch armv2a
|
||
|
|
||
|
@ CHECK-ASM: .arch armv2a
|
||
|
|
||
|
@ CHECK-OBJ: Name: .ARM.attributes
|
||
|
@ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
|
||
|
@ CHECK-OBJ: Flags [ (0x0)
|
||
|
@ CHECK-OBJ: ]
|
||
|
@ CHECK-OBJ: Address: 0x0
|
||
|
@ CHECK-OBJ: Offset: 0x34
|
||
|
@ CHECK-OBJ: Size: 24
|
||
|
@ CHECK-OBJ: Link: 0
|
||
|
@ CHECK-OBJ: Info: 0
|
||
|
@ CHECK-OBJ: AddressAlignment: 1
|
||
|
@ CHECK-OBJ: EntrySize: 0
|
||
|
@ CHECK-OBJ: SectionData (
|
||
|
@ CHECK-OBJ: 0000: 41170000 00616561 62690001 0D000000 |A....aeabi......|
|
||
|
@ CHECK-OBJ: 0010: 05324100 06010801 |.2A.....|
|
||
|
@ CHECK-OBJ: )
|