Imported Upstream version 5.18.0.234

Former-commit-id: 8071ec1a8c5eaa9be24b41745add19297608001f
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-01-08 08:22:36 +00:00
parent f32dbaf0b2
commit 212f6bafcb
28494 changed files with 359 additions and 3867025 deletions

View File

@@ -1,17 +0,0 @@
; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips -verify-machineinstrs < %s | FileCheck %s
define i32 @f1() {
entry:
; CHECK-LABEL: f1:
; CHECK: addiusp
; CHECK: addiur1sp
; CHECK: addiusp
%a = alloca [10 x i32], align 4
%index = getelementptr inbounds [10 x i32], [10 x i32]* %a, i32 0, i32 0
call void @init(i32* %index)
%0 = load i32, i32* %index, align 4
ret i32 %0
}
declare void @init(i32*)

View File

@@ -1,40 +0,0 @@
; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips -verify-machineinstrs < %s | FileCheck %s
define void @f1(i8* %p) {
entry:
; CHECK-LABEL: f1:
; CHECK: lbu16
; CHECK: sb16
%0 = load i8, i8* %p, align 4
%a = zext i8 %0 to i32
%and = and i32 %a, 1
%cmp = icmp eq i32 %and, 0
br i1 %cmp, label %if.then, label %if.end
if.then:
store i8 0, i8* %p, align 1
br label %if.end
if.end:
ret void
}
define void @f2(i16* %p) {
entry:
; CHECK-LABEL: f2:
; CHECK: lhu16
; CHECK: sh16
%0 = load i16, i16* %p, align 2
%a = zext i16 %0 to i32
%and = and i32 %a, 2
%cmp = icmp eq i32 %and, 0
br i1 %cmp, label %if.then, label %if.end
if.then:
store i16 0, i16* %p, align 2
br label %if.end
if.end:
ret void
}

View File

@@ -1,11 +0,0 @@
; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips -asm-show-inst -verify-machineinstrs < %s | FileCheck %s
; Function Attrs: nounwind
define i32 @function1(i32 (i32)* %f) {
entry:
; CHECK-LABEL: function1:
; CHECK: SWSP_MM
; CHECK: LWSP_MM
%call = call i32 %f(i32 0)
ret i32 0
}

View File

@@ -1,14 +0,0 @@
; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips -verify-machineinstrs < %s | FileCheck %s
; Function Attrs: nounwind readnone
define i1 @fun(i32 %a, i32 %b) {
entry:
; CHECK-LABEL: fun:
; CHECK: xor16
%reg1 = or i32 %a, %b
%reg2 = xor i32 %reg1, -1
%bool1 = icmp ne i32 %a, -1
%bool1.ext = zext i1 %bool1 to i32
%bool2 = icmp eq i32 %bool1.ext, %reg2
ret i1 %bool2
}