blob: fbaef9cc07516252bbd10e9daa3f2e655e468063 [file] [log] [blame]
Nirav Dave4e363e32017-06-19 15:18:20 +00001; RUN: llc -o - %s | FileCheck %s
2
3target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
4target triple = "arm64-apple-ios10.0.0"
5
6; PR33475 - Expect 64-bit operations as 128-operations are not legal
Sirish Pandecabe50a32018-05-16 15:36:52 +00007; However, we can generate a paired 64-bit loads and stores, without using
8; floating point registers.
Nirav Dave4e363e32017-06-19 15:18:20 +00009
10; CHECK-LABEL: pr33475
Sirish Pandecabe50a32018-05-16 15:36:52 +000011; 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]
Nirav Dave4e363e32017-06-19 15:18:20 +000015
16define void @pr33475(i8* %p0, i8* %p1) noimplicitfloat {
Daniel Neilson1e687242018-01-19 17:13:12 +000017 call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 4 %p0, i8* align 4 %p1, i64 32, i1 false)
Nirav Dave4e363e32017-06-19 15:18:20 +000018 ret void
19}
20
Daniel Neilson1e687242018-01-19 17:13:12 +000021declare void @llvm.memcpy.p0i8.p0i8.i64(i8*, i8*, i64, i1)