blob: 59edae82e5adc9087599fcc7796db701cd899b22 [file] [log] [blame]
Reed Kotler67439242012-10-17 22:29:54 +00001; RUN: llc -march=mipsel -mcpu=mips16 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=16
2
3@i = global i32 5, align 4
4@result = global i32 0, align 4
5
6define void @test() nounwind {
7entry:
David Blaikiea79ac142015-02-27 21:17:42 +00008 %0 = load i32, i32* @i, align 4
Reed Kotler67439242012-10-17 22:29:54 +00009 %cmp = icmp eq i32 %0, 10
10 br i1 %cmp, label %if.end, label %if.then
11; 16: cmpi ${{[0-9]+}}, {{[0-9]+}}
12; 16: bteqz $[[LABEL:[0-9A-Ba-b_]+]]
13; 16: $[[LABEL]]:
14if.then: ; preds = %entry
15 store i32 1, i32* @result, align 4
16 br label %if.end
17
18if.end: ; preds = %entry, %if.then
19 ret void
20}
21
22