1; RUN: llc -O0 < %s -march=avr | FileCheck %s 2 3define i32 @std_ldd_overflow() { 4 %src = alloca [4 x i8] 5 %dst = alloca [4 x i8] 6 %buf = alloca [28 x i16] 7 %1 = bitcast [4 x i8]* %src to i32* 8 store i32 0, i32 *%1 9 %2 = bitcast [4 x i8]* %dst to i8* 10 %3 = bitcast [4 x i8]* %src to i8* 11 call void @llvm.memcpy.p0i8.p0i8.i16(i8* %2, i8* %3, i16 4, i1 false) 12; CHECK-NOT: std {{[XYZ]}}+64, {{r[0-9]+}} 13; CHECK-NOT: ldd {{r[0-9]+}}, {{[XYZ]}}+64 14 15 ret i32 0 16} 17 18declare void @llvm.memcpy.p0i8.p0i8.i16(i8* nocapture writeonly, i8* nocapture readonly, i16, i1) 19