Imported Upstream version 6.10.0.49

Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2020-01-16 16:38:04 +00:00
parent d94e79959b
commit 468663ddbb
48518 changed files with 2789335 additions and 61176 deletions

View File

@ -0,0 +1,20 @@
; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi -verify-machineinstrs
; Just shouldn't crash, PR28348
%C = type { i8* }
define void @repro(%C* %this, i32 %a) {
%a_align1 = and i32 %a, -4096
%a_and = and i32 %a, 4095
%a_align2 = or i32 %a_and, 4096
call void @use(i32 %a_align1)
%C_field = getelementptr inbounds %C, %C* %this, i32 0, i32 0
%addptr = getelementptr inbounds i8, i8* null, i32 %a_align2
store i8* %addptr, i8** %C_field, align 4
ret void
}
declare void @use(i32)