diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2012-08-19 10:31:50 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2012-08-19 10:31:50 +0000 |
commit | 902a7b529820e6a0aa85f98f21afaeb1805a22f8 (patch) | |
tree | e7da40d2f6ef824f7371860826845870e6e1dcd5 /test/Transforms/InstCombine/memcpy.ll | |
parent | 58b69754af0cbff56b1cfce9be9392e4451f6628 (diff) |
Notes
Diffstat (limited to 'test/Transforms/InstCombine/memcpy.ll')
-rw-r--r-- | test/Transforms/InstCombine/memcpy.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/memcpy.ll b/test/Transforms/InstCombine/memcpy.ll index 8a2e3aaad0270..3a68ff95af82d 100644 --- a/test/Transforms/InstCombine/memcpy.ll +++ b/test/Transforms/InstCombine/memcpy.ll @@ -1,6 +1,7 @@ ; RUN: opt < %s -instcombine -S | FileCheck %s declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1) nounwind +declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind define void @test1(i8* %a) { tail call void @llvm.memcpy.p0i8.p0i8.i32(i8* %a, i8* %a, i32 100, i32 1, i1 false) @@ -17,3 +18,10 @@ define void @test2(i8* %a) { ; CHECK: define void @test2 ; CHECK-NEXT: call void @llvm.memcpy } + +define void @test3(i8* %d, i8* %s) { + tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %d, i8* %s, i64 17179869184, i32 4, i1 false) + ret void +; CHECK: define void @test3 +; CHECK-NEXT: call void @llvm.memcpy +} |