Move a DenseMap's declaration outside of a loop, and just call
[oota-llvm.git] / test / Transforms / InstCombine / 2006-11-03-Memmove64.ll
1 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
2 ; RUN:    not grep memmove.i32
3 ; Instcombine was trying to turn this into a memmove.i32
4
5 target datalayout = "e-p:64:64"
6 target triple = "alphaev67-unknown-linux-gnu"
7 @str10 = internal constant [1 x i8] zeroinitializer             ; <[1 x i8]*> [#uses=1]
8
9 define void @do_join(i8* %b) {
10 entry:
11         call void @llvm.memmove.i64( i8* %b, i8* getelementptr ([1 x i8]* @str10, i32 0, i64 0), i64 1, i32 1 )
12         ret void
13 }
14
15 declare void @llvm.memmove.i64(i8*, i8*, i64, i32)
16