[arm] Implement ARM .arch directive.
[oota-llvm.git] / test / MC / ARM / directive-arch-armv5.s
1 @ Test the .arch directive for armv5
2
3 @ This test case will check the default .ARM.attributes value for the
4 @ armv5 architecture.
5
6 @ RUN: llvm-mc < %s -arch=arm -filetype=asm \
7 @ RUN:   | FileCheck %s --check-prefix=CHECK-ASM
8 @ RUN: llvm-mc < %s -arch=arm -filetype=obj \
9 @ RUN:   | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
10
11         .syntax unified
12         .arch   armv5
13
14 @ CHECK-ASM:    .arch   armv5
15
16 @ CHECK-OBJ:    Name: .ARM.attributes
17 @ CHECK-OBJ:    Type: SHT_ARM_ATTRIBUTES (0x70000003)
18 @ CHECK-OBJ:    Flags [ (0x0)
19 @ CHECK-OBJ:    ]
20 @ CHECK-OBJ:    Address: 0x0
21 @ CHECK-OBJ:    Offset: 0x34
22 @ CHECK-OBJ:    Size: 23
23 @ CHECK-OBJ:    Link: 0
24 @ CHECK-OBJ:    Info: 0
25 @ CHECK-OBJ:    AddressAlignment: 1
26 @ CHECK-OBJ:    EntrySize: 0
27 @ CHECK-OBJ:    SectionData (
28 @ CHECK-OBJ:      0000: 41160000 00616561 62690001 0C000000  |A....aeabi......|
29 @ CHECK-OBJ:      0010: 05350006 030801                      |.5.....|
30 @ CHECK-OBJ:    )