1 ; RUN: llc -march=mipsel -relocation-model=pic -O0 -fast-isel-abort=3 -mcpu=mips32r2 \
2 ; RUN: < %s | FileCheck %s
3 ; RUN: llc -march=mipsel -relocation-model=pic -O0 -fast-isel-abort=3 -mcpu=mips32 \
4 ; RUN: < %s | FileCheck %s
6 @b = global i32 1, align 4
7 @i = global i32 0, align 4
8 @.str = private unnamed_addr constant [5 x i8] c"%i \0A\00", align 1
10 ; Function Attrs: nounwind
11 define void @br() #0 {
13 %0 = load i32, ptr @b, align 4
14 %tobool = icmp eq i32 %0, 0
15 br i1 %tobool, label %if.end, label %if.then
17 if.then: ; preds = %entry
18 store i32 6754, ptr @i, align 4
21 if.end: ; preds = %entry, %if.then
23 ; FIXME: This instruction is redundant.
24 ; CHECK: xor $[[REG1:[0-9]+]], ${{[0-9]+}}, $zero
25 ; CHECK: sltiu $[[REG2:[0-9]+]], $[[REG1]], 1
26 ; CHECK: bgtz $[[REG2]], $BB[[BL:[0-9]+_[0-9]+]]
28 ; CHECK: addiu ${{[0-9]+}}, $zero, 6754
29 ; CHECK: sw ${{[0-9]+}}, 0(${{[0-9]+}})
34 attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }