PR8921: LDM/POP do not support interworking prior to v5t.
[oota-llvm.git] / test / CodeGen / ARM / 2010-11-30-reloc-movt.ll
1 ; RUN: llc  %s -mtriple=armv7-linux-gnueabi -arm-use-movt -filetype=obj -o - | \
2 ; RUN:    elf-dump --dump-section-data | FileCheck  -check-prefix=OBJ %s
3
4 target triple = "armv7-none-linux-gnueabi"
5
6 @a = external global i8
7
8 define arm_aapcs_vfpcc i32 @barf() nounwind {
9 entry:
10   %0 = tail call arm_aapcs_vfpcc  i32 @foo(i8* @a) nounwind
11   ret i32 %0
12 ; OBJ:         '.text'
13 ; OBJ-NEXT:    'sh_type'
14 ; OBJ-NEXT:    'sh_flags'
15 ; OBJ-NEXT:    'sh_addr'
16 ; OBJ-NEXT:    'sh_offset'
17 ; OBJ-NEXT:    'sh_size'
18 ; OBJ-NEXT:    'sh_link'
19 ; OBJ-NEXT:    'sh_info'
20 ; OBJ-NEXT:    'sh_addralign'
21 ; OBJ-NEXT:    'sh_entsize'
22 ; OBJ-NEXT:    '_section_data', '00482de9 000000e3 000040e3 feffffeb 0088bde8'
23
24 ; OBJ:            Relocation 0x00000000
25 ; OBJ-NEXT:       'r_offset', 0x00000004
26 ; OBJ-NEXT:       'r_sym', 0x00000007
27 ; OBJ-NEXT:        'r_type', 0x0000002b
28
29 ; OBJ:          Relocation 0x00000001
30 ; OBJ-NEXT:       'r_offset', 0x00000008
31 ; OBJ-NEXT:       'r_sym'
32 ; OBJ-NEXT:        'r_type', 0x0000002c
33
34 ; OBJ:          # Relocation 0x00000002
35 ; OBJ-NEXT:       'r_offset', 0x0000000c
36 ; OBJ-NEXT:       'r_sym', 0x00000008
37 ; OBJ-NEXT:       'r_type', 0x0000001c
38
39 }
40
41 declare arm_aapcs_vfpcc i32 @foo(i8*)
42