diff options
author | Chris Lattner <sabre@nondot.org> | 2012-02-05 02:37:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-02-05 02:37:36 +0000 |
commit | 6987fdb6208b491fb31d5599eeed6ea2f2c9f30d (patch) | |
tree | 39984035a2a33c88aa575261d1a5bc7fddd0807e | |
parent | 2de5a939e2f1fe6773865af021608ccc368b2418 (diff) | |
download | bcm5719-llvm-6987fdb6208b491fb31d5599eeed6ea2f2c9f30d.tar.gz bcm5719-llvm-6987fdb6208b491fb31d5599eeed6ea2f2c9f30d.zip |
Add a test for the miscompilation my recent ConstantDataArray patches introduced, to make sure
we don't regress on it in the future.
llvm-svn: 149803
-rw-r--r-- | llvm/test/CodeGen/X86/memcpy.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/memcpy.ll b/llvm/test/CodeGen/X86/memcpy.ll index f43b0bf509c..86c6862a53f 100644 --- a/llvm/test/CodeGen/X86/memcpy.ll +++ b/llvm/test/CodeGen/X86/memcpy.ll @@ -79,3 +79,16 @@ entry: ; LINUX movq } + +@.str = private unnamed_addr constant [30 x i8] c"\00aaaaaaaaaaaaaaaaaaaaaaaaaaaa\00", align 1 + +define void @test5(i8* nocapture %C) nounwind uwtable ssp { +entry: + tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %C, i8* getelementptr inbounds ([30 x i8]* @.str, i64 0, i64 0), i64 16, i32 1, i1 false) + ret void + +; DARWIN: movabsq $7016996765293437281 +; DARWIN: movabsq $7016996765293437184 +} + + |