1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc -mtriple=mipsel -relocation-model=pic -O0 -mcpu=mips32 < %s | FileCheck %s
3
4define void @test(i32 %x, i1* %p) nounwind {
5; CHECK-LABEL: test:
6; CHECK:       # %bb.0:
7; CHECK-NEXT:    move $1, $4
8; CHECK-NEXT:    move $4, $1
9; CHECK-NEXT:    andi $1, $1, 1
10; CHECK-NEXT:    sb $1, 0($5)
11; CHECK-NEXT:    andi $1, $4, 1
12; CHECK-NEXT:    bgtz $1, $BB0_1
13; CHECK-NEXT:    nop
14; CHECK-NEXT:  # %bb.1: # %foo
15; CHECK-NEXT:    jr $ra
16; CHECK-NEXT:    nop
17  %y = and i32 %x, 1
18  %c = icmp eq i32 %y, 1
19  store i1 %c, i1* %p
20  br i1 %c, label %foo, label %foo
21
22foo:
23  ret void
24}
25