2013-05-21 17:13:47 +00:00
|
|
|
; RUN: llc -march=mipsel < %s | FileCheck %s
|
2014-02-20 13:13:33 +00:00
|
|
|
; RUN: llc -march=mips64el < %s | FileCheck %s
|
2013-05-21 17:13:47 +00:00
|
|
|
|
2013-07-13 20:38:47 +00:00
|
|
|
; CHECK-LABEL: test_blez:
|
2015-05-20 14:18:59 +00:00
|
|
|
; CHECK: blez ${{[0-9]+}}, $BB
|
2013-05-21 17:13:47 +00: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
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @foo1()
|
|
|
|
|
2013-07-13 20:38:47 +00:00
|
|
|
; CHECK-LABEL: test_bgez:
|
2015-05-20 14:18:59 +00:00
|
|
|
; CHECK: bgez ${{[0-9]+}}, $BB
|
2013-05-21 17:13:47 +00:00
|
|
|
|
|
|
|
define void @test_bgez(i32 %a) {
|
|
|
|
entry:
|
|
|
|
%cmp = icmp slt 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
|
|
|
|
}
|