blob: 52765af966fda45adbe64640c40eb1cf06425b85 [file] [log] [blame]
Akira Hatanaka68710312013-05-21 17:13:47 +00001; RUN: llc -march=mipsel < %s | FileCheck %s
2; RUN: llc -march=mips64el -mcpu=mips64 < %s | FileCheck %s
3
4; CHECK: test_blez:
5; CHECK: blez ${{[0-9]+}}, $BB
6
7define void @test_blez(i32 %a) {
8entry:
9 %cmp = icmp sgt i32 %a, 0
10 br i1 %cmp, label %if.then, label %if.end
11
12if.then:
13 tail call void @foo1()
14 br label %if.end
15
16if.end:
17 ret void
18}
19
20declare void @foo1()
21
22; CHECK: test_bgez:
23; CHECK: bgez ${{[0-9]+}}, $BB
24
25define void @test_bgez(i32 %a) {
26entry:
27 %cmp = icmp slt i32 %a, 0
28 br i1 %cmp, label %if.then, label %if.end
29
30if.then:
31 tail call void @foo1()
32 br label %if.end
33
34if.end:
35 ret void
36}