mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
742e6aefa1
Summary: This is consistent with the integrated assembler. All mips64 codegen tests previously passed -mcpu. Removed -mcpu from blez_bgez.ll and const-mult.ll to cover the default case. Ideally, the two implementations of selectMipsCPU() will be merged but it's proven difficult to find a home for the function that doesn't cause link errors. For now, we'll hoist the common functionality into a function and mark it with FIXME's. Reviewers: jacksprat, matheusalmeida Reviewed By: matheusalmeida Differential Revision: http://llvm-reviews.chandlerc.com/D2830 llvm-svn: 201782
37 lines
608 B
LLVM
37 lines
608 B
LLVM
; RUN: llc -march=mipsel < %s | FileCheck %s
|
|
; RUN: llc -march=mips64el < %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
|
|
}
|