[arm] Pass -triple to llvm-mc for ARM ELF test cases.
[oota-llvm.git] / test / MC / ARM / directive-arch-iwmmxt2.s
1 @ Test the .arch directive for iwmmxt2
2
3 @ This test case will check the default .ARM.attributes value for the
4 @ iwmmxt2 architecture.
5
6 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
7 @ RUN:   | FileCheck %s --check-prefix=CHECK-ASM
8 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
9 @ RUN:   | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
10
11         .syntax unified
12         .arch   iwmmxt2
13
14 @ CHECK-ASM:    .arch   iwmmxt2
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: 33
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: 41200000 00616561 62690001 16000000  |A ...aeabi......|
29 @ CHECK-OBJ:      0010: 0549574D 4D585432 00060408 0109010B  |.IWMMXT2........|
30 @ CHECK-OBJ:      0020: 02                                   |.|
31 @ CHECK-OBJ:    )