• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -march=mipsel < %s | FileCheck %s
2; RUN: llc -march=mips64el < %s | FileCheck %s
3
4; CHECK-LABEL: 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-LABEL: 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}
37