1 ; RUN: llc -march=mipsel -force-mips-long-branch -disable-mips-delay-filler < %s | FileCheck %s -check-prefix=O32
2 ; RUN: llc -march=mips64el -mcpu=mips4 -mattr=n64 -force-mips-long-branch -disable-mips-delay-filler < %s | FileCheck %s -check-prefix=N64
3 ; RUN: llc -march=mips64el -mcpu=mips64 -mattr=n64 -force-mips-long-branch -disable-mips-delay-filler < %s | FileCheck %s -check-prefix=N64
5 @g0 = external global i32
7 define void @foo1(i32 %s) nounwind {
10 ; O32: addiu $sp, $sp, -8
13 ; O32: addiu $1, $1, {{[0-9]+}}
15 ; N64: daddiu $sp, $sp, -16
17 ; N64: daddiu $1, $1, 0
18 ; N64: dsll $1, $1, 16
19 ; N64: daddiu $1, $1, 0
21 ; N64: dsll $1, $1, 16
22 ; N64: daddiu $1, $1, {{[0-9]+}}
24 %tobool = icmp eq i32 %s, 0
25 br i1 %tobool, label %if.end, label %if.then
27 if.then: ; preds = %entry
28 %0 = load i32* @g0, align 4
29 %add = add nsw i32 %0, 12
30 store i32 %add, i32* @g0, align 4
33 if.end: ; preds = %entry, %if.then