2009-09-11 20:01:28 +02:00
|
|
|
; RUN: opt < %s -instcombine -S | \
|
2007-04-14 22:13:02 +02:00
|
|
|
; RUN: not grep memmove.i32
|
2006-11-03 23:45:09 +01: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 10:15:35 +01:00
|
|
|
@str10 = internal constant [1 x i8] zeroinitializer ; <[1 x i8]*> [#uses=1]
|
2006-11-03 23:45:09 +01:00
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
define void @do_join(i8* %b) {
|
2006-11-03 23:45:09 +01:00
|
|
|
entry:
|
2008-03-01 10:15:35 +01: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 23:45:09 +01:00
|
|
|
}
|
|
|
|
|
2008-03-01 10:15:35 +01:00
|
|
|
declare void @llvm.memmove.i64(i8*, i8*, i64, i32)
|
|
|
|
|