mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
37 lines
609 B
LLVM
37 lines
609 B
LLVM
|
; RUN: llc -march=mipsel < %s | FileCheck %s
|
||
|
; RUN: llc -march=mips64el -mcpu=mips64 < %s | FileCheck %s
|
||
|
|
||
|
; CHECK: test_blez:
|
||
|
; CHECK: blez ${{[0-9]+}}, $BB
|
||
|
|
||
|
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()
|
||
|
|
||
|
; CHECK: test_bgez:
|
||
|
; CHECK: bgez ${{[0-9]+}}, $BB
|
||
|
|
||
|
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
|
||
|
}
|