diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-06-26 20:32:52 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-06-26 20:32:52 +0000 |
| commit | 08bbd35a80bf7765fe0d3043f9eb5a2f2786b649 (patch) | |
| tree | 80108f0f128657f8623f8f66ad9735b4d88e7b47 /test/CodeGen/AArch64/mergestores_noimplicitfloat.ll | |
| parent | 7c7aba6e5fef47a01a136be655b0a92cfd7090f6 (diff) | |
Notes
Diffstat (limited to 'test/CodeGen/AArch64/mergestores_noimplicitfloat.ll')
| -rw-r--r-- | test/CodeGen/AArch64/mergestores_noimplicitfloat.ll | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/mergestores_noimplicitfloat.ll b/test/CodeGen/AArch64/mergestores_noimplicitfloat.ll new file mode 100644 index 000000000000..74aeaf75d037 --- /dev/null +++ b/test/CodeGen/AArch64/mergestores_noimplicitfloat.ll @@ -0,0 +1,23 @@ +; RUN: llc -o - %s | FileCheck %s + +target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" +target triple = "arm64-apple-ios10.0.0" + +; PR33475 - Expect 64-bit operations as 128-operations are not legal + +; CHECK-LABEL: pr33475 +; CHECK-DAG: ldr [[R0:x[0-9]+]], [x1] +; CHECK-DAG: str [[R0]], [x0] +; CHECK-DAG: ldr [[R1:x[0-9]+]], [x1, #8] +; CHECK-DAG: str [[R1]], [x0, #8] +; CHECK-DAG: ldr [[R2:x[0-9]+]], [x1, #16] +; CHECK-DAG: str [[R2]], [x0, #16] +; CHECK-DAG: ldr [[R3:x[0-9]+]], [x1, #24] +; CHECK-DAG: str [[R3]], [x0, #24] + +define void @pr33475(i8* %p0, i8* %p1) noimplicitfloat { + call void @llvm.memcpy.p0i8.p0i8.i64(i8* %p0, i8* %p1, i64 32, i32 4, i1 false) + ret void +} + +declare void @llvm.memcpy.p0i8.p0i8.i64(i8*, i8*, i64, i32, i1) |
