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.p0i8.p0i8.i64(i8* nocapture, i8* nocapture readonly, i64, i1)
9 define void @copy16bytes(i8* nocapture %a, i8* 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: movups (%rsi), %xmm0
27 ; BDVER2-NEXT: movups %xmm0, (%rdi)
30 ; BTVER2-LABEL: copy16bytes:
32 ; BTVER2-NEXT: vmovups (%rsi), %xmm0
33 ; BTVER2-NEXT: vmovups %xmm0, (%rdi)
35 call void @llvm.memcpy.p0i8.p0i8.i64(i8* %a, i8* %b, i64 16, i1 false)
38 ; CHECK-LABEL: copy16bytes