[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/2007-11-03-Memmove64.ll
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Fri Nov 3 14:45:36 PST 2006
Changes in directory llvm/test/Regression/Transforms/InstCombine:
2007-11-03-Memmove64.ll added (r1.1)
---
Log message:
add a regression for memmove
---
Diffs of the changes: (+18 -0)
2007-11-03-Memmove64.ll | 18 ++++++++++++++++++
1 files changed, 18 insertions(+)
Index: llvm/test/Regression/Transforms/InstCombine/2007-11-03-Memmove64.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/2007-11-03-Memmove64.ll:1.1
*** /dev/null Fri Nov 3 16:45:19 2006
--- llvm/test/Regression/Transforms/InstCombine/2007-11-03-Memmove64.ll Fri Nov 3 16:45:09 2006
***************
*** 0 ****
--- 1,18 ----
+ ;RUN: llvm-as < %s | opt -instcombine | llvm-dis |not grep memmove.i32
+ ; Instcombine was trying to turn this into a memmove.i32
+
+ target datalayout = "e-p:64:64"
+ target endian = little
+ target pointersize = 64
+ target triple = "alphaev67-unknown-linux-gnu"
+ %str10 = internal constant [1 x sbyte] zeroinitializer ; <[1 x sbyte]*> [#uses=1]
+
+ implementation ; Functions:
+
+ void %do_join(sbyte* %b) {
+ entry:
+ call void %llvm.memmove.i64( sbyte* %b, sbyte* getelementptr ([1 x sbyte]* %str10, int 0, ulong 0), ulong 1, uint 1 )
+ ret void
+ }
+
+ declare void %llvm.memmove.i64(sbyte*, sbyte*, ulong, uint)
More information about the llvm-commits
mailing list