1 ; RUN: llc %s -mtriple=armv7-linux-gnueabi -filetype=obj -o - | \ 2 ; RUN: elf-dump --dump-section-data | FileCheck -check-prefix=OBJ %s 3 ; RUN: llc %s -mtriple=armv7-linux-gnueabi -o - | \ 4 ; RUN: FileCheck -check-prefix=ASM %s 5 6 7 @dummy = internal global i32 666 8 @array00 = internal global [80 x i8] zeroinitializer, align 1 9 @sum = internal global i32 55 10 @STRIDE = internal global i32 8 11 12 ; ASM: .type array00,%object @ @array00 13 ; ASM-NEXT: .local array00 14 ; ASM-NEXT: .comm array00,80,1 15 ; ASM-NEXT: .type _MergedGlobals,%object @ @_MergedGlobals 16 17 18 19 ; OBJ: Section 4 20 ; OBJ-NEXT: '.bss' 21 22 ; OBJ: 'array00' 23 ; OBJ-NEXT: 'st_value', 0x00000000 24 ; OBJ-NEXT: 'st_size', 0x00000050 25 ; OBJ-NEXT: 'st_bind', 0x0 26 ; OBJ-NEXT: 'st_type', 0x1 27 ; OBJ-NEXT: 'st_other', 0x00 28 ; OBJ-NEXT: 'st_shndx', 0x0004 29 30 define i32 @main(i32 %argc) nounwind { 31 %1 = load i32* @sum, align 4 32 %2 = getelementptr [80 x i8]* @array00, i32 0, i32 %argc 33 %3 = load i8* %2 34 %4 = zext i8 %3 to i32 35 %5 = add i32 %1, %4 36 ret i32 %5 37 } 38