blob: 332cd8cd105c0bee15cfe4d9c838893a75531ee4 [file] [log] [blame]
Jozef Kolek3b8ddb62014-11-21 22:04:35 +00001; RUN: llc %s -march=mipsel -mattr=micromips -filetype=asm -O3 \
2; RUN: -disable-mips-delay-filler -relocation-model=pic -o - | FileCheck %s
3
4define void @main() nounwind uwtable {
5entry:
6 %x = alloca i32, align 4
David Blaikiea79ac142015-02-27 21:17:42 +00007 %0 = load i32, i32* %x, align 4
Jozef Kolek3b8ddb62014-11-21 22:04:35 +00008 %cmp = icmp eq i32 %0, 0
Kyle Buttb15c0662017-01-31 23:48:32 +00009 br i1 %cmp, label %if.then, label %if.end, !prof !1
Jozef Kolek3b8ddb62014-11-21 22:04:35 +000010
11if.then:
12 store i32 10, i32* %x, align 4
13 br label %if.end
14
15if.end:
16 ret void
17}
18
19; CHECK: bnezc
Kyle Buttb15c0662017-01-31 23:48:32 +000020!1 = !{!"branch_weights", i32 2, i32 1}