Imported Upstream version 5.18.0.225

Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-12-21 19:01:49 +00:00
parent 32d52ae4ca
commit f32dbaf0b2
28477 changed files with 3866961 additions and 38 deletions

18
external/llvm/test/CodeGen/Mips/slt.ll vendored Normal file
View File

@ -0,0 +1,18 @@
; RUN: llc -march=mips -mcpu=mips32r3 -mattr=micromips -relocation-model=pic < %s | FileCheck %s
define i32 @slt(i32 signext %a) nounwind readnone {
%1 = icmp slt i32 %a, 7
; CHECK-LABEL: slt:
; CHECK: slt ${{[0-9]+}}, ${{[0-9]+}}, $4
%2 = select i1 %1, i32 3, i32 4
ret i32 %2
}
define i32 @sgt(i32 signext %a) {
entry:
; CHECK-LABEL: sgt:
%cmp = icmp sgt i32 %a, 32767
; CHECK: slt ${{[0-9]+}}, ${{[0-9]+}}, $4
%cond = select i1 %cmp, i32 7, i32 5
ret i32 %cond
}