diff options
| author | Chad Rosier <mcrosier@apple.com> | 2013-02-18 21:46:28 +0000 |
|---|---|---|
| committer | Chad Rosier <mcrosier@apple.com> | 2013-02-18 21:46:28 +0000 |
| commit | f3f8f443e10cbba0c313c41b3dc3632e39804c96 (patch) | |
| tree | 503e0662ca333268852e97aa56331b51a603a946 /llvm/test/CodeGen | |
| parent | 5c6e653b72f601977054bdf8f0c4512a972e60cb (diff) | |
| download | bcm5719-llvm-f3f8f443e10cbba0c313c41b3dc3632e39804c96.tar.gz bcm5719-llvm-f3f8f443e10cbba0c313c41b3dc3632e39804c96.zip | |
[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
llvm-svn: 175459
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/ARM/fast-isel-intrinsic.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/fast-isel-intrinsic.ll b/llvm/test/CodeGen/ARM/fast-isel-intrinsic.ll index 7d38cc2a7f8..3128f5ee342 100644 --- a/llvm/test/CodeGen/ARM/fast-isel-intrinsic.ll +++ b/llvm/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 +} |

