blob: 487018c22f26cdef0e8901af5e170a80af3008c2 [file] [log] [blame]
Daniel Sanders8008de52015-10-15 14:34:23 +00001; RUN: llc -march=mipsel -mattr=mips16 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=16
Reed Kotler67439242012-10-17 22:29:54 +00002
3@i = global i32 5, align 4
4@j = global i32 10, align 4
5@k = global i32 5, align 4
6@result = global i32 0, align 4
7
8define void @test() nounwind {
9entry:
David Blaikiea79ac142015-02-27 21:17:42 +000010 %0 = load i32, i32* @j, align 4
11 %1 = load i32, i32* @i, align 4
Reed Kotler67439242012-10-17 22:29:54 +000012 %cmp = icmp slt i32 %0, %1
13 br i1 %cmp, label %if.end, label %if.then
14
15; 16: slt ${{[0-9]+}}, ${{[0-9]+}}
Reed Kotler67439242012-10-17 22:29:54 +000016; 16: btnez $[[LABEL:[0-9A-Ba-b_]+]]
17; 16: $[[LABEL]]:
18
19if.then: ; preds = %entry
20 store i32 1, i32* @result, align 4
21 br label %if.end
22
23if.end: ; preds = %entry, %if.then
24 ret void
25}
26
27