1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=core2 | FileCheck %s --check-prefix=CORE2
3 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=nehalem | FileCheck %s --check-prefix=NEHALEM
4 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=bdver2 | FileCheck %s --check-prefix=BDVER2
5 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=btver2 | FileCheck %s --check-prefix=BTVER2
7 declare void @llvm.memcpy.p0.p0.i64(ptr nocapture, ptr nocapture readonly, i64, i1)
9 define void @copy16bytes(ptr nocapture %a, ptr nocapture readonly %b) {
10 ; CORE2-LABEL: copy16bytes:
12 ; CORE2-NEXT: movq (%rsi), %rax
13 ; CORE2-NEXT: movq 8(%rsi), %rcx
14 ; CORE2-NEXT: movq %rcx, 8(%rdi)
15 ; CORE2-NEXT: movq %rax, (%rdi)
18 ; NEHALEM-LABEL: copy16bytes:
20 ; NEHALEM-NEXT: movups (%rsi), %xmm0
21 ; NEHALEM-NEXT: movups %xmm0, (%rdi)
24 ; BDVER2-LABEL: copy16bytes:
26 ; BDVER2-NEXT: vmovups (%rsi), %xmm0
27 ; BDVER2-NEXT: vmovups %xmm0, (%rdi)
30 ; BTVER2-LABEL: copy16bytes:
32 ; BTVER2-NEXT: vmovups (%rsi), %xmm0
33 ; BTVER2-NEXT: vmovups %xmm0, (%rdi)
35 call void @llvm.memcpy.p0.p0.i64(ptr %a, ptr %b, i64 16, i1 false)
38 ; CHECK-LABEL: copy16bytes