1; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi -verify-machineinstrs 2; Just shouldn't crash, PR28348 3 4%C = type { i8* } 5 6define void @repro(%C* %this, i32 %a) { 7 %a_align1 = and i32 %a, -4096 8 %a_and = and i32 %a, 4095 9 %a_align2 = or i32 %a_and, 4096 10 11 call void @use(i32 %a_align1) 12 13 %C_field = getelementptr inbounds %C, %C* %this, i32 0, i32 0 14 %addptr = getelementptr inbounds i8, i8* null, i32 %a_align2 15 store i8* %addptr, i8** %C_field, align 4 16 17 ret void 18} 19 20declare void @use(i32) 21