aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/2010-11-30-reloc-movt.ll
blob: 930cd8d415633d8a5ddd6f102cce81ae3f156015 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
; RUN: llc  %s -mtriple=armv7-linux-gnueabi -filetype=obj -o - | \
; RUN:    elf-dump --dump-section-data | FileCheck  -check-prefix=OBJ %s

target triple = "armv7-none-linux-gnueabi"

@a = external global i8

define arm_aapcs_vfpcc i32 @barf() nounwind {
entry:
  %0 = tail call arm_aapcs_vfpcc  i32 @foo(i8* @a) nounwind
  ret i32 %0
; OBJ:         '.text'
; OBJ-NEXT:    'sh_type'
; OBJ-NEXT:    'sh_flags'
; OBJ-NEXT:    'sh_addr'
; OBJ-NEXT:    'sh_offset'
; OBJ-NEXT:    'sh_size'
; OBJ-NEXT:    'sh_link'
; OBJ-NEXT:    'sh_info'
; OBJ-NEXT:    'sh_addralign'
; OBJ-NEXT:    'sh_entsize'
; OBJ-NEXT:    '_section_data', '00482de9 000000e3 000040e3 feffffeb 0088bde8'

; OBJ:            Relocation 0x00000000
; OBJ-NEXT:       'r_offset', 0x00000004
; OBJ-NEXT:       'r_sym', 0x00000007
; OBJ-NEXT:        'r_type', 0x0000002b

; OBJ:          Relocation 0x00000001
; OBJ-NEXT:       'r_offset', 0x00000008
; OBJ-NEXT:       'r_sym'
; OBJ-NEXT:        'r_type', 0x0000002c

; OBJ:          # Relocation 0x00000002
; OBJ-NEXT:       'r_offset', 0x0000000c
; OBJ-NEXT:       'r_sym', 0x00000008
; OBJ-NEXT:       'r_type', 0x0000001c

}

declare arm_aapcs_vfpcc i32 @foo(i8*)