1 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis
3 declare void %llvm.memmove.i32(sbyte*, sbyte*, uint, uint)
4 declare void %llvm.memcpy.i32(sbyte*, sbyte*, uint, uint)
5 declare void %llvm.memset.i32(sbyte*, ubyte, uint, uint)
10 void %zero_byte_test() {
11 ; These process zero bytes, so they are a noop.
12 call void %llvm.memmove.i32(sbyte* %X, sbyte* %Y, uint 0, uint 100)
13 call void %llvm.memcpy.i32(sbyte* %X, sbyte* %Y, uint 0, uint 100)
14 call void %llvm.memset.i32(sbyte* %X, ubyte 123, uint 0, uint 100)