summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/fast-isel-intrinsic.ll
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-02-18 21:46:28 +0000
committerChad Rosier <mcrosier@apple.com>2013-02-18 21:46:28 +0000
commit848c25ddfa8530fd9349bdf5ed8a8633f27eb388 (patch)
tree2f8712d7e973b7e6880fc3a087226d966644d795 /test/CodeGen/ARM/fast-isel-intrinsic.ll
parent6228999d826c87ac90344356c2d123361dc1d648 (diff)
downloadllvm-848c25ddfa8530fd9349bdf5ed8a8633f27eb388.tar.gz
llvm-848c25ddfa8530fd9349bdf5ed8a8633f27eb388.tar.bz2
llvm-848c25ddfa8530fd9349bdf5ed8a8633f27eb388.tar.xz
[fast-isel] Remove an invalid assert.
If the memcpy has an odd length with an alignment of 2, this would incorrectly assert on the last 1 byte copy. rdar://13202135 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/fast-isel-intrinsic.ll')
-rw-r--r--test/CodeGen/ARM/fast-isel-intrinsic.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fast-isel-intrinsic.ll b/test/CodeGen/ARM/fast-isel-intrinsic.ll
index 7d38cc2a7f..3128f5ee34 100644
--- a/test/CodeGen/ARM/fast-isel-intrinsic.ll
+++ b/test/CodeGen/ARM/fast-isel-intrinsic.ll
@@ -231,3 +231,10 @@ define void @t6() nounwind ssp {
call void @llvm.memcpy.p0i8.p0i8.i32(i8* getelementptr inbounds ([60 x i8]* @temp, i32 0, i32 4), i8* getelementptr inbounds ([60 x i8]* @temp, i32 0, i32 16), i32 10, i32 1, i1 false)
ret void
}
+
+rdar://13202135
+define void @t7() nounwind ssp {
+; Just make sure this doesn't assert when we have an odd length and an alignment of 2.
+ call void @llvm.memcpy.p0i8.p0i8.i32(i8* getelementptr inbounds ([60 x i8]* @temp, i32 0, i32 4), i8* getelementptr inbounds ([60 x i8]* @temp, i32 0, i32 16), i32 3, i32 2, i1 false)
+ ret void
+}