1; RUN: llc < %s -mtriple armv4t-unknown-linux-gnueabi -mattr=+strict-align 2 3; Avoid crash from forwarding indexed-loads back to store. 4%struct.anon = type { ptr, %struct.mb } 5%struct.ma = type { i8 } 6%struct.mb = type { i8, i8 } 7%struct.anon.0 = type { %struct.anon.1 } 8%struct.anon.1 = type { %struct.ds } 9%struct.ds = type <{ i8, %union.ie }> 10%union.ie = type { %struct.ib } 11%struct.ib = type { i8, i8, i16 } 12 13@a = common dso_local local_unnamed_addr global ptr null, align 4 14@b = common dso_local local_unnamed_addr global %struct.anon.0 zeroinitializer, align 1 15 16; Function Attrs: norecurse nounwind 17define dso_local void @func() local_unnamed_addr { 18entry: 19 %0 = load ptr, ptr @a, align 4 20 %1 = load ptr, ptr %0, align 4 21 %c.sroa.0.0.copyload = load i8, ptr %1, align 1 22 %cb = getelementptr inbounds %struct.anon, ptr %0, i32 0, i32 1 23 %band = getelementptr inbounds %struct.anon, ptr %0, i32 0, i32 1, i32 1 24 store i8 %c.sroa.0.0.copyload, ptr %band, align 4 25 store i8 6, ptr getelementptr inbounds (%struct.anon.0, ptr @b, i32 0, i32 0, i32 0, i32 1, i32 0, i32 0), align 1 26 store i8 2, ptr getelementptr inbounds (%struct.anon.0, ptr @b, i32 0, i32 0, i32 0, i32 1, i32 0, i32 1), align 1 27 %2 = load i32, ptr getelementptr inbounds (%struct.anon.0, ptr @b, i32 0, i32 0, i32 0, i32 1, i32 0, i32 0), align 1 28 store i32 %2, ptr %cb, align 1 29 ret void 30} 31