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, i8** %argv) {
30 %retval = alloca i32, align 4
31 %argc.addr = alloca i32, align 4
32 %argv.addr = alloca i8**, align 4
33 store i32 0, i32* %retval, align 4
34 store i32 %argc, i32* %argc.addr, align 4
35 store i8** %argv, i8*** %argv.addr, align 4
36 %0 = load i32, i32* %argc.addr, align 4
37 %cmp = icmp sgt i32 %0, 1
38 br i1 %cmp, label %if.then, label %if.end4
41 %1 = load i32, i32* %argc.addr, align 4
42 %cmp1 = icmp sgt i32 %1, 3
43 br i1 %cmp1, label %if.then2, label %if.end
46 %call = call i32 bitcast (i32 (...)* @boo to i32 ()*)()
47 store i32 %call, i32* %retval, align 4
51 call void asm sideeffect ".space 4194228", "~{$1}"()
52 %call3 = call i32 bitcast (i32 (...)* @foo to i32 ()*)()
53 store i32 %call3, i32* %retval, align 4
57 store i32 0, i32* %retval, align 4
61 %2 = load i32, i32* %retval, align 4