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]', 1)
16 ; 32: ('e_indent[EI_DATA]', 1)
17 ; 32: ('e_indent[EI_VERSION]', 1)
20 ; 32: (('sh_name', 0) # ''
35 ; 32-NEXT: ('st_type', 2)
39 ; 32-NEXT: ('st_type', 0)
43 ; 32: ('_relocations', [
45 ; 32: (('r_offset', 6)
49 ; 32: (('r_offset', 11)
53 ; 32: (('r_offset', 18)
57 ; 32: (('r_offset', 23)
62 ; 64: ('e_indent[EI_CLASS]', 2)
63 ; 64: ('e_indent[EI_DATA]', 1)
64 ; 64: ('e_indent[EI_VERSION]', 1)
67 ; 64: (('sh_name', 0) # ''
81 ; 64-NEXT: ('st_bind', 1)
82 ; 64-NEXT: ('st_type', 2)
85 ; 64-NEXT: ('st_bind', 1)
86 ; 64-NEXT: ('st_type', 0)
90 ; 64: ('_relocations', [
92 ; 64: (('r_offset', 5)
97 ; 64: (('r_offset', 10)
99 ; 64: ('r_addend', -4)
102 ; 64: (('r_offset', 15)
104 ; 64: ('r_addend', 6)
107 ; 64: (('r_offset', 20)
109 ; 64: ('r_addend', -4)