diff options
| author | Karthik Bhat <kv.bhat@samsung.com> | 2014-03-13 04:50:29 +0000 |
|---|---|---|
| committer | Karthik Bhat <kv.bhat@samsung.com> | 2014-03-13 04:50:29 +0000 |
| commit | 294607e122b32ba71e1c0639b54b2f5a1f217072 (patch) | |
| tree | 53f78cc336f44c162a67c1b45499558f322809f5 /llvm/test/Transforms/ScalarRepl/vector_memcpy.ll | |
| parent | dca870b20e83a2ac049811acef29d10fb7cdc9ef (diff) | |
| download | bcm5719-llvm-294607e122b32ba71e1c0639b54b2f5a1f217072.tar.gz bcm5719-llvm-294607e122b32ba71e1c0639b54b2f5a1f217072.zip | |
Fix PR18800. llvm intrinsic memcpy takes 5 arguments void @llvm.memcpy.p0i8.p0i8.i32(i8* <dest>, i8* <src>, i32 <len>, i32 <align>, i1 <isvolatile>).The test case incorrectly uses the old format resulting in isVolatile function in MemIntrinsic to crash during SROA transformation.Modified the test case to use correct signature of memcpy and memset.
llvm-svn: 203750
Diffstat (limited to 'llvm/test/Transforms/ScalarRepl/vector_memcpy.ll')
| -rw-r--r-- | llvm/test/Transforms/ScalarRepl/vector_memcpy.ll | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/test/Transforms/ScalarRepl/vector_memcpy.ll b/llvm/test/Transforms/ScalarRepl/vector_memcpy.ll index 33e8034f573..dfba9e2c807 100644 --- a/llvm/test/Transforms/ScalarRepl/vector_memcpy.ll +++ b/llvm/test/Transforms/ScalarRepl/vector_memcpy.ll @@ -9,8 +9,7 @@ define <16 x float> @foo(<16 x float> %A) nounwind { store <16 x float> %A, <16 x float>* %tmp %s = bitcast <16 x float>* %tmp to i8* %s2 = bitcast <16 x float>* %tmp2 to i8* - call void @llvm.memcpy.i64(i8* %s2, i8* %s, i64 64, i32 16) - + call void @llvm.memcpy.p0i8.p0i8.i64(i8* %s2, i8* %s, i64 64, i32 16, i1 false) %R = load <16 x float>* %tmp2 ret <16 x float> %R } @@ -19,12 +18,11 @@ define <16 x float> @foo2(<16 x float> %A) nounwind { %tmp2 = alloca <16 x float>, align 16 %s2 = bitcast <16 x float>* %tmp2 to i8* - call void @llvm.memset.i64(i8* %s2, i8 0, i64 64, i32 16) + call void @llvm.memset.p0i8.i64(i8* %s2, i8 0, i64 64, i32 16, i1 false) %R = load <16 x float>* %tmp2 ret <16 x float> %R } - -declare void @llvm.memcpy.i64(i8* nocapture, i8* nocapture, i64, i32) nounwind -declare void @llvm.memset.i64(i8* nocapture, i8, i64, i32) nounwind +declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind +declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) nounwind |

