2009-09-11 18:01:28 +00:00
|
|
|
; RUN: opt < %s -instcombine -S | \
|
2007-04-14 20:13:02 +00:00
|
|
|
; RUN: not grep memmove.i32
|
2006-11-03 22:45:09 +00:00
|
|
|
; Instcombine was trying to turn this into a memmove.i32
|
|
|
|
|
|
|
|
target datalayout = "e-p:64:64"
|
|
|
|
target triple = "alphaev67-unknown-linux-gnu"
|
2008-03-01 09:15:35 +00:00
|
|
|
@str10 = internal constant [1 x i8] zeroinitializer ; <[1 x i8]*> [#uses=1]
|
2006-11-03 22:45:09 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
define void @do_join(i8* %b) {
|
2006-11-03 22:45:09 +00:00
|
|
|
entry:
|
2008-03-01 09:15:35 +00:00
|
|
|
call void @llvm.memmove.i64( i8* %b, i8* getelementptr ([1 x i8]* @str10, i32 0, i64 0), i64 1, i32 1 )
|
|
|
|
ret void
|
2006-11-03 22:45:09 +00:00
|
|
|
}
|
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
declare void @llvm.memmove.i64(i8*, i8*, i64, i32)
|
|
|
|
|