Combine an unaligned store of unaligned load into a memmove.
[oota-llvm.git] / test / CodeGen / XCore / unaligned_store_combine.ll
1 ; RUN: llvm-as < %s | llc -march=xcore > %t1.s
2 ; RUN: grep "bl memmove" %t1.s | count 1
3 ; RUN: grep "ldc r., 8" %t1.s | count 1
4
5 ; Unaligned load / store pair. Should be combined into a memmove
6 ; of size 8
7 define void @f(i64* %dst, i64* %src) nounwind {
8 entry:
9         %0 = load i64* %src, align 1
10         store i64 %0, i64* %dst, align 1
11         ret void
12 }