mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
3ae734a60c
This was done with the following sed invocation to catch label lines demarking function boundaries: sed -i '' "s/^;\( *\)\([A-Z0-9_]*\):\( *\)test\([A-Za-z0-9_-]*\):\( *\)$/;\1\2-LABEL:\3test\4:\5/g" test/CodeGen/*/*.ll which was written conservatively to avoid false positives rather than false negatives. I scanned through all the changes and everything looks correct. llvm-svn: 186258
37 lines
621 B
LLVM
37 lines
621 B
LLVM
; RUN: llc -march=mipsel < %s | FileCheck %s
|
|
; RUN: llc -march=mips64el -mcpu=mips64 < %s | FileCheck %s
|
|
|
|
; CHECK-LABEL: 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-LABEL: 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
|
|
}
|