1 ; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck -allow-deprecated-dag-overlap %s -check-prefix=PWR7
2 ; RUN: llc -verify-machineinstrs -mcpu=pwr8 < %s | FileCheck -allow-deprecated-dag-overlap %s -check-prefix=PWR8
3 ; RUN: llc -verify-machineinstrs -mcpu=a2q < %s | FileCheck -allow-deprecated-dag-overlap %s -check-prefix=A2Q
4 target datalayout = "E-m:e-i64:64-n32:64"
5 target triple = "powerpc64-unknown-linux-gnu"
7 ; Function Attrs: nounwind
8 define void @foo1(double* nocapture %x, double* nocapture readonly %y) #0 {
10 %0 = bitcast double* %x to i8*
11 %1 = bitcast double* %y to i8*
12 tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 8 %0, i8* align 8 %1, i64 32, i1 false)
17 ; PWR7-DAG: li [[OFFSET:[0-9]+]], 16
18 ; PWR7-DAG: lxvd2x [[TMP0:[0-9]+]], 4, [[OFFSET]]
19 ; PWR7-DAG: stxvd2x [[TMP0]], 0, 3
20 ; PWR7-DAG: lxvd2x [[TMP1:[0-9]+]], 0, 4
21 ; PWR7-DAG: stxvd2x [[TMP1]], 0, 3
31 ; A2Q: ld {{[0-9]+}}, {{[0-9]+}}(4)
32 ; A2Q: std {{[0-9]+}}, {{[0-9]+}}(3)
36 ; Function Attrs: nounwind
37 declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture readonly, i64, i1) #0
39 ; Function Attrs: nounwind
40 define void @foo2(double* nocapture %x, double* nocapture readonly %y) #0 {
42 %0 = bitcast double* %x to i8*
43 %1 = bitcast double* %y to i8*
44 tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 8 %0, i8* align 8 %1, i64 128, i1 false)
58 ; A2Q: ld {{[0-9]+}}, {{[0-9]+}}(4)
59 ; A2Q: std {{[0-9]+}}, {{[0-9]+}}(3)
63 ; Function Attrs: nounwind
64 define void @bar1(double* nocapture %x) #0 {
66 %0 = bitcast double* %x to i8*
67 tail call void @llvm.memset.p0i8.i64(i8* align 8 %0, i8 0, i64 128, i1 false)
82 ; A2Q: std {{[0-9]+}}, {{[0-9]+}}(3)
86 ; Function Attrs: nounwind
87 define void @bar2(double* nocapture %x) #0 {
89 %0 = bitcast double* %x to i8*
90 tail call void @llvm.memset.p0i8.i64(i8* align 32 %0, i8 0, i64 128, i1 false)
109 ; Function Attrs: nounwind
110 declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i1) #0
112 attributes #0 = { nounwind }