llvm-6502/test/MC/ARM/directive-arch-armv5t.s
Logan Chien 61f848360f [arm] Implement ARM .arch directive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197052 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-11 17:16:25 +00:00

31 lines
944 B
ArmAsm

@ Test the .arch directive for armv5t
@ This test case will check the default .ARM.attributes value for the
@ armv5t 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 armv5t
@ CHECK-ASM: .arch armv5t
@ 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: 26
@ CHECK-OBJ: Link: 0
@ CHECK-OBJ: Info: 0
@ CHECK-OBJ: AddressAlignment: 1
@ CHECK-OBJ: EntrySize: 0
@ CHECK-OBJ: SectionData (
@ CHECK-OBJ: 0000: 41190000 00616561 62690001 0F000000 |A....aeabi......|
@ CHECK-OBJ: 0010: 05355400 06030801 0901 |.5T.......|
@ CHECK-OBJ: )