summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/MemCpyOpt
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-06-17 03:14:27 +0000
committerChris Lattner <sabre@nondot.org>2011-06-17 03:14:27 +0000
commitb90ed2233c9fac46bac53de5833dd5e35db10acf (patch)
tree2efdd5ccb4d397789a8fa4a9413882084472fa0b /llvm/test/Transforms/MemCpyOpt
parent033026ffc07ee0b7dd67c2b06259ce2be6051254 (diff)
downloadbcm5719-llvm-b90ed2233c9fac46bac53de5833dd5e35db10acf.tar.gz
bcm5719-llvm-b90ed2233c9fac46bac53de5833dd5e35db10acf.zip
manually upgrade a bunch of tests to modern syntax, and remove some that
are either unreduced or only test old syntax. llvm-svn: 133228
Diffstat (limited to 'llvm/test/Transforms/MemCpyOpt')
-rw-r--r--llvm/test/Transforms/MemCpyOpt/memmove.ll5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/test/Transforms/MemCpyOpt/memmove.ll b/llvm/test/Transforms/MemCpyOpt/memmove.ll
index 8babb04e4b3..8d3fbd2b6df 100644
--- a/llvm/test/Transforms/MemCpyOpt/memmove.ll
+++ b/llvm/test/Transforms/MemCpyOpt/memmove.ll
@@ -11,11 +11,14 @@ entry:
; CHECK: @test1
; CHECK: call void @llvm.memcpy
- %call3 = malloc [13 x i8] ; <[13 x i8]*> [#uses=1]
+ %malloccall = tail call i8* @malloc(i32 trunc (i64 mul nuw (i64 ptrtoint (i8* getelementptr (i8* null, i32 1) to i64), i64 13) to i32))
+ %call3 = bitcast i8* %malloccall to [13 x i8]*
%call3.sub = getelementptr inbounds [13 x i8]* %call3, i64 0, i64 0 ; <i8*> [#uses=2]
tail call void @llvm.memmove.i64(i8* %call3.sub, i8* %src, i64 13, i32 1)
ret i8* %call3.sub
}
+declare noalias i8* @malloc(i32)
+
define void @test2(i8* %P) nounwind {
entry:
OpenPOWER on IntegriCloud