1 ; RUN: opt < %s -passes=instcombine | llvm-dis
6 declare void @llvm.memmove.p0.p0.i32(ptr, ptr, i32, i1)
8 declare void @llvm.memcpy.p0.p0.i32(ptr, ptr, i32, i1)
10 declare void @llvm.memset.p0.i32(ptr, i8, i32, i1)
12 define void @zero_byte_test() {
13 ; These process zero bytes, so they are a noop.
14 call void @llvm.memmove.p0.p0.i32(ptr @X, ptr @Y, i32 0, i1 false )
15 call void @llvm.memcpy.p0.p0.i32(ptr @X, ptr @Y, i32 0, i1 false )
16 call void @llvm.memset.p0.i32(ptr @X, i8 123, i32 0, i1 false )