Akira Hatanaka | f53b040 | 2015-07-29 14:17:26 +0000 | [diff] [blame] | 1 | ; RUN: llc -mtriple=arm64-apple-ios -mattr=+strict-align < %s | FileCheck %s |
Lang Hames | 9033385 | 2015-04-09 03:40:33 +0000 | [diff] [blame] | 2 | |
| 3 | ; Small (16-bytes here) unaligned memcpys should stay memcpy calls if |
| 4 | ; strict-alignment is turned on. |
| 5 | define void @t0(i8* %out, i8* %in) { |
| 6 | ; CHECK-LABEL: t0: |
| 7 | ; CHECK: orr w2, wzr, #0x10 |
| 8 | ; CHECK-NEXT: bl _memcpy |
| 9 | entry: |
Daniel Neilson | 1e68724 | 2018-01-19 17:13:12 +0000 | [diff] [blame^] | 10 | call void @llvm.memcpy.p0i8.p0i8.i64(i8* %out, i8* %in, i64 16, i1 false) |
Lang Hames | 9033385 | 2015-04-09 03:40:33 +0000 | [diff] [blame] | 11 | ret void |
| 12 | } |
| 13 | |
Daniel Neilson | 1e68724 | 2018-01-19 17:13:12 +0000 | [diff] [blame^] | 14 | declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture readonly, i64, i1) |