1 ; This test makes sure that memmove instructions are properly eliminated.
3 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
4 ; RUN: not grep {call void @llvm.memmove}
6 %S = internal constant [33 x sbyte] c"panic: restorelist inconsistency\00"
10 declare void %llvm.memmove.i32(sbyte*, sbyte*, uint, uint)
12 void %test1(sbyte* %A, sbyte* %B, uint %N) {
14 call void %llvm.memmove.i32(sbyte* %A, sbyte* %B, uint 0, uint 1)
18 void %test2(sbyte *%A, uint %N) {
19 ;; dest can't alias source since we can't write to source!
20 call void %llvm.memmove.i32(sbyte* %A, sbyte* getelementptr ([33 x sbyte]* %S, int 0, int 0),