35 lines · plain
1; RUN: llc -mtriple=mipsel-elf -relocation-model=pic -O0 -fast-isel-abort=3 -mcpu=mips32r2 \2; RUN: < %s | FileCheck %s3; RUN: llc -mtriple=mipsel-elf -relocation-model=pic -O0 -fast-isel-abort=3 -mcpu=mips32 \4; RUN: < %s | FileCheck %s5 6@b = global i32 1, align 47@i = global i32 0, align 48@.str = private unnamed_addr constant [5 x i8] c"%i \0A\00", align 19 10; Function Attrs: nounwind11define void @br() #0 {12entry:13 %0 = load i32, ptr @b, align 414 %tobool = icmp eq i32 %0, 015 br i1 %tobool, label %if.end, label %if.then16 17if.then: ; preds = %entry18 store i32 6754, ptr @i, align 419 br label %if.end20 21if.end: ; preds = %entry, %if.then22 ret void23; FIXME: This instruction is redundant.24; CHECK: xor $[[REG1:[0-9]+]], ${{[0-9]+}}, $zero25; CHECK: sltiu $[[REG2:[0-9]+]], $[[REG1]], 126; CHECK: bgtz $[[REG2]], $BB[[BL:[0-9]+_[0-9]+]]27; CHECK: nop28; CHECK: addiu ${{[0-9]+}}, $zero, 675429; CHECK: sw ${{[0-9]+}}, 0(${{[0-9]+}})30; CHECK: $BB[[BL]]:31 32}33 34attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "use-soft-float"="false" }35