1 ; RUN: llc -O0 -mtriple=mips-img-linux-gnu -mcpu=mips32r6 -relocation-model=pic < %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-PIC
2 ; RUN: llc -O0 -mtriple=mips-img-linux-gnu -mcpu=mips32r6 -relocation-model=static < %s -o - | FileCheck %s --check-prefixes=CHECK-STATIC
7 define i32 @main(i32 signext %argc, ptr %argv) {
30 %retval = alloca i32, align 4
31 %argc.addr = alloca i32, align 4
32 %argv.addr = alloca ptr, align 4
33 store i32 0, ptr %retval, align 4
34 store i32 %argc, ptr %argc.addr, align 4
35 store ptr %argv, ptr %argv.addr, align 4
36 %0 = load i32, ptr %argc.addr, align 4
37 %cmp = icmp sgt i32 %0, 1
38 br i1 %cmp, label %if.then, label %if.end4
41 call void asm sideeffect ".space 10", "~{$1}"()
42 %1 = load i32, ptr %argc.addr, align 4
43 %cmp1 = icmp sgt i32 %1, 3
44 br i1 %cmp1, label %if.then2, label %if.end
47 call void asm sideeffect ".space 10", "~{$1}"()
48 %call = call i32 @boo()
49 store i32 %call, ptr %retval, align 4
53 call void asm sideeffect ".space 4194228", "~{$1}"()
54 %call3 = call i32 @foo()
55 store i32 %call3, ptr %retval, align 4
59 store i32 0, ptr %retval, align 4
63 %2 = load i32, ptr %retval, align 4