mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Combine an unaligned store of unaligned load into a memmove.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75908 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
; RUN: llvm-as < %s | llc -march=xcore > %t1.s
|
||||
; RUN: grep "bl memmove" %t1.s | count 1
|
||||
; RUN: grep "ldc r., 8" %t1.s | count 1
|
||||
|
||||
; Unaligned load / store pair. Should be combined into a memmove
|
||||
; of size 8
|
||||
define void @f(i64* %dst, i64* %src) nounwind {
|
||||
entry:
|
||||
%0 = load i64* %src, align 1
|
||||
store i64 %0, i64* %dst, align 1
|
||||
ret void
|
||||
}
|
||||
Reference in New Issue
Block a user