source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/2010-12-15-elf-lcomm.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 1.0 KB
Line 
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   sum,%object  @ @sum
16
17
18; OBJ:      Symbols [
19; OBJ:        Symbol {
20; OBJ:          Name: array00
21; OBJ-NEXT:     Value: 0x0
22; OBJ-NEXT:     Size: 80
23; OBJ-NEXT:     Binding: Local
24; OBJ-NEXT:     Type: Object
25; OBJ-NEXT:     Other: 0
26; OBJ-NEXT:     Section: .bss
27
28define i32 @main(i32 %argc) nounwind {
29  %1 = load i32, i32* @sum, align 4
30  %2 = getelementptr [80 x i8], [80 x i8]* @array00, i32 0, i32 %argc
31  %3 = load i8, i8* %2
32  %4 = zext i8 %3 to i32
33  %5 = add i32 %1, %4
34  ret i32 %5
35}
Note: See TracBrowser for help on using the repository browser.