1 ; RUN: llc %s -mtriple=armv7-linux-gnueabi -filetype=obj -o - | \ 2 ; RUN: llvm-readobj -s -t | 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 ; OBJ: Sections [ 19 ; OBJ: Section { 20 ; OBJ: Index: 4 21 ; OBJ-NEXT: Name: .bss 22 23 ; OBJ: Symbols [ 24 ; OBJ: Symbol { 25 ; OBJ: Name: array00 26 ; OBJ-NEXT: Value: 0x0 27 ; OBJ-NEXT: Size: 80 28 ; OBJ-NEXT: Binding: Local 29 ; OBJ-NEXT: Type: Object 30 ; OBJ-NEXT: Other: 0 31 ; OBJ-NEXT: Section: .bss 32 33 define i32 @main(i32 %argc) nounwind { 34 %1 = load i32* @sum, align 4 35 %2 = getelementptr [80 x i8]* @array00, i32 0, i32 %argc 36 %3 = load i8* %2 37 %4 = zext i8 %3 to i32 38 %5 = add i32 %1, %4 39 ret i32 %5 40 } 41