1 ; RUN: llc -o - %s | FileCheck %s
3 target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
4 target triple = "arm64-apple-ios10.0.0"
6 ; PR33475 - Expect 64-bit operations as 128-operations are not legal
7 ; However, we can generate a paired 64-bit loads and stores, without using
8 ; floating point registers.
10 ; CHECK-LABEL: pr33475
11 ; CHECK-DAG: ldp [[R0:x[0-9]+]], [[R0:x[0-9]+]], [x1, #16]
12 ; CHECK-DAG: ldp [[R0:x[0-9]+]], [[R0:x[0-9]+]], [x1]
13 ; CHECK-DAG: stp [[R0:x[0-9]+]], [[R0:x[0-9]+]], [x0, #16]
14 ; CHECK-DAG: stp [[R0:x[0-9]+]], [[R0:x[0-9]+]], [x0]
16 define void @pr33475(ptr %p0, ptr %p1) noimplicitfloat {
17 call void @llvm.memcpy.p0.p0.i64(ptr align 4 %p0, ptr align 4 %p1, i64 32, i1 false)
21 declare void @llvm.memcpy.p0.p0.i64(ptr, ptr, i64, i1)