blob: 74aeaf75d0378896b9cde22146afee39872fbbb0 [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
7
8; CHECK-LABEL: pr33475
9; CHECK-DAG: ldr [[R0:x[0-9]+]], [x1]
10; CHECK-DAG: str [[R0]], [x0]
11; CHECK-DAG: ldr [[R1:x[0-9]+]], [x1, #8]
12; CHECK-DAG: str [[R1]], [x0, #8]
13; CHECK-DAG: ldr [[R2:x[0-9]+]], [x1, #16]
14; CHECK-DAG: str [[R2]], [x0, #16]
15; CHECK-DAG: ldr [[R3:x[0-9]+]], [x1, #24]
16; CHECK-DAG: str [[R3]], [x0, #24]
17
18define void @pr33475(i8* %p0, i8* %p1) noimplicitfloat {
19 call void @llvm.memcpy.p0i8.p0i8.i64(i8* %p0, i8* %p1, i64 32, i32 4, i1 false)
20 ret void
21}
22
23declare void @llvm.memcpy.p0i8.p0i8.i64(i8*, i8*, i64, i32, i1)