[llvm-commits] [llvm] r149803 - /llvm/trunk/test/CodeGen/X86/memcpy.ll

Chris Lattner sabre at nondot.org
Sat Feb 4 18:37:36 PST 2012


Author: lattner
Date: Sat Feb  4 20:37:36 2012
New Revision: 149803

URL: http://llvm.org/viewvc/llvm-project?rev=149803&view=rev
Log:
Add a test for the miscompilation my recent ConstantDataArray patches introduced, to make sure
we don't regress on it in the future.

Modified:
    llvm/trunk/test/CodeGen/X86/memcpy.ll

Modified: llvm/trunk/test/CodeGen/X86/memcpy.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/memcpy.ll?rev=149803&r1=149802&r2=149803&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/memcpy.ll (original)
+++ llvm/trunk/test/CodeGen/X86/memcpy.ll Sat Feb  4 20:37:36 2012
@@ -79,3 +79,16 @@
 ; LINUX movq
 }
 
+
+ at .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
+}
+
+





More information about the llvm-commits mailing list