mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 08:29:43 +00:00
b8b226b517
This commit defines subtarget feature strict-align and uses it instead of cl::opt -aarch64-strict-align to decide whether strict alignment should be forced. rdar://problem/21529937 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243516 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
498 B
LLVM
15 lines
498 B
LLVM
; RUN: llc -mtriple=arm64-apple-ios -mattr=+strict-align < %s | FileCheck %s
|
|
|
|
; 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:
|
|
call void @llvm.memcpy.p0i8.p0i8.i64(i8* %out, i8* %in, i64 16, i32 1, i1 false)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture readonly, i64, i32, i1)
|