1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -O3 \
3 ; RUN: -mcpu=pwr10 -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr \
4 ; RUN: -disable-auto-paired-vec-st=false < %s | FileCheck %s
5 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -O3 \
6 ; RUN: -mcpu=pwr10 -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr \
7 ; RUN: -disable-auto-paired-vec-st=false < %s | FileCheck %s \
8 ; RUN: --check-prefix=CHECK-BE
9 define dso_local void @test(ptr %vpp, ptr %vp2) local_unnamed_addr #0 {
11 ; CHECK: # %bb.0: # %entry
12 ; CHECK-NEXT: stdu r1, -400(r1)
13 ; CHECK-NEXT: stfd f14, 256(r1) # 8-byte Folded Spill
14 ; CHECK-NEXT: stfd f15, 264(r1) # 8-byte Folded Spill
15 ; CHECK-NEXT: stfd f16, 272(r1) # 8-byte Folded Spill
16 ; CHECK-NEXT: stfd f17, 280(r1) # 8-byte Folded Spill
17 ; CHECK-NEXT: stfd f18, 288(r1) # 8-byte Folded Spill
18 ; CHECK-NEXT: stfd f19, 296(r1) # 8-byte Folded Spill
19 ; CHECK-NEXT: stfd f20, 304(r1) # 8-byte Folded Spill
20 ; CHECK-NEXT: stfd f21, 312(r1) # 8-byte Folded Spill
21 ; CHECK-NEXT: stfd f22, 320(r1) # 8-byte Folded Spill
22 ; CHECK-NEXT: stfd f23, 328(r1) # 8-byte Folded Spill
23 ; CHECK-NEXT: stfd f24, 336(r1) # 8-byte Folded Spill
24 ; CHECK-NEXT: stfd f25, 344(r1) # 8-byte Folded Spill
25 ; CHECK-NEXT: stfd f26, 352(r1) # 8-byte Folded Spill
26 ; CHECK-NEXT: stfd f27, 360(r1) # 8-byte Folded Spill
27 ; CHECK-NEXT: stfd f28, 368(r1) # 8-byte Folded Spill
28 ; CHECK-NEXT: stfd f29, 376(r1) # 8-byte Folded Spill
29 ; CHECK-NEXT: stfd f30, 384(r1) # 8-byte Folded Spill
30 ; CHECK-NEXT: stfd f31, 392(r1) # 8-byte Folded Spill
31 ; CHECK-NEXT: stxv v20, 64(r1) # 16-byte Folded Spill
32 ; CHECK-NEXT: stxv v21, 80(r1) # 16-byte Folded Spill
33 ; CHECK-NEXT: stxv v22, 96(r1) # 16-byte Folded Spill
34 ; CHECK-NEXT: stxv v23, 112(r1) # 16-byte Folded Spill
35 ; CHECK-NEXT: stxv v24, 128(r1) # 16-byte Folded Spill
36 ; CHECK-NEXT: stxv v25, 144(r1) # 16-byte Folded Spill
37 ; CHECK-NEXT: stxv v26, 160(r1) # 16-byte Folded Spill
38 ; CHECK-NEXT: stxv v27, 176(r1) # 16-byte Folded Spill
39 ; CHECK-NEXT: stxv v28, 192(r1) # 16-byte Folded Spill
40 ; CHECK-NEXT: stxv v29, 208(r1) # 16-byte Folded Spill
41 ; CHECK-NEXT: stxv v30, 224(r1) # 16-byte Folded Spill
42 ; CHECK-NEXT: stxv v31, 240(r1) # 16-byte Folded Spill
43 ; CHECK-NEXT: lxvp vsp34, 0(r3)
44 ; CHECK-NEXT: stxvp vsp34, 32(r1) # 32-byte Folded Spill
48 ; CHECK-NEXT: lxvp vsp34, 32(r1) # 32-byte Folded Reload
49 ; CHECK-NEXT: stxvp vsp34, 0(r4)
50 ; CHECK-NEXT: lxv v31, 240(r1) # 16-byte Folded Reload
51 ; CHECK-NEXT: lxv v30, 224(r1) # 16-byte Folded Reload
52 ; CHECK-NEXT: lxv v29, 208(r1) # 16-byte Folded Reload
53 ; CHECK-NEXT: lxv v28, 192(r1) # 16-byte Folded Reload
54 ; CHECK-NEXT: lxv v27, 176(r1) # 16-byte Folded Reload
55 ; CHECK-NEXT: lxv v26, 160(r1) # 16-byte Folded Reload
56 ; CHECK-NEXT: lxv v25, 144(r1) # 16-byte Folded Reload
57 ; CHECK-NEXT: lxv v24, 128(r1) # 16-byte Folded Reload
58 ; CHECK-NEXT: lxv v23, 112(r1) # 16-byte Folded Reload
59 ; CHECK-NEXT: lxv v22, 96(r1) # 16-byte Folded Reload
60 ; CHECK-NEXT: lxv v21, 80(r1) # 16-byte Folded Reload
61 ; CHECK-NEXT: lxv v20, 64(r1) # 16-byte Folded Reload
62 ; CHECK-NEXT: lfd f31, 392(r1) # 8-byte Folded Reload
63 ; CHECK-NEXT: lfd f30, 384(r1) # 8-byte Folded Reload
64 ; CHECK-NEXT: lfd f29, 376(r1) # 8-byte Folded Reload
65 ; CHECK-NEXT: lfd f28, 368(r1) # 8-byte Folded Reload
66 ; CHECK-NEXT: lfd f27, 360(r1) # 8-byte Folded Reload
67 ; CHECK-NEXT: lfd f26, 352(r1) # 8-byte Folded Reload
68 ; CHECK-NEXT: lfd f25, 344(r1) # 8-byte Folded Reload
69 ; CHECK-NEXT: lfd f24, 336(r1) # 8-byte Folded Reload
70 ; CHECK-NEXT: lfd f23, 328(r1) # 8-byte Folded Reload
71 ; CHECK-NEXT: lfd f22, 320(r1) # 8-byte Folded Reload
72 ; CHECK-NEXT: lfd f21, 312(r1) # 8-byte Folded Reload
73 ; CHECK-NEXT: lfd f20, 304(r1) # 8-byte Folded Reload
74 ; CHECK-NEXT: lfd f19, 296(r1) # 8-byte Folded Reload
75 ; CHECK-NEXT: lfd f18, 288(r1) # 8-byte Folded Reload
76 ; CHECK-NEXT: lfd f17, 280(r1) # 8-byte Folded Reload
77 ; CHECK-NEXT: lfd f16, 272(r1) # 8-byte Folded Reload
78 ; CHECK-NEXT: lfd f15, 264(r1) # 8-byte Folded Reload
79 ; CHECK-NEXT: lfd f14, 256(r1) # 8-byte Folded Reload
80 ; CHECK-NEXT: addi r1, r1, 400
83 ; CHECK-BE-LABEL: test:
84 ; CHECK-BE: # %bb.0: # %entry
85 ; CHECK-BE-NEXT: stdu r1, -416(r1)
86 ; CHECK-BE-NEXT: stfd f14, 272(r1) # 8-byte Folded Spill
87 ; CHECK-BE-NEXT: stfd f15, 280(r1) # 8-byte Folded Spill
88 ; CHECK-BE-NEXT: stfd f16, 288(r1) # 8-byte Folded Spill
89 ; CHECK-BE-NEXT: stfd f17, 296(r1) # 8-byte Folded Spill
90 ; CHECK-BE-NEXT: stfd f18, 304(r1) # 8-byte Folded Spill
91 ; CHECK-BE-NEXT: stfd f19, 312(r1) # 8-byte Folded Spill
92 ; CHECK-BE-NEXT: stfd f20, 320(r1) # 8-byte Folded Spill
93 ; CHECK-BE-NEXT: stfd f21, 328(r1) # 8-byte Folded Spill
94 ; CHECK-BE-NEXT: stfd f22, 336(r1) # 8-byte Folded Spill
95 ; CHECK-BE-NEXT: stfd f23, 344(r1) # 8-byte Folded Spill
96 ; CHECK-BE-NEXT: stfd f24, 352(r1) # 8-byte Folded Spill
97 ; CHECK-BE-NEXT: stfd f25, 360(r1) # 8-byte Folded Spill
98 ; CHECK-BE-NEXT: stfd f26, 368(r1) # 8-byte Folded Spill
99 ; CHECK-BE-NEXT: stfd f27, 376(r1) # 8-byte Folded Spill
100 ; CHECK-BE-NEXT: stfd f28, 384(r1) # 8-byte Folded Spill
101 ; CHECK-BE-NEXT: stfd f29, 392(r1) # 8-byte Folded Spill
102 ; CHECK-BE-NEXT: stfd f30, 400(r1) # 8-byte Folded Spill
103 ; CHECK-BE-NEXT: stfd f31, 408(r1) # 8-byte Folded Spill
104 ; CHECK-BE-NEXT: stxv v20, 80(r1) # 16-byte Folded Spill
105 ; CHECK-BE-NEXT: stxv v21, 96(r1) # 16-byte Folded Spill
106 ; CHECK-BE-NEXT: stxv v22, 112(r1) # 16-byte Folded Spill
107 ; CHECK-BE-NEXT: stxv v23, 128(r1) # 16-byte Folded Spill
108 ; CHECK-BE-NEXT: stxv v24, 144(r1) # 16-byte Folded Spill
109 ; CHECK-BE-NEXT: stxv v25, 160(r1) # 16-byte Folded Spill
110 ; CHECK-BE-NEXT: stxv v26, 176(r1) # 16-byte Folded Spill
111 ; CHECK-BE-NEXT: stxv v27, 192(r1) # 16-byte Folded Spill
112 ; CHECK-BE-NEXT: stxv v28, 208(r1) # 16-byte Folded Spill
113 ; CHECK-BE-NEXT: stxv v29, 224(r1) # 16-byte Folded Spill
114 ; CHECK-BE-NEXT: stxv v30, 240(r1) # 16-byte Folded Spill
115 ; CHECK-BE-NEXT: stxv v31, 256(r1) # 16-byte Folded Spill
116 ; CHECK-BE-NEXT: lxvp vsp34, 0(r3)
117 ; CHECK-BE-NEXT: stxvp vsp34, 48(r1) # 32-byte Folded Spill
118 ; CHECK-BE-NEXT: #APP
120 ; CHECK-BE-NEXT: #NO_APP
121 ; CHECK-BE-NEXT: lxvp vsp34, 48(r1) # 32-byte Folded Reload
122 ; CHECK-BE-NEXT: stxvp vsp34, 0(r4)
123 ; CHECK-BE-NEXT: lxv v31, 256(r1) # 16-byte Folded Reload
124 ; CHECK-BE-NEXT: lxv v30, 240(r1) # 16-byte Folded Reload
125 ; CHECK-BE-NEXT: lxv v29, 224(r1) # 16-byte Folded Reload
126 ; CHECK-BE-NEXT: lxv v28, 208(r1) # 16-byte Folded Reload
127 ; CHECK-BE-NEXT: lxv v27, 192(r1) # 16-byte Folded Reload
128 ; CHECK-BE-NEXT: lxv v26, 176(r1) # 16-byte Folded Reload
129 ; CHECK-BE-NEXT: lxv v25, 160(r1) # 16-byte Folded Reload
130 ; CHECK-BE-NEXT: lxv v24, 144(r1) # 16-byte Folded Reload
131 ; CHECK-BE-NEXT: lxv v23, 128(r1) # 16-byte Folded Reload
132 ; CHECK-BE-NEXT: lxv v22, 112(r1) # 16-byte Folded Reload
133 ; CHECK-BE-NEXT: lxv v21, 96(r1) # 16-byte Folded Reload
134 ; CHECK-BE-NEXT: lxv v20, 80(r1) # 16-byte Folded Reload
135 ; CHECK-BE-NEXT: lfd f31, 408(r1) # 8-byte Folded Reload
136 ; CHECK-BE-NEXT: lfd f30, 400(r1) # 8-byte Folded Reload
137 ; CHECK-BE-NEXT: lfd f29, 392(r1) # 8-byte Folded Reload
138 ; CHECK-BE-NEXT: lfd f28, 384(r1) # 8-byte Folded Reload
139 ; CHECK-BE-NEXT: lfd f27, 376(r1) # 8-byte Folded Reload
140 ; CHECK-BE-NEXT: lfd f26, 368(r1) # 8-byte Folded Reload
141 ; CHECK-BE-NEXT: lfd f25, 360(r1) # 8-byte Folded Reload
142 ; CHECK-BE-NEXT: lfd f24, 352(r1) # 8-byte Folded Reload
143 ; CHECK-BE-NEXT: lfd f23, 344(r1) # 8-byte Folded Reload
144 ; CHECK-BE-NEXT: lfd f22, 336(r1) # 8-byte Folded Reload
145 ; CHECK-BE-NEXT: lfd f21, 328(r1) # 8-byte Folded Reload
146 ; CHECK-BE-NEXT: lfd f20, 320(r1) # 8-byte Folded Reload
147 ; CHECK-BE-NEXT: lfd f19, 312(r1) # 8-byte Folded Reload
148 ; CHECK-BE-NEXT: lfd f18, 304(r1) # 8-byte Folded Reload
149 ; CHECK-BE-NEXT: lfd f17, 296(r1) # 8-byte Folded Reload
150 ; CHECK-BE-NEXT: lfd f16, 288(r1) # 8-byte Folded Reload
151 ; CHECK-BE-NEXT: lfd f15, 280(r1) # 8-byte Folded Reload
152 ; CHECK-BE-NEXT: lfd f14, 272(r1) # 8-byte Folded Reload
153 ; CHECK-BE-NEXT: addi r1, r1, 416
156 %0 = tail call <256 x i1> @llvm.ppc.vsx.lxvp(ptr %vpp)
157 tail call void asm sideeffect "nop", "~{memory},~{vs0},~{vs1},~{vs2},~{vs3},~{vs4},~{vs5},~{vs6},~{vs7},~{vs8},~{vs9},~{vs10},~{vs11},~{vs12},~{vs13},~{vs14},~{vs15},~{vs16},~{vs17},~{vs18},~{vs19},~{vs20},~{vs21},~{vs22},~{vs23},~{vs24},~{vs25},~{vs26},~{vs27},~{vs28},~{vs29},~{vs30},~{vs31},~{vs32},~{vs33},~{vs34},~{vs35},~{vs36},~{vs37},~{vs38},~{vs39},~{vs40},~{vs41},~{vs42},~{vs43},~{vs44},~{vs45},~{vs46},~{vs47},~{vs48},~{vs49},~{vs50},~{vs51},~{vs52},~{vs53},~{vs54},~{vs55},~{vs56},~{vs57},~{vs58},~{vs59},~{vs60},~{vs61},~{vs62},~{vs63}"()
158 tail call void @llvm.ppc.vsx.stxvp(<256 x i1> %0, ptr %vp2)
162 declare <256 x i1> @llvm.ppc.vsx.lxvp(ptr) #1
164 declare void @llvm.ppc.vsx.stxvp(<256 x i1>, ptr) #2
166 attributes #0 = { nounwind }