Add support for emitting ARM file attributes.
[oota-llvm.git] / test / CodeGen / ARM / 2010-10-19-mc-elf-objheader.ll
1 ; RUN: llc  %s -mtriple=arm-linux-gnueabi -filetype=obj -o - | \
2 ; RUN:    elf-dump --dump-section-data | FileCheck %s
3 ; This tests that the extpected ARM attributes are emitted.
4 ;
5 ; CHECK:        .ARM.attributes
6 ; CHECK-NEXT:         0x70000003
7 ; CHECK-NEXT:         0x00000000
8 ; CHECK-NEXT:         0x00000000
9 ; CHECK-NEXT:         0x0000003c
10 ; CHECK-NEXT:         0x00000022
11 ; CHECK-NEXT:         0x00000000
12 ; CHECK-NEXT:         0x00000000
13 ; CHECK-NEXT:         0x00000001
14 ; CHECK-NEXT:         0x00000000
15 ; CHECK-NEXT:         '41210000 00616561 62690001 17000000 06020801 09011401 15011703 18011901 2c01'
16
17 define i32 @f(i64 %z) {
18        ret i32 0
19 }