diff options
| author | Tim Northover <tnorthover@apple.com> | 2014-06-10 09:52:40 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2014-06-10 09:52:40 +0000 |
| commit | c19445d07a539a1522e87b83b6b446bfcf25fc0e (patch) | |
| tree | 33cff3d8fd2594630d66cb874d425805cb1a72fc /llvm/test | |
| parent | c726c367f4fe33e4671d8695bfcc1b7b1bb0d112 (diff) | |
| download | bcm5719-llvm-c19445d07a539a1522e87b83b6b446bfcf25fc0e.tar.gz bcm5719-llvm-c19445d07a539a1522e87b83b6b446bfcf25fc0e.zip | |
AArch64: make FastISel memcpy emission more robust.
We were hitting an assert if FastISel couldn't create the load or store we
requested. Currently this happens for large frame-local addresses, though
CodeGen could be improved there.
rdar://problem/17187463
llvm-svn: 210519
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/AArch64/arm64-fast-isel-intrinsic.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/arm64-fast-isel-intrinsic.ll b/llvm/test/CodeGen/AArch64/arm64-fast-isel-intrinsic.ll index a3d5f6c3c5a..7c85ea5b9f7 100644 --- a/llvm/test/CodeGen/AArch64/arm64-fast-isel-intrinsic.ll +++ b/llvm/test/CodeGen/AArch64/arm64-fast-isel-intrinsic.ll @@ -133,3 +133,12 @@ define void @t8() { call void @llvm.memcpy.p0i8.p0i8.i64(i8* getelementptr inbounds ([80 x i8]* @temp, i32 0, i32 0), i8* getelementptr inbounds ([80 x i8]* @message, i32 0, i32 0), i64 4, i32 1, i1 false) ret void } + +define void @test_distant_memcpy(i8* %dst) { +; ARM64-LABEL: test_distant_memcpy: +; ARM64: bl _memcpy + %array = alloca i8, i32 8192 + %elem = getelementptr i8* %array, i32 8000 + call void @llvm.memcpy.p0i8.p0i8.i64(i8* %dst, i8* %elem, i64 4, i32 1, i1 false) + ret void +} |

