1 ; RUN: llc -filetype=obj -mtriple i686-pc-linux-gnu %s -o - | elf-dump | FileCheck -check-prefix=32 %s
2 ; RUN: llc -filetype=obj -mtriple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck -check-prefix=64 %s
4 @.str1 = private constant [6 x i8] c"Hello\00"
5 @.str2 = private constant [7 x i8] c"World!\00"
7 define i32 @main() nounwind {
8 %1 = call i32 @puts(i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0))
9 %2 = call i32 @puts(i8* getelementptr inbounds ([7 x i8]* @.str2, i32 0, i32 0))
13 declare i32 @puts(i8* nocapture) nounwind
15 ; 32: ('e_indent[EI_CLASS]', 0x00000001)
16 ; 32: ('e_indent[EI_DATA]', 0x00000001)
17 ; 32: ('e_indent[EI_VERSION]', 0x00000001)
20 ; 32: (('sh_name', 0x00000000) # ''
24 ; 32: ('st_bind', 0x00000000)
25 ; 32: ('st_type', 0x00000003)
27 ; 32: ('st_bind', 0x00000000)
28 ; 32: ('st_type', 0x00000003)
30 ; 32: ('st_bind', 0x00000000)
31 ; 32: ('st_type', 0x00000003)
34 ; 32: ('st_bind', 0x00000001)
35 ; 32-NEXT: ('st_type', 0x00000002)
38 ; 32: ('st_bind', 0x00000001)
39 ; 32-NEXT: ('st_type', 0x00000000)
43 ; 32: ('_relocations', [
44 ; 32: # Relocation 0x00000000
45 ; 32: (('r_offset', 0x00000006)
46 ; 32: ('r_type', 0x00000001)
48 ; 32: # Relocation 0x00000001
49 ; 32: (('r_offset', 0x0000000b)
50 ; 32: ('r_type', 0x00000002)
52 ; 32: # Relocation 0x00000002
53 ; 32: (('r_offset', 0x00000012)
54 ; 32: ('r_type', 0x00000001)
56 ; 32: # Relocation 0x00000003
57 ; 32: (('r_offset', 0x00000017)
58 ; 32: ('r_type', 0x00000002)
62 ; 64: ('e_indent[EI_CLASS]', 0x00000002)
63 ; 64: ('e_indent[EI_DATA]', 0x00000001)
64 ; 64: ('e_indent[EI_VERSION]', 0x00000001)
67 ; 64: (('sh_name', 0x00000000) # ''
71 ; 64: ('st_bind', 0x00000000)
72 ; 64: ('st_type', 0x00000003)
74 ; 64: ('st_bind', 0x00000000)
75 ; 64: ('st_type', 0x00000003)
77 ; 64: ('st_bind', 0x00000000)
78 ; 64: ('st_type', 0x00000003)
81 ; 64-NEXT: ('st_bind', 0x00000001)
82 ; 64-NEXT: ('st_type', 0x00000002)
85 ; 64-NEXT: ('st_bind', 0x00000001)
86 ; 64-NEXT: ('st_type', 0x00000000)
90 ; 64: ('_relocations', [
91 ; 64: # Relocation 0x00000000
92 ; 64: (('r_offset', 0x00000005)
93 ; 64: ('r_type', 0x0000000a)
94 ; 64: ('r_addend', 0x00000000)
96 ; 64: # Relocation 0x00000001
97 ; 64: (('r_offset', 0x0000000a)
98 ; 64: ('r_type', 0x00000002)
99 ; 64: ('r_addend', 0xfffffffc)
101 ; 64: # Relocation 0x00000002
102 ; 64: (('r_offset', 0x0000000f)
103 ; 64: ('r_type', 0x0000000a)
104 ; 64: ('r_addend', 0x00000006)
106 ; 64: # Relocation 0x00000003
107 ; 64: (('r_offset', 0x00000014)
108 ; 64: ('r_type', 0x00000002)
109 ; 64: ('r_addend', 0xfffffffc)