mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
d10eab0a95
aligned address. Based on patch by David Peixotto. Also use vld1.64 / vst1.64 with 128-bit alignment to take advantage of alignment hints. rdar://12090772, rdar://12238782 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164089 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
560 B
LLVM
21 lines
560 B
LLVM
; RUN: llc -march=arm -mcpu=cortex-a8 < %s | FileCheck %s
|
|
|
|
; Should trigger a NEON store.
|
|
; CHECK: vstr
|
|
define void @f_0_12(i8* nocapture %c) nounwind optsize {
|
|
entry:
|
|
call void @llvm.memset.p0i8.i64(i8* %c, i8 0, i64 12, i32 8, i1 false)
|
|
ret void
|
|
}
|
|
|
|
; Trigger multiple NEON stores.
|
|
; CHECK: vst1.64
|
|
; CHECK-NEXT: vst1.64
|
|
define void @f_0_40(i8* nocapture %c) nounwind optsize {
|
|
entry:
|
|
call void @llvm.memset.p0i8.i64(i8* %c, i8 0, i64 40, i32 16, i1 false)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) nounwind
|