annotate test/CodeGen/AMDGPU/function-args.ll @ 134:3a76565eade5 LLVM5.0.1

update 5.0.1
author mir3636
date Sat, 17 Feb 2018 09:57:20 +0900
parents 803732b1fca8
children c2174574ed3a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
1 ; RUN: llc -march=amdgcn -mcpu=hawaii -verify-machineinstrs < %s | FileCheck -enable-var-scope -check-prefixes=GCN,CI,CIVI %s
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
2 ; RUN: llc -march=amdgcn -mcpu=fiji -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -enable-var-scope -check-prefixes=GCN,VI,CIVI,GFX89 %s
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
3 ; RUN: llc -march=amdgcn -mcpu=gfx900 -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -enable-var-scope -check-prefixes=GCN,VI,GFX89 %s
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 ; GCN-LABEL: {{^}}void_func_i1:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 ; GCN: v_and_b32_e32 v0, 1, v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 ; GCN: buffer_store_byte v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 define void @void_func_i1(i1 %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 store i1 %arg0, i1 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 ; GCN-LABEL: {{^}}void_func_i1_zeroext:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 ; GCN: s_waitcnt
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 ; GCN-NEXT: v_or_b32_e32 v0, 12, v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 ; GCN-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 ; GCN: buffer_store_dword v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 define void @void_func_i1_zeroext(i1 zeroext %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19 %ext = zext i1 %arg0 to i32
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 %add = add i32 %ext, 12
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21 store i32 %add, i32 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
24
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
25 ; GCN-LABEL: {{^}}void_func_i1_signext:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
26 ; GCN: s_waitcnt
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
27 ; GCN-NEXT: v_add_{{i|u}}32_e32 v0, {{(vcc, )?}}12, v0
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
28 ; GCN-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
29 ; GCN: buffer_store_dword v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
30 define void @void_func_i1_signext(i1 signext %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
31 %ext = sext i1 %arg0 to i32
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
32 %add = add i32 %ext, 12
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
33 store i32 %add, i32 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
34 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
35 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
36
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
37 ; GCN-LABEL: {{^}}i1_arg_i1_use:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
38 ; GCN: v_and_b32_e32 v0, 1, v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
39 ; GCN: v_cmp_eq_u32_e32 vcc, 1, v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
40 ; GCN: s_xor_b64 s{{\[[0-9]+:[0-9]+\]}}, vcc, -1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
41 define void @i1_arg_i1_use(i1 %arg) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
42 bb:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
43 br i1 %arg, label %bb2, label %bb1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
44
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
45 bb1:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
46 store volatile i32 0, i32 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
47 br label %bb2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
48
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
49 bb2:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
50 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
51 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
52
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
53 ; GCN-LABEL: {{^}}void_func_i8:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
54 ; GCN-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
55 ; GCN: buffer_store_byte v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
56 define void @void_func_i8(i8 %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
57 store i8 %arg0, i8 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
58 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
59 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
60
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
61 ; GCN-LABEL: {{^}}void_func_i8_zeroext:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
62 ; GCN-NOT: and_b32
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
63 ; GCN: v_add_{{i|u}}32_e32 v0, {{(vcc, )?}}12, v0
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
64 define void @void_func_i8_zeroext(i8 zeroext %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
65 %ext = zext i8 %arg0 to i32
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
66 %add = add i32 %ext, 12
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
67 store i32 %add, i32 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
68 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
69 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
70
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
71 ; GCN-LABEL: {{^}}void_func_i8_signext:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
72 ; GCN-NOT: v_bfe_i32
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
73 ; GCN: v_add_{{i|u}}32_e32 v0, {{(vcc, )?}}12, v0
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
74 define void @void_func_i8_signext(i8 signext %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
75 %ext = sext i8 %arg0 to i32
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
76 %add = add i32 %ext, 12
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
77 store i32 %add, i32 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
78 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
79 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
80
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
81 ; GCN-LABEL: {{^}}void_func_i16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
82 ; GCN: buffer_store_short v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
83 define void @void_func_i16(i16 %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
84 store i16 %arg0, i16 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
85 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
86 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
87
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
88 ; GCN-LABEL: {{^}}void_func_i16_zeroext:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
89 ; GCN-NOT: v0
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
90 ; GCN: v_add_{{i|u}}32_e32 v0, {{(vcc, )?}}12, v0
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
91 define void @void_func_i16_zeroext(i16 zeroext %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
92 %ext = zext i16 %arg0 to i32
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
93 %add = add i32 %ext, 12
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
94 store i32 %add, i32 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
95 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
96 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
97
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
98 ; GCN-LABEL: {{^}}void_func_i16_signext:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
99 ; GCN-NOT: v0
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
100 ; GCN: v_add_{{i|u}}32_e32 v0, {{(vcc, )?}}12, v0
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
101 define void @void_func_i16_signext(i16 signext %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
102 %ext = sext i16 %arg0 to i32
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
103 %add = add i32 %ext, 12
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
104 store i32 %add, i32 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
105 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
106 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
107
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
108 ; GCN-LABEL: {{^}}void_func_i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
109 ; GCN-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
110 ; GCN: buffer_store_dword v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
111 define void @void_func_i32(i32 %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
112 store i32 %arg0, i32 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
113 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
114 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
115
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
116 ; GCN-LABEL: {{^}}void_func_i64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
117 ; GCN-NOT: v[0:1]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
118 ; GCN-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
119 ; GCN-NOT: v1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
120 ; GCN: buffer_store_dwordx2 v[0:1], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
121 define void @void_func_i64(i64 %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
122 store i64 %arg0, i64 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
123 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
124 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
125
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
126 ; GCN-LABEL: {{^}}void_func_f16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
127 ; VI-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
128 ; CI: v_cvt_f16_f32_e32 v0, v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
129 ; GCN: buffer_store_short v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
130 define void @void_func_f16(half %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
131 store half %arg0, half addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
132 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
133 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
134
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
135 ; GCN-LABEL: {{^}}void_func_f32
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
136 ; GCN-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
137 ; GCN: buffer_store_dword v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
138 define void @void_func_f32(float %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
139 store float %arg0, float addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
140 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
141 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
142
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
143 ; GCN-LABEL: {{^}}void_func_f64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
144 ; GCN-NOT: v[0:1]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
145 ; GCN-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
146 ; GCN-NOT: v1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
147 ; GCN: buffer_store_dwordx2 v[0:1], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
148 define void @void_func_f64(double %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
149 store double %arg0, double addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
150 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
151 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
152
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
153 ; GCN-LABEL: {{^}}void_func_v2i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
154 ; GCN-NOT: v[0:1]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
155 ; GCN-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
156 ; GCN-NOT: v1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
157 ; GCN: buffer_store_dwordx2 v[0:1], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
158 define void @void_func_v2i32(<2 x i32> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
159 store <2 x i32> %arg0, <2 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
160 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
161 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
162
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
163 ; GCN-LABEL: {{^}}void_func_v3i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
164 ; GCN-DAG: buffer_store_dword v2, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
165 ; GCN-DAG: buffer_store_dwordx2 v[0:1], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
166 define void @void_func_v3i32(<3 x i32> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
167 store <3 x i32> %arg0, <3 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
168 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
169 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
170
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
171 ; GCN-LABEL: {{^}}void_func_v4i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
172 ; GCN: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
173 define void @void_func_v4i32(<4 x i32> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
174 store <4 x i32> %arg0, <4 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
175 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
176 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
177
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
178 ; GCN-LABEL: {{^}}void_func_v5i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
179 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
180 ; GCN-DAG: buffer_store_dword v4, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
181 define void @void_func_v5i32(<5 x i32> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
182 store <5 x i32> %arg0, <5 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
183 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
184 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
185
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
186 ; GCN-LABEL: {{^}}void_func_v8i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
187 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
188 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
189 define void @void_func_v8i32(<8 x i32> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
190 store <8 x i32> %arg0, <8 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
191 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
192 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
193
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
194 ; GCN-LABEL: {{^}}void_func_v16i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
195 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
196 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
197 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
198 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
199 define void @void_func_v16i32(<16 x i32> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
200 store <16 x i32> %arg0, <16 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
201 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
202 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
203
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
204 ; GCN-LABEL: {{^}}void_func_v32i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
205 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
206 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
207 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
208 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
209 ; GCN-DAG: buffer_store_dwordx4 v[16:19], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
210 ; GCN-DAG: buffer_store_dwordx4 v[20:23], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
211 ; GCN-DAG: buffer_store_dwordx4 v[24:27], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
212 ; GCN-DAG: buffer_store_dwordx4 v[28:31], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
213 define void @void_func_v32i32(<32 x i32> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
214 store <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
215 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
216 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
217
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
218 ; 1 over register limit
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
219 ; GCN-LABEL: {{^}}void_func_v33i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
220 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
221 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
222 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
223 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
224 ; GCN-DAG: buffer_load_dword [[STACKLOAD:v[0-9]+]], off, s[0:3], s5
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
225 ; GCN-DAG: buffer_store_dwordx4 v[16:19], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
226 ; GCN-DAG: buffer_store_dwordx4 v[20:23], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
227 ; GCN-DAG: buffer_store_dwordx4 v[24:27], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
228 ; GCN-DAG: buffer_store_dwordx4 v[28:31], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
229 ; GCN: buffer_store_dword [[STACKLOAD]], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
230 define void @void_func_v33i32(<33 x i32> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
231 store <33 x i32> %arg0, <33 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
232 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
233 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
234
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
235 ; GCN-LABEL: {{^}}void_func_v2i64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
236 ; GCN: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
237 define void @void_func_v2i64(<2 x i64> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
238 store <2 x i64> %arg0, <2 x i64> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
239 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
240 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
241
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
242 ; GCN-LABEL: {{^}}void_func_v3i64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
243 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
244 ; GCN-DAG: buffer_store_dwordx2 v[4:5], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
245 define void @void_func_v3i64(<3 x i64> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
246 store <3 x i64> %arg0, <3 x i64> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
247 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
248 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
249
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
250 ; GCN-LABEL: {{^}}void_func_v4i64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
251 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
252 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
253 define void @void_func_v4i64(<4 x i64> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
254 store <4 x i64> %arg0, <4 x i64> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
255 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
256 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
257
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
258 ; GCN-LABEL: {{^}}void_func_v5i64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
259 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
260 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
261 ; GCN-DAG: buffer_store_dwordx2 v[8:9], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
262 define void @void_func_v5i64(<5 x i64> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
263 store <5 x i64> %arg0, <5 x i64> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
264 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
265 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
266
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
267 ; GCN-LABEL: {{^}}void_func_v8i64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
268 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
269 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
270 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
271 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
272 define void @void_func_v8i64(<8 x i64> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
273 store <8 x i64> %arg0, <8 x i64> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
274 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
275 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
276
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
277 ; GCN-LABEL: {{^}}void_func_v16i64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
278 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
279 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
280 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
281 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
282 ; GCN-DAG: buffer_store_dwordx4 v[16:19], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
283 ; GCN-DAG: buffer_store_dwordx4 v[20:23], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
284 ; GCN-DAG: buffer_store_dwordx4 v[24:27], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
285 ; GCN-DAG: buffer_store_dwordx4 v[28:31], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
286 define void @void_func_v16i64(<16 x i64> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
287 store <16 x i64> %arg0, <16 x i64> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
288 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
289 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
290
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
291 ; GCN-LABEL: {{^}}void_func_v2i16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
292 ; GFX9-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
293 ; GFX9: buffer_store_dword v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
294 define void @void_func_v2i16(<2 x i16> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
295 store <2 x i16> %arg0, <2 x i16> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
296 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
297 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
298
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
299 ; GCN-LABEL: {{^}}void_func_v3i16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
300 ; GCN-DAG: buffer_store_dword v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
301 ; GCN-DAG: buffer_store_short v2, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
302 define void @void_func_v3i16(<3 x i16> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
303 store <3 x i16> %arg0, <3 x i16> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
304 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
305 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
306
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
307 ; GCN-LABEL: {{^}}void_func_v4i16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
308 ; GFX9-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
309 ; GFX9-NOT: v1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
310 ; GFX9: buffer_store_dwordx2 v[0:1], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
311 define void @void_func_v4i16(<4 x i16> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
312 store <4 x i16> %arg0, <4 x i16> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
313 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
314 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
315
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
316 ; GCN-LABEL: {{^}}void_func_v5i16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
317 ; GCN-DAG: buffer_store_short v4, off,
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
318 ; GCN-DAG: buffer_store_dwordx2 v[1:2], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
319 define void @void_func_v5i16(<5 x i16> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
320 store <5 x i16> %arg0, <5 x i16> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
321 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
322 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
323
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
324 ; GCN-LABEL: {{^}}void_func_v8i16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
325 ; GFX9-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
326 define void @void_func_v8i16(<8 x i16> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
327 store <8 x i16> %arg0, <8 x i16> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
328 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
329 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
330
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
331 ; GCN-LABEL: {{^}}void_func_v16i16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
332 ; GFX9-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
333 ; GFX9-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
334 define void @void_func_v16i16(<16 x i16> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
335 store <16 x i16> %arg0, <16 x i16> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
336 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
337 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
338
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
339 ; GCN-LABEL: {{^}}void_func_v2f32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
340 ; GCN-NOT: v[0:1]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
341 ; GCN-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
342 ; GCN-NOT: v1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
343 ; GCN: buffer_store_dwordx2 v[0:1], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
344 define void @void_func_v2f32(<2 x float> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
345 store <2 x float> %arg0, <2 x float> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
346 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
347 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
348
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
349 ; GCN-LABEL: {{^}}void_func_v3f32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
350 ; GCN-DAG: buffer_store_dword v2, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
351 ; GCN-DAG: buffer_store_dwordx2 v[0:1], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
352 define void @void_func_v3f32(<3 x float> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
353 store <3 x float> %arg0, <3 x float> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
354 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
355 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
356
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
357 ; GCN-LABEL: {{^}}void_func_v4f32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
358 ; GCN: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
359 define void @void_func_v4f32(<4 x float> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
360 store <4 x float> %arg0, <4 x float> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
361 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
362 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
363
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
364 ; GCN-LABEL: {{^}}void_func_v8f32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
365 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
366 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
367 define void @void_func_v8f32(<8 x float> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
368 store <8 x float> %arg0, <8 x float> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
369 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
370 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
371
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
372 ; GCN-LABEL: {{^}}void_func_v16f32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
373 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
374 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
375 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
376 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
377 define void @void_func_v16f32(<16 x float> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
378 store <16 x float> %arg0, <16 x float> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
379 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
380 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
381
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
382 ; GCN-LABEL: {{^}}void_func_v2f64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
383 ; GCN: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
384 define void @void_func_v2f64(<2 x double> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
385 store <2 x double> %arg0, <2 x double> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
386 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
387 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
388
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
389 ; GCN-LABEL: {{^}}void_func_v3f64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
390 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
391 ; GCN-DAG: buffer_store_dwordx2 v[4:5], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
392 define void @void_func_v3f64(<3 x double> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
393 store <3 x double> %arg0, <3 x double> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
394 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
395 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
396
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
397 ; GCN-LABEL: {{^}}void_func_v4f64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
398 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
399 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
400 define void @void_func_v4f64(<4 x double> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
401 store <4 x double> %arg0, <4 x double> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
402 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
403 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
404
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
405 ; GCN-LABEL: {{^}}void_func_v8f64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
406 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
407 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
408 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
409 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
410 define void @void_func_v8f64(<8 x double> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
411 store <8 x double> %arg0, <8 x double> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
412 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
413 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
414
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
415 ; GCN-LABEL: {{^}}void_func_v16f64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
416 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
417 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
418 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
419 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
420 ; GCN-DAG: buffer_store_dwordx4 v[16:19], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
421 ; GCN-DAG: buffer_store_dwordx4 v[20:23], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
422 ; GCN-DAG: buffer_store_dwordx4 v[24:27], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
423 ; GCN-DAG: buffer_store_dwordx4 v[28:31], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
424 define void @void_func_v16f64(<16 x double> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
425 store <16 x double> %arg0, <16 x double> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
426 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
427 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
428
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
429 ; GCN-LABEL: {{^}}void_func_v2f16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
430 ; GFX9-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
431 ; GFX9: buffer_store_dword v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
432 define void @void_func_v2f16(<2 x half> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
433 store <2 x half> %arg0, <2 x half> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
434 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
435 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
436
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
437 ; GCN-LABEL: {{^}}void_func_v3f16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
438 ; GFX9-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
439 ; GCN-DAG: buffer_store_dword v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
440 ; GCN-DAG: buffer_store_short v2, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
441 define void @void_func_v3f16(<3 x half> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
442 store <3 x half> %arg0, <3 x half> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
443 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
444 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
445
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
446 ; GCN-LABEL: {{^}}void_func_v4f16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
447 ; GFX9-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
448 ; GFX9-NOT: v1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
449 ; GFX9-NOT: v[0:1]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
450 ; GFX9: buffer_store_dwordx2 v[0:1], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
451 define void @void_func_v4f16(<4 x half> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
452 store <4 x half> %arg0, <4 x half> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
453 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
454 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
455
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
456 ; GCN-LABEL: {{^}}void_func_v8f16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
457 ; GFX9-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
458 ; GFX9-NOT: v1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
459 ; GFX9: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
460 define void @void_func_v8f16(<8 x half> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
461 store <8 x half> %arg0, <8 x half> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
462 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
463 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
464
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
465 ; GCN-LABEL: {{^}}void_func_v16f16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
466 ; GFX9-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
467 ; GFX9-NOT: v1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
468 ; GFX9-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
469 ; GFX9-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
470 define void @void_func_v16f16(<16 x half> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
471 store <16 x half> %arg0, <16 x half> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
472 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
473 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
474
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
475 ; Make sure there is no alignment requirement for passed vgprs.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
476 ; GCN-LABEL: {{^}}void_func_i32_i64_i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
477 ; GCN-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
478 ; GCN: buffer_store_dword v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
479 ; GCN: buffer_store_dwordx2 v[1:2]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
480 ; GCN: buffer_store_dword v3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
481 define void @void_func_i32_i64_i32(i32 %arg0, i64 %arg1, i32 %arg2) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
482 store volatile i32 %arg0, i32 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
483 store volatile i64 %arg1, i64 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
484 store volatile i32 %arg2, i32 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
485 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
486 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
487
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
488 ; GCN-LABEL: {{^}}void_func_struct_i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
489 ; GCN-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
490 ; GCN: buffer_store_dword v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
491 define void @void_func_struct_i32({ i32 } %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
492 store { i32 } %arg0, { i32 } addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
493 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
494 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
495
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
496 ; GCN-LABEL: {{^}}void_func_struct_i8_i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
497 ; GCN-DAG: buffer_store_byte v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
498 ; GCN-DAG: buffer_store_dword v1, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
499 define void @void_func_struct_i8_i32({ i8, i32 } %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
500 store { i8, i32 } %arg0, { i8, i32 } addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
501 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
502 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
503
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
504 ; GCN-LABEL: {{^}}void_func_byval_struct_i8_i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
505 ; GCN-DAG: buffer_load_ubyte v[[ELT0:[0-9]+]], off, s[0:3], s5 offset:4{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
506 ; GCN-DAG: buffer_load_dword v[[ELT1:[0-9]+]], off, s[0:3], s5 offset:8{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
507 ; GCN-DAG: buffer_store_dword v[[ELT1]]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
508 ; GCN-DAG: buffer_store_byte v[[ELT0]]
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
509 define void @void_func_byval_struct_i8_i32({ i8, i32 } addrspace(5)* byval %arg0) #0 {
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
510 %arg0.load = load { i8, i32 }, { i8, i32 } addrspace(5)* %arg0
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
511 store { i8, i32 } %arg0.load, { i8, i32 } addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
512 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
513 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
514
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
515 ; GCN-LABEL: {{^}}void_func_byval_struct_i8_i32_x2:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
516 ; GCN: buffer_load_ubyte v[[ELT0_0:[0-9]+]], off, s[0:3], s5 offset:4{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
517 ; GCN: buffer_load_dword v[[ELT1_0:[0-9]+]], off, s[0:3], s5 offset:8{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
518 ; GCN: buffer_load_ubyte v[[ELT0_1:[0-9]+]], off, s[0:3], s5 offset:12{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
519 ; GCN: buffer_load_dword v[[ELT1_1:[0-9]+]], off, s[0:3], s5 offset:16{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
520
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
521 ; GCN: ds_write_b32 v0, v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
522 ; GCN: s_setpc_b64
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
523 define void @void_func_byval_struct_i8_i32_x2({ i8, i32 } addrspace(5)* byval %arg0, { i8, i32 } addrspace(5)* byval %arg1, i32 %arg2) #0 {
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
524 %arg0.load = load volatile { i8, i32 }, { i8, i32 } addrspace(5)* %arg0
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
525 %arg1.load = load volatile { i8, i32 }, { i8, i32 } addrspace(5)* %arg1
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
526 store volatile { i8, i32 } %arg0.load, { i8, i32 } addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
527 store volatile { i8, i32 } %arg1.load, { i8, i32 } addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
528 store volatile i32 %arg2, i32 addrspace(3)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
529 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
530 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
531
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
532 ; GCN-LABEL: {{^}}void_func_byval_i32_byval_i64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
533 ; GCN-DAG: buffer_load_dword v[[ARG0_LOAD:[0-9]+]], off, s[0:3], s5 offset:4{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
534 ; GCN-DAG: buffer_load_dword v[[ARG1_LOAD0:[0-9]+]], off, s[0:3], s5 offset:8{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
535 ; GCN-DAG: buffer_load_dword v[[ARG1_LOAD1:[0-9]+]], off, s[0:3], s5 offset:12{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
536 ; GCN-DAG: buffer_store_dword v[[ARG0_LOAD]], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
537 ; GCN-DAG: buffer_store_dwordx2 v{{\[}}[[ARG1_LOAD0]]:[[ARG1_LOAD1]]{{\]}}, off
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
538 define void @void_func_byval_i32_byval_i64(i32 addrspace(5)* byval %arg0, i64 addrspace(5)* byval %arg1) #0 {
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
539 %arg0.load = load i32, i32 addrspace(5)* %arg0
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
540 %arg1.load = load i64, i64 addrspace(5)* %arg1
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
541 store i32 %arg0.load, i32 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
542 store i64 %arg1.load, i64 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
543 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
544 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
545
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
546 ; GCN-LABEL: {{^}}void_func_v32i32_i32_i64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
547 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
548 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
549 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
550 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
551 ; GCN-DAG: buffer_store_dwordx4 v[16:19], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
552 ; GCN-DAG: buffer_store_dwordx4 v[20:23], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
553 ; GCN-DAG: buffer_store_dwordx4 v[24:27], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
554 ; GCN-DAG: buffer_store_dwordx4 v[28:31], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
555 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1:[0-9]+]], off, s[0:3], s5 offset:4{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
556 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_0:[0-9]+]], off, s[0:3], s5 offset:8
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
557 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_1:[0-9]+]], off, s[0:3], s5 offset:12
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
558
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
559 ; GCN: buffer_store_dword v[[LOAD_ARG1]]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
560 ; GCN: buffer_store_dwordx2 v{{\[}}[[LOAD_ARG2_0]]:[[LOAD_ARG2_1]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
561 define void @void_func_v32i32_i32_i64(<32 x i32> %arg0, i32 %arg1, i64 %arg2) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
562 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
563 store volatile i32 %arg1, i32 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
564 store volatile i64 %arg2, i64 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
565 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
566 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
567
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
568 ; FIXME: Different ext load types on CI vs. VI
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
569 ; GCN-LABEL: {{^}}void_func_v32i32_i1_i8_i16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
570 ; GCN-DAG: buffer_load_ubyte [[LOAD_ARG1:v[0-9]+]], off, s[0:3], s5 offset:4{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
571 ; VI-DAG: buffer_load_ushort [[LOAD_ARG2:v[0-9]+]], off, s[0:3], s5 offset:8{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
572 ; VI-DAG: buffer_load_ushort [[LOAD_ARG3:v[0-9]+]], off, s[0:3], s5 offset:12{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
573 ; VI-DAG: buffer_load_ushort [[LOAD_ARG4:v[0-9]+]], off, s[0:3], s5 offset:16{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
574
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
575 ; CI-DAG: buffer_load_dword [[LOAD_ARG2:v[0-9]+]], off, s[0:3], s5 offset:8{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
576 ; CI-DAG: buffer_load_dword [[LOAD_ARG3:v[0-9]+]], off, s[0:3], s5 offset:12{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
577 ; CI-DAG: buffer_load_dword [[LOAD_ARG4:v[0-9]+]], off, s[0:3], s5 offset:16{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
578
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
579 ; GCN-DAG: v_and_b32_e32 [[TRUNC_ARG1_I1:v[0-9]+]], 1, [[LOAD_ARG1]]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
580 ; CI-DAG: v_cvt_f16_f32_e32 [[CVT_ARG4:v[0-9]+]], [[LOAD_ARG4]]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
581
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
582 ; GCN: buffer_store_byte [[TRUNC_ARG1_I1]], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
583 ; GCN: buffer_store_byte [[LOAD_ARG2]], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
584 ; GCN: buffer_store_short [[LOAD_ARG3]], off
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
585 ; GFX89 buffer_store_short [[LOAD_ARG4]], off
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
586
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
587 ; CI: buffer_store_short [[CVT_ARG4]], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
588 define void @void_func_v32i32_i1_i8_i16(<32 x i32> %arg0, i1 %arg1, i8 %arg2, i16 %arg3, half %arg4) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
589 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
590 store volatile i1 %arg1, i1 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
591 store volatile i8 %arg2, i8 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
592 store volatile i16 %arg3, i16 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
593 store volatile half %arg4, half addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
594 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
595 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
596
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
597 ; GCN-LABEL: {{^}}void_func_v32i32_v2i32_v2f32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
598 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_0:[0-9]+]], off, s[0:3], s5 offset:4{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
599 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_1:[0-9]+]], off, s[0:3], s5 offset:8{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
600 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_0:[0-9]+]], off, s[0:3], s5 offset:12{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
601 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_1:[0-9]+]], off, s[0:3], s5 offset:16{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
602
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
603 ; GCN: buffer_store_dwordx2 v{{\[}}[[LOAD_ARG1_0]]:[[LOAD_ARG1_1]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
604 ; GCN: buffer_store_dwordx2 v{{\[}}[[LOAD_ARG2_0]]:[[LOAD_ARG2_1]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
605 define void @void_func_v32i32_v2i32_v2f32(<32 x i32> %arg0, <2 x i32> %arg1, <2 x float> %arg2) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
606 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
607 store volatile <2 x i32> %arg1, <2 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
608 store volatile <2 x float> %arg2, <2 x float> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
609 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
610 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
611
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
612 ; GCN-LABEL: {{^}}void_func_v32i32_v2i16_v2f16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
613 ; GFX9-DAG: buffer_load_dword [[LOAD_ARG1:v[0-9]+]], off, s[0:3], s5 offset:4{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
614 ; GFX9-DAG: buffer_load_dword [[LOAD_ARG2:v[0-9]+]], off, s[0:3], s5 offset:8{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
615 ; GFX9: buffer_store_dword [[LOAD_ARG1]], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
616 ; GFX9: buffer_store_short [[LOAD_ARG2]], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
617 define void @void_func_v32i32_v2i16_v2f16(<32 x i32> %arg0, <2 x i16> %arg1, <2 x half> %arg2) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
618 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
619 store volatile <2 x i16> %arg1, <2 x i16> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
620 store volatile <2 x half> %arg2, <2 x half> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
621 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
622 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
623
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
624 ; GCN-LABEL: {{^}}void_func_v32i32_v2i64_v2f64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
625 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_0:[0-9]+]], off, s[0:3], s5 offset:4{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
626 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_1:[0-9]+]], off, s[0:3], s5 offset:8{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
627 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_2:[0-9]+]], off, s[0:3], s5 offset:12{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
628 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_3:[0-9]+]], off, s[0:3], s5 offset:16{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
629
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
630 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_0:[0-9]+]], off, s[0:3], s5 offset:20{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
631 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_1:[0-9]+]], off, s[0:3], s5 offset:24{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
632 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_2:[0-9]+]], off, s[0:3], s5 offset:28{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
633 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_3:[0-9]+]], off, s[0:3], s5 offset:32{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
634
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
635 ; GCN: buffer_store_dwordx4 v{{\[}}[[LOAD_ARG1_0]]:[[LOAD_ARG1_3]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
636 ; GCN: buffer_store_dwordx4 v{{\[}}[[LOAD_ARG2_0]]:[[LOAD_ARG2_3]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
637 define void @void_func_v32i32_v2i64_v2f64(<32 x i32> %arg0, <2 x i64> %arg1, <2 x double> %arg2) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
638 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
639 store volatile <2 x i64> %arg1, <2 x i64> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
640 store volatile <2 x double> %arg2, <2 x double> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
641 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
642 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
643
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
644 ; GCN-LABEL: {{^}}void_func_v32i32_v4i32_v4f32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
645 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_0:[0-9]+]], off, s[0:3], s5 offset:4{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
646 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_1:[0-9]+]], off, s[0:3], s5 offset:8{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
647 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_2:[0-9]+]], off, s[0:3], s5 offset:12{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
648 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_3:[0-9]+]], off, s[0:3], s5 offset:16{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
649
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
650 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_0:[0-9]+]], off, s[0:3], s5 offset:20{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
651 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_1:[0-9]+]], off, s[0:3], s5 offset:24{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
652 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_2:[0-9]+]], off, s[0:3], s5 offset:28{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
653 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_3:[0-9]+]], off, s[0:3], s5 offset:32{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
654
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
655 ; GCN: buffer_store_dwordx4 v{{\[}}[[LOAD_ARG1_0]]:[[LOAD_ARG1_3]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
656 ; GCN: buffer_store_dwordx4 v{{\[}}[[LOAD_ARG2_0]]:[[LOAD_ARG2_3]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
657 define void @void_func_v32i32_v4i32_v4f32(<32 x i32> %arg0, <4 x i32> %arg1, <4 x float> %arg2) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
658 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
659 store volatile <4 x i32> %arg1, <4 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
660 store volatile <4 x float> %arg2, <4 x float> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
661 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
662 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
663
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
664 ; GCN-LABEL: {{^}}void_func_v32i32_v8i32_v8f32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
665 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_0:[0-9]+]], off, s[0:3], s5 offset:4{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
666 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_1:[0-9]+]], off, s[0:3], s5 offset:8{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
667 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_2:[0-9]+]], off, s[0:3], s5 offset:12{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
668 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_3:[0-9]+]], off, s[0:3], s5 offset:16{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
669 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_4:[0-9]+]], off, s[0:3], s5 offset:20{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
670 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_5:[0-9]+]], off, s[0:3], s5 offset:24{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
671 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_6:[0-9]+]], off, s[0:3], s5 offset:28{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
672 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_7:[0-9]+]], off, s[0:3], s5 offset:32{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
673
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
674 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_0:[0-9]+]], off, s[0:3], s5 offset:36{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
675 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_1:[0-9]+]], off, s[0:3], s5 offset:40{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
676 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_2:[0-9]+]], off, s[0:3], s5 offset:44{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
677 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_3:[0-9]+]], off, s[0:3], s5 offset:48{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
678 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_4:[0-9]+]], off, s[0:3], s5 offset:52{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
679 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_5:[0-9]+]], off, s[0:3], s5 offset:56{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
680 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_6:[0-9]+]], off, s[0:3], s5 offset:60{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
681 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_7:[0-9]+]], off, s[0:3], s5 offset:64{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
682
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
683 ; GCN: buffer_store_dwordx4 v{{\[}}[[LOAD_ARG1_4]]:[[LOAD_ARG1_7]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
684 ; GCN: buffer_store_dwordx4 v{{\[}}[[LOAD_ARG1_0]]:[[LOAD_ARG1_3]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
685 ; GCN: buffer_store_dwordx4 v{{\[}}[[LOAD_ARG2_4]]:[[LOAD_ARG2_7]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
686 ; GCN: buffer_store_dwordx4 v{{\[}}[[LOAD_ARG2_0]]:[[LOAD_ARG2_3]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
687 define void @void_func_v32i32_v8i32_v8f32(<32 x i32> %arg0, <8 x i32> %arg1, <8 x float> %arg2) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
688 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
689 store volatile <8 x i32> %arg1, <8 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
690 store volatile <8 x float> %arg2, <8 x float> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
691 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
692 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
693
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
694 ; GCN-LABEL: {{^}}void_func_v32i32_v16i32_v16f32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
695 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_0:[0-9]+]], off, s[0:3], s5 offset:4{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
696 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_1:[0-9]+]], off, s[0:3], s5 offset:8{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
697 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_2:[0-9]+]], off, s[0:3], s5 offset:12{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
698 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_:[0-9]+]], off, s[0:3], s5 offset:16{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
699 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_4:[0-9]+]], off, s[0:3], s5 offset:20{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
700 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_5:[0-9]+]], off, s[0:3], s5 offset:24{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
701 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_6:[0-9]+]], off, s[0:3], s5 offset:28{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
702 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_7:[0-9]+]], off, s[0:3], s5 offset:32{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
703 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_8:[0-9]+]], off, s[0:3], s5 offset:36{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
704 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_9:[0-9]+]], off, s[0:3], s5 offset:40{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
705 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_10:[0-9]+]], off, s[0:3], s5 offset:44{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
706 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_11:[0-9]+]], off, s[0:3], s5 offset:48{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
707 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_12:[0-9]+]], off, s[0:3], s5 offset:52{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
708 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_13:[0-9]+]], off, s[0:3], s5 offset:56{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
709 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_14:[0-9]+]], off, s[0:3], s5 offset:60{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
710 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_15:[0-9]+]], off, s[0:3], s5 offset:64{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
711
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
712 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_0:[0-9]+]], off, s[0:3], s5 offset:68{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
713 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_1:[0-9]+]], off, s[0:3], s5 offset:72{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
714 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_2:[0-9]+]], off, s[0:3], s5 offset:76{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
715 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_3:[0-9]+]], off, s[0:3], s5 offset:80{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
716 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_4:[0-9]+]], off, s[0:3], s5 offset:84{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
717 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_5:[0-9]+]], off, s[0:3], s5 offset:88{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
718 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_6:[0-9]+]], off, s[0:3], s5 offset:92{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
719 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_7:[0-9]+]], off, s[0:3], s5 offset:96{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
720 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_8:[0-9]+]], off, s[0:3], s5 offset:100{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
721 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_9:[0-9]+]], off, s[0:3], s5 offset:104{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
722 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_10:[0-9]+]], off, s[0:3], s5 offset:108{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
723 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_11:[0-9]+]], off, s[0:3], s5 offset:112{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
724 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_12:[0-9]+]], off, s[0:3], s5 offset:116{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
725 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_13:[0-9]+]], off, s[0:3], s5 offset:120{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
726 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_14:[0-9]+]], off, s[0:3], s5 offset:124{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
727 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_15:[0-9]+]], off, s[0:3], s5 offset:128{{$}}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
728 define void @void_func_v32i32_v16i32_v16f32(<32 x i32> %arg0, <16 x i32> %arg1, <16 x float> %arg2) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
729 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
730 store volatile <16 x i32> %arg1, <16 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
731 store volatile <16 x float> %arg2, <16 x float> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
732 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
733 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
734
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
735 ; Check there is no crash.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
736 ; GCN-LABEL: {{^}}void_func_v16i8:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
737 define void @void_func_v16i8(<16 x i8> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
738 store volatile <16 x i8> %arg0, <16 x i8> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
739 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
740 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
741
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
742 ; Check there is no crash.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
743 ; GCN-LABEL: {{^}}void_func_v32i32_v16i8:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
744 define void @void_func_v32i32_v16i8(<32 x i32> %arg0, <16 x i8> %arg1) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
745 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
746 store volatile <16 x i8> %arg1, <16 x i8> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
747 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
748 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
749
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
750 attributes #0 = { nounwind }