1 ; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s -check-prefix=PWR7
2 ; RUN: llc -verify-machineinstrs -mcpu=pwr8 < %s | FileCheck %s -check-prefix=PWR8
3 target datalayout = "E-m:e-i64:64-n32:64"
4 target triple = "powerpc64-unknown-linux-gnu"
6 ; Function Attrs: nounwind
7 define void @foo1(ptr nocapture %x, ptr nocapture readonly %y) #0 {
9 tail call void @llvm.memcpy.p0.p0.i64(ptr align 8 %x, ptr align 8 %y, i64 32, i1 false)
14 ; PWR7-DAG: li [[OFFSET:[0-9]+]], 16
15 ; PWR7-DAG: lxvd2x [[TMP0:[0-9]+]], 4, [[OFFSET]]
16 ; PWR7-DAG: stxvd2x [[TMP0]], 3, [[OFFSET]]
17 ; PWR7-DAG: lxvd2x [[TMP1:[0-9]+]], 0, 4
18 ; PWR7-DAG: stxvd2x [[TMP1]], 0, 3
27 ; Function Attrs: nounwind
28 declare void @llvm.memcpy.p0.p0.i64(ptr nocapture, ptr nocapture readonly, i64, i1) #0
30 ; Function Attrs: nounwind
31 define void @foo2(ptr nocapture %x, ptr nocapture readonly %y) #0 {
33 tail call void @llvm.memcpy.p0.p0.i64(ptr align 8 %x, ptr align 8 %y, i64 128, i1 false)
46 ; Function Attrs: nounwind
47 define void @bar1(ptr nocapture %x) #0 {
49 tail call void @llvm.memset.p0.i64(ptr align 8 %x, i8 0, i64 128, i1 false)
63 ; Function Attrs: nounwind
64 define void @bar2(ptr nocapture %x) #0 {
66 tail call void @llvm.memset.p0.i64(ptr align 32 %x, i8 0, i64 128, i1 false)
80 ; Function Attrs: nounwind
81 declare void @llvm.memset.p0.i64(ptr nocapture, i8, i64, i1) #0
83 attributes #0 = { nounwind }