summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2006-11-03 22:45:09 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2006-11-03 22:45:09 +0000
commit0c7af7cbceda202290aaddb93e90ab6d97959b75 (patch)
treeff24efce87237c76cd5ad810fc4b241ecc9c0243 /test
parentd7c628de89306449f6f95e7db304a8c8f85a9ac3 (diff)
downloadllvm-0c7af7cbceda202290aaddb93e90ab6d97959b75.tar.gz
llvm-0c7af7cbceda202290aaddb93e90ab6d97959b75.tar.bz2
llvm-0c7af7cbceda202290aaddb93e90ab6d97959b75.tar.xz
add a regression for memmove
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31430 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/2007-11-03-Memmove64.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2007-11-03-Memmove64.ll b/test/Transforms/InstCombine/2007-11-03-Memmove64.ll
new file mode 100644
index 0000000000..b4c3a534cf
--- /dev/null
+++ b/test/Transforms/InstCombine/2007-11-03-Memmove64.ll
@@ -0,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)