llvm/test/CodeGen/XCore/unaligned_store_combine.ll
raw| 1 | ; RUN: llc < %s -mtriple=xcore | FileCheck %s |
| 2 | |
| 3 | ; Unaligned load / store pair. Should be combined into a memmove |
| 4 | ; of size 8 |
| 5 | define void @f(ptr %dst, ptr %src) nounwind { |
| 6 | entry: |
| 7 | ; CHECK-LABEL: f: |
| 8 | ; CHECK: ldc r2, 8 |
| 9 | ; CHECK: bl memmove |
| 10 | %0 = load i64, ptr %src, align 1 |
| 11 | store i64 %0, ptr %dst, align 1 |
| 12 | ret void |
| 13 | } |