2015-07-29 22:17:26 +08:00
|
|
|
; RUN: llc -mtriple=arm64-apple-ios -mattr=+strict-align < %s | FileCheck %s
|
2015-04-09 11:40:33 +08:00
|
|
|
|
|
|
|
; Small (16-bytes here) unaligned memcpys should stay memcpy calls if
|
|
|
|
; strict-alignment is turned on.
|
|
|
|
define void @t0(i8* %out, i8* %in) {
|
|
|
|
; CHECK-LABEL: t0:
|
|
|
|
; CHECK: orr w2, wzr, #0x10
|
|
|
|
; CHECK-NEXT: bl _memcpy
|
|
|
|
entry:
|
2015-11-19 13:56:52 +08:00
|
|
|
call void @llvm.memcpy.p0i8.p0i8.i64(i8* %out, i8* %in, i64 16, i32 1, i1 false)
|
2015-04-09 11:40:33 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2015-11-19 13:56:52 +08:00
|
|
|
declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture readonly, i64, i32, i1)
|