]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/XCore/unaligned_store_combine.ll
Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / CodeGen / XCore / unaligned_store_combine.ll
1 ; RUN: llc < %s -march=xcore | FileCheck %s
2
3 ; Unaligned load / store pair. Should be combined into a memmove
4 ; of size 8
5 define void @f(i64* %dst, i64* %src) nounwind {
6 entry:
7 ; CHECK-LABEL: f:
8 ; CHECK: ldc r2, 8
9 ; CHECK: bl memmove
10         %0 = load i64* %src, align 1
11         store i64 %0, i64* %dst, align 1
12         ret void
13 }