2016-03-02 04:25:43 +08:00
|
|
|
; RUN: llc -march=mipsel < %s | FileCheck %s
|
|
|
|
; RUN: llc -march=mips64el < %s | FileCheck %s
|
2013-05-22 01:13:47 +08:00
|
|
|
|
2016-03-02 04:25:43 +08:00
|
|
|
; CHECK-LABEL: test_blez:
|
|
|
|
; CHECK: blez ${{[0-9]+}}, $BB
|
2013-05-22 01:13:47 +08:00
|
|
|
|
|
|
|
define void @test_blez(i32 %a) {
|
|
|
|
entry:
|
|
|
|
%cmp = icmp sgt i32 %a, 0
|
|
|
|
br i1 %cmp, label %if.then, label %if.end
|
|
|
|
|
|
|
|
if.then:
|
|
|
|
tail call void @foo1()
|
|
|
|
br label %if.end
|
|
|
|
|
|
|
|
if.end:
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2016-03-02 04:25:43 +08:00
|
|
|
declare void @foo1()
|
2016-03-01 18:08:01 +08:00
|
|
|
|
2016-03-02 04:25:43 +08:00
|
|
|
; CHECK-LABEL: test_bgez:
|
|
|
|
; CHECK: bgez ${{[0-9]+}}, $BB
|
2016-03-01 18:08:01 +08:00
|
|
|
|
2016-03-02 04:25:43 +08:00
|
|
|
define void @test_bgez(i32 %a) {
|
2016-03-01 18:08:01 +08:00
|
|
|
entry:
|
2016-03-02 04:25:43 +08:00
|
|
|
%cmp = icmp slt i32 %a, 0
|
2016-03-01 18:08:01 +08:00
|
|
|
br i1 %cmp, label %if.then, label %if.end
|
|
|
|
|
|
|
|
if.then:
|
|
|
|
tail call void @foo1()
|
|
|
|
br label %if.end
|
|
|
|
|
|
|
|
if.end:
|
|
|
|
ret void
|
|
|
|
}
|