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