annotate test/CodeGen/AMDGPU/function-args.ll @ 147:c2174574ed3a

LLVM 10
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 14 Aug 2019 16:55:33 +0900
parents 3a76565eade5
children
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:
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
164 ; GCN-DAG: buffer_store_dwordx3 v[0:2], off
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
165 define void @void_func_v3i32(<3 x i32> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
166 store <3 x i32> %arg0, <3 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
167 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
168 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
169
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
170 ; GCN-LABEL: {{^}}void_func_v4i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
171 ; GCN: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
172 define void @void_func_v4i32(<4 x i32> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
173 store <4 x i32> %arg0, <4 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
174 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
175 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
176
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
177 ; GCN-LABEL: {{^}}void_func_v5i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
178 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
179 ; GCN-DAG: buffer_store_dword v4, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
180 define void @void_func_v5i32(<5 x i32> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
181 store <5 x i32> %arg0, <5 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
182 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
183 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
184
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
185 ; GCN-LABEL: {{^}}void_func_v8i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
186 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
187 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
188 define void @void_func_v8i32(<8 x i32> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
189 store <8 x i32> %arg0, <8 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
190 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
191 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
192
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
193 ; GCN-LABEL: {{^}}void_func_v16i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
194 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
195 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
196 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
197 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
198 define void @void_func_v16i32(<16 x i32> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
199 store <16 x i32> %arg0, <16 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
200 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
201 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
202
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
203 ; GCN-LABEL: {{^}}void_func_v32i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
204 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
205 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
206 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
207 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
208 ; GCN-DAG: buffer_store_dwordx4 v[16:19], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
209 ; GCN-DAG: buffer_store_dwordx4 v[20:23], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
210 ; GCN-DAG: buffer_store_dwordx4 v[24:27], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
211 ; GCN-DAG: buffer_store_dwordx4 v[28:31], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
212 define void @void_func_v32i32(<32 x i32> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
213 store <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
214 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
215 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
216
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
217 ; 1 over register limit
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
218 ; GCN-LABEL: {{^}}void_func_v33i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
219 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
220 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
221 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
222 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
223 ; GCN-DAG: buffer_load_dword [[STACKLOAD:v[0-9]+]], off, s[0:3], s32
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
224 ; GCN-DAG: buffer_store_dwordx4 v[16:19], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
225 ; GCN-DAG: buffer_store_dwordx4 v[20:23], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
226 ; GCN-DAG: buffer_store_dwordx4 v[24:27], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
227 ; GCN-DAG: buffer_store_dwordx4 v[28:31], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
228 ; GCN: buffer_store_dword [[STACKLOAD]], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
229 define void @void_func_v33i32(<33 x i32> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
230 store <33 x i32> %arg0, <33 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
231 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
232 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
233
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
234 ; GCN-LABEL: {{^}}void_func_v2i64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
235 ; GCN: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
236 define void @void_func_v2i64(<2 x i64> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
237 store <2 x i64> %arg0, <2 x i64> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
238 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
239 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
240
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
241 ; GCN-LABEL: {{^}}void_func_v3i64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
242 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
243 ; GCN-DAG: buffer_store_dwordx2 v[4:5], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
244 define void @void_func_v3i64(<3 x i64> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
245 store <3 x i64> %arg0, <3 x i64> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
246 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
247 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
248
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
249 ; GCN-LABEL: {{^}}void_func_v4i64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
250 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
251 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
252 define void @void_func_v4i64(<4 x i64> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
253 store <4 x i64> %arg0, <4 x i64> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
254 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
255 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
256
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
257 ; GCN-LABEL: {{^}}void_func_v5i64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
258 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
259 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
260 ; GCN-DAG: buffer_store_dwordx2 v[8:9], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
261 define void @void_func_v5i64(<5 x i64> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
262 store <5 x i64> %arg0, <5 x i64> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
263 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
264 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
265
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
266 ; GCN-LABEL: {{^}}void_func_v8i64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
267 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
268 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
269 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
270 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
271 define void @void_func_v8i64(<8 x i64> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
272 store <8 x i64> %arg0, <8 x i64> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
273 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
274 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
275
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
276 ; GCN-LABEL: {{^}}void_func_v16i64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
277 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
278 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
279 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
280 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
281 ; GCN-DAG: buffer_store_dwordx4 v[16:19], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
282 ; GCN-DAG: buffer_store_dwordx4 v[20:23], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
283 ; GCN-DAG: buffer_store_dwordx4 v[24:27], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
284 ; GCN-DAG: buffer_store_dwordx4 v[28:31], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
285 define void @void_func_v16i64(<16 x i64> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
286 store <16 x i64> %arg0, <16 x i64> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
287 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
288 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
289
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
290 ; GCN-LABEL: {{^}}void_func_v2i16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
291 ; GFX9-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
292 ; GFX9: buffer_store_dword v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
293 define void @void_func_v2i16(<2 x i16> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
294 store <2 x i16> %arg0, <2 x i16> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
295 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
296 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
297
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
298 ; GCN-LABEL: {{^}}void_func_v3i16:
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
299 ; GCN-DAG: buffer_store_dword v{{[0-9]+}}, off
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
300 ; GCN-DAG: buffer_store_short v{{[0-9]+}}, off
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
301 define void @void_func_v3i16(<3 x i16> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
302 store <3 x i16> %arg0, <3 x i16> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
303 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
304 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
305
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
306 ; GCN-LABEL: {{^}}void_func_v4i16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
307 ; GFX9-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
308 ; GFX9-NOT: v1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
309 ; GFX9: buffer_store_dwordx2 v[0:1], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
310 define void @void_func_v4i16(<4 x i16> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
311 store <4 x i16> %arg0, <4 x i16> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
312 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
313 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
314
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
315 ; GCN-LABEL: {{^}}void_func_v5i16:
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
316 ; CI: v_lshlrev_b32
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
317 ; CI: v_and_b32
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
318 ; CI: v_lshlrev_b32
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
319 ; CI: v_or_b32
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
320 ; CI: v_or_b32
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
321 ; CI-DAG: buffer_store_short v
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
322 ; CI-DAG: buffer_store_dwordx2 v
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
323
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
324 ; GFX89-DAG: buffer_store_short v2, off,
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
325 ; GFX89-DAG: buffer_store_dwordx2 v[0:1], off
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
326
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
327 define void @void_func_v5i16(<5 x i16> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
328 store <5 x i16> %arg0, <5 x i16> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
329 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
330 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
331
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
332 ; GCN-LABEL: {{^}}void_func_v8i16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
333 ; GFX9-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
334 define void @void_func_v8i16(<8 x i16> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
335 store <8 x i16> %arg0, <8 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_v16i16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
340 ; GFX9-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
341 ; GFX9-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
342 define void @void_func_v16i16(<16 x i16> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
343 store <16 x i16> %arg0, <16 x i16> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
344 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
345 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
346
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
347 ; GCN-LABEL: {{^}}void_func_v2f32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
348 ; GCN-NOT: v[0:1]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
349 ; GCN-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
350 ; GCN-NOT: v1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
351 ; GCN: buffer_store_dwordx2 v[0:1], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
352 define void @void_func_v2f32(<2 x float> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
353 store <2 x float> %arg0, <2 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_v3f32:
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
358 ; GCN-DAG: buffer_store_dwordx3 v[0:2], off
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
359 define void @void_func_v3f32(<3 x float> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
360 store <3 x float> %arg0, <3 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_v4f32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
365 ; GCN: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
366 define void @void_func_v4f32(<4 x float> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
367 store <4 x float> %arg0, <4 x float> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
368 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
369 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
370
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
371 ; GCN-LABEL: {{^}}void_func_v8f32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
372 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
373 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
374 define void @void_func_v8f32(<8 x float> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
375 store <8 x float> %arg0, <8 x float> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
376 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
377 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
378
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
379 ; GCN-LABEL: {{^}}void_func_v16f32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
380 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
381 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
382 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
383 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
384 define void @void_func_v16f32(<16 x float> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
385 store <16 x float> %arg0, <16 x float> 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_v2f64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
390 ; GCN: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
391 define void @void_func_v2f64(<2 x double> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
392 store <2 x double> %arg0, <2 x double> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
393 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
394 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
395
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
396 ; GCN-LABEL: {{^}}void_func_v3f64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
397 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
398 ; GCN-DAG: buffer_store_dwordx2 v[4:5], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
399 define void @void_func_v3f64(<3 x double> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
400 store <3 x double> %arg0, <3 x double> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
401 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
402 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
403
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
404 ; GCN-LABEL: {{^}}void_func_v4f64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
405 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
406 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
407 define void @void_func_v4f64(<4 x double> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
408 store <4 x double> %arg0, <4 x double> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
409 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
410 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
411
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
412 ; GCN-LABEL: {{^}}void_func_v8f64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
413 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
414 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
415 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
416 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
417 define void @void_func_v8f64(<8 x double> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
418 store <8 x double> %arg0, <8 x double> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
419 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
420 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
421
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
422 ; GCN-LABEL: {{^}}void_func_v16f64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
423 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
424 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
425 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
426 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
427 ; GCN-DAG: buffer_store_dwordx4 v[16:19], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
428 ; GCN-DAG: buffer_store_dwordx4 v[20:23], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
429 ; GCN-DAG: buffer_store_dwordx4 v[24:27], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
430 ; GCN-DAG: buffer_store_dwordx4 v[28:31], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
431 define void @void_func_v16f64(<16 x double> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
432 store <16 x double> %arg0, <16 x double> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
433 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
434 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
435
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
436 ; GCN-LABEL: {{^}}void_func_v2f16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
437 ; GFX9-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
438 ; GFX9: buffer_store_dword v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
439 define void @void_func_v2f16(<2 x half> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
440 store <2 x half> %arg0, <2 x half> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
441 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
442 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
443
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
444 ; FIXME: Different abi if f16 legal
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
445 ; GCN-LABEL: {{^}}void_func_v3f16:
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
446 ; CI-DAG: v_cvt_f16_f32_e32 v{{[0-9]+}}, v0
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
447 ; CI-DAG: v_cvt_f16_f32_e32 v{{[0-9]+}}, v1
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
448 ; CI-DAG: v_cvt_f16_f32_e32 v{{[0-9]+}}, v2
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
449
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
450 ; GFX89-DAG: v0
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
451 ; GFX89-DAG: v1
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
452
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
453 ; GCN-DAG: buffer_store_short
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
454 ; GCN-DAG: buffer_store_dword
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
455 define void @void_func_v3f16(<3 x half> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
456 store <3 x half> %arg0, <3 x half> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
457 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
458 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
459
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
460 ; GCN-LABEL: {{^}}void_func_v4f16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
461 ; GFX9-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
462 ; GFX9-NOT: v1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
463 ; GFX9-NOT: v[0:1]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
464 ; GFX9: buffer_store_dwordx2 v[0:1], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
465 define void @void_func_v4f16(<4 x half> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
466 store <4 x half> %arg0, <4 x half> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
467 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
468 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
469
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
470 ; GCN-LABEL: {{^}}void_func_v8f16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
471 ; GFX9-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
472 ; GFX9-NOT: v1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
473 ; GFX9: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
474 define void @void_func_v8f16(<8 x half> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
475 store <8 x half> %arg0, <8 x half> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
476 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
477 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
478
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
479 ; GCN-LABEL: {{^}}void_func_v16f16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
480 ; GFX9-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
481 ; GFX9-NOT: v1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
482 ; GFX9-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
483 ; GFX9-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
484 define void @void_func_v16f16(<16 x half> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
485 store <16 x half> %arg0, <16 x half> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
486 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
487 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
488
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
489 ; Make sure there is no alignment requirement for passed vgprs.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
490 ; GCN-LABEL: {{^}}void_func_i32_i64_i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
491 ; GCN-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
492 ; GCN: buffer_store_dword v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
493 ; GCN: buffer_store_dwordx2 v[1:2]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
494 ; GCN: buffer_store_dword v3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
495 define void @void_func_i32_i64_i32(i32 %arg0, i64 %arg1, i32 %arg2) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
496 store volatile i32 %arg0, i32 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
497 store volatile i64 %arg1, i64 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
498 store volatile i32 %arg2, i32 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
499 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
500 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
501
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
502 ; GCN-LABEL: {{^}}void_func_struct_i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
503 ; GCN-NOT: v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
504 ; GCN: buffer_store_dword v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
505 define void @void_func_struct_i32({ i32 } %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
506 store { i32 } %arg0, { i32 } addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
507 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
508 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
509
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
510 ; GCN-LABEL: {{^}}void_func_struct_i8_i32:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
511 ; GCN-DAG: buffer_store_byte v0, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
512 ; GCN-DAG: buffer_store_dword v1, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
513 define void @void_func_struct_i8_i32({ i8, i32 } %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
514 store { i8, i32 } %arg0, { i8, i32 } addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
515 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
516 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
517
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
518 ; GCN-LABEL: {{^}}void_func_byval_struct_i8_i32:
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
519 ; GCN-DAG: buffer_load_ubyte v[[ELT0:[0-9]+]], off, s[0:3], s32{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
520 ; GCN-DAG: buffer_load_dword v[[ELT1:[0-9]+]], off, s[0:3], s32 offset:4{{$}}
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
521 ; GCN-DAG: buffer_store_dword v[[ELT1]]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
522 ; GCN-DAG: buffer_store_byte v[[ELT0]]
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
523 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
524 %arg0.load = load { i8, i32 }, { i8, i32 } addrspace(5)* %arg0
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
525 store { i8, i32 } %arg0.load, { i8, i32 } addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
526 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
527 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
528
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
529 ; GCN-LABEL: {{^}}void_func_byval_struct_i8_i32_x2:
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
530 ; GCN: buffer_load_ubyte v[[ELT0_0:[0-9]+]], off, s[0:3], s32{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
531 ; GCN: buffer_load_dword v[[ELT1_0:[0-9]+]], off, s[0:3], s32 offset:4{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
532 ; GCN: buffer_load_ubyte v[[ELT0_1:[0-9]+]], off, s[0:3], s32 offset:8{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
533 ; GCN: buffer_load_dword v[[ELT1_1:[0-9]+]], off, s[0:3], s32 offset:12{{$}}
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
534
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
535 ; GCN: ds_write_b32 v0, v0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
536 ; GCN: s_setpc_b64
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
537 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
538 %arg0.load = load volatile { i8, i32 }, { i8, i32 } addrspace(5)* %arg0
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
539 %arg1.load = load volatile { i8, i32 }, { i8, i32 } addrspace(5)* %arg1
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
540 store volatile { i8, i32 } %arg0.load, { i8, i32 } addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
541 store volatile { i8, i32 } %arg1.load, { i8, i32 } addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
542 store volatile i32 %arg2, i32 addrspace(3)* 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_byval_i32_byval_i64:
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
547 ; GCN-DAG: buffer_load_dword v[[ARG0_LOAD:[0-9]+]], off, s[0:3], s32{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
548 ; GCN-DAG: buffer_load_dword v[[ARG1_LOAD0:[0-9]+]], off, s[0:3], s32 offset:8{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
549 ; GCN-DAG: buffer_load_dword v[[ARG1_LOAD1:[0-9]+]], off, s[0:3], s32 offset:12{{$}}
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
550 ; GCN-DAG: buffer_store_dword v[[ARG0_LOAD]], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
551 ; GCN-DAG: buffer_store_dwordx2 v{{\[}}[[ARG1_LOAD0]]:[[ARG1_LOAD1]]{{\]}}, off
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
552 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
553 %arg0.load = load i32, i32 addrspace(5)* %arg0
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
554 %arg1.load = load i64, i64 addrspace(5)* %arg1
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
555 store i32 %arg0.load, i32 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
556 store i64 %arg1.load, i64 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
557 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
558 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
559
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
560 ; GCN-LABEL: {{^}}void_func_v32i32_i32_i64:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
561 ; GCN-DAG: buffer_store_dwordx4 v[0:3], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
562 ; GCN-DAG: buffer_store_dwordx4 v[4:7], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
563 ; GCN-DAG: buffer_store_dwordx4 v[8:11], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
564 ; GCN-DAG: buffer_store_dwordx4 v[12:15], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
565 ; GCN-DAG: buffer_store_dwordx4 v[16:19], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
566 ; GCN-DAG: buffer_store_dwordx4 v[20:23], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
567 ; GCN-DAG: buffer_store_dwordx4 v[24:27], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
568 ; GCN-DAG: buffer_store_dwordx4 v[28:31], off
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
569 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1:[0-9]+]], off, s[0:3], s32{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
570 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_0:[0-9]+]], off, s[0:3], s32 offset:4
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
571 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_1:[0-9]+]], off, s[0:3], s32 offset:8
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
572
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
573 ; GCN: buffer_store_dword v[[LOAD_ARG1]]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
574 ; GCN: buffer_store_dwordx2 v{{\[}}[[LOAD_ARG2_0]]:[[LOAD_ARG2_1]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
575 define void @void_func_v32i32_i32_i64(<32 x i32> %arg0, i32 %arg1, i64 %arg2) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
576 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
577 store volatile i32 %arg1, i32 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
578 store volatile i64 %arg2, i64 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
579 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
580 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
581
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
582 ; FIXME: Different ext load types on CI vs. VI
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
583 ; GCN-LABEL: {{^}}void_func_v32i32_i1_i8_i16:
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
584 ; GCN-DAG: buffer_load_ubyte [[LOAD_ARG1:v[0-9]+]], off, s[0:3], s32{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
585 ; VI-DAG: buffer_load_ushort [[LOAD_ARG2:v[0-9]+]], off, s[0:3], s32 offset:4{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
586 ; VI-DAG: buffer_load_ushort [[LOAD_ARG3:v[0-9]+]], off, s[0:3], s32 offset:8{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
587 ; VI-DAG: buffer_load_ushort [[LOAD_ARG4:v[0-9]+]], off, s[0:3], s32 offset:12{{$}}
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
588
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
589 ; CI-DAG: buffer_load_dword [[LOAD_ARG2:v[0-9]+]], off, s[0:3], s32 offset:4{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
590 ; CI-DAG: buffer_load_dword [[LOAD_ARG3:v[0-9]+]], off, s[0:3], s32 offset:8{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
591 ; CI-DAG: buffer_load_dword [[LOAD_ARG4:v[0-9]+]], off, s[0:3], s32 offset:12{{$}}
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
592
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
593 ; GCN-DAG: v_and_b32_e32 [[TRUNC_ARG1_I1:v[0-9]+]], 1, [[LOAD_ARG1]]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
594 ; CI-DAG: v_cvt_f16_f32_e32 [[CVT_ARG4:v[0-9]+]], [[LOAD_ARG4]]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
595
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
596 ; GCN: buffer_store_byte [[TRUNC_ARG1_I1]], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
597 ; GCN: buffer_store_byte [[LOAD_ARG2]], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
598 ; GCN: buffer_store_short [[LOAD_ARG3]], off
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
599 ; GFX89 buffer_store_short [[LOAD_ARG4]], off
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
600
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
601 ; CI: buffer_store_short [[CVT_ARG4]], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
602 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
603 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
604 store volatile i1 %arg1, i1 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
605 store volatile i8 %arg2, i8 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
606 store volatile i16 %arg3, i16 addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
607 store volatile half %arg4, half addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
608 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
609 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
610
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
611 ; GCN-LABEL: {{^}}void_func_v32i32_v2i32_v2f32:
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
612 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_0:[0-9]+]], off, s[0:3], s32{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
613 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_1:[0-9]+]], off, s[0:3], s32 offset:4{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
614 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_0:[0-9]+]], off, s[0:3], s32 offset:8{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
615 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_1:[0-9]+]], off, s[0:3], s32 offset:12{{$}}
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
616
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
617 ; GCN: buffer_store_dwordx2 v{{\[}}[[LOAD_ARG1_0]]:[[LOAD_ARG1_1]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
618 ; GCN: buffer_store_dwordx2 v{{\[}}[[LOAD_ARG2_0]]:[[LOAD_ARG2_1]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
619 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
620 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
621 store volatile <2 x i32> %arg1, <2 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
622 store volatile <2 x float> %arg2, <2 x float> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
623 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
624 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
625
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
626 ; GCN-LABEL: {{^}}void_func_v32i32_v2i16_v2f16:
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
627 ; GFX9-DAG: buffer_load_dword [[LOAD_ARG1:v[0-9]+]], off, s[0:3], s32 offset:4{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
628 ; GFX9-DAG: buffer_load_dword [[LOAD_ARG2:v[0-9]+]], off, s[0:3], s32 offset:8{{$}}
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
629 ; GFX9: buffer_store_dword [[LOAD_ARG1]], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
630 ; GFX9: buffer_store_short [[LOAD_ARG2]], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
631 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
632 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
633 store volatile <2 x i16> %arg1, <2 x i16> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
634 store volatile <2 x half> %arg2, <2 x half> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
635 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
636 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
637
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
638 ; GCN-LABEL: {{^}}void_func_v32i32_v2i64_v2f64:
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
639 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_0:[0-9]+]], off, s[0:3], s32{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
640 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_1:[0-9]+]], off, s[0:3], s32 offset:4{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
641 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_2:[0-9]+]], off, s[0:3], s32 offset:8{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
642 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_3:[0-9]+]], off, s[0:3], s32 offset:12{{$}}
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
643
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
644 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_0:[0-9]+]], off, s[0:3], s32 offset:16{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
645 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_1:[0-9]+]], off, s[0:3], s32 offset:20{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
646 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_2:[0-9]+]], off, s[0:3], s32 offset:24{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
647 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_3:[0-9]+]], off, s[0:3], s32 offset:28{{$}}
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
648
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
649 ; GCN: buffer_store_dwordx4 v{{\[}}[[LOAD_ARG1_0]]:[[LOAD_ARG1_3]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
650 ; GCN: buffer_store_dwordx4 v{{\[}}[[LOAD_ARG2_0]]:[[LOAD_ARG2_3]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
651 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
652 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
653 store volatile <2 x i64> %arg1, <2 x i64> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
654 store volatile <2 x double> %arg2, <2 x double> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
655 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
656 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
657
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
658 ; GCN-LABEL: {{^}}void_func_v32i32_v4i32_v4f32:
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
659 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_0:[0-9]+]], off, s[0:3], s32{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
660 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_1:[0-9]+]], off, s[0:3], s32 offset:4{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
661 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_2:[0-9]+]], off, s[0:3], s32 offset:8{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
662 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_3:[0-9]+]], off, s[0:3], s32 offset:12{{$}}
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
663
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
664 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_0:[0-9]+]], off, s[0:3], s32 offset:16{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
665 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_1:[0-9]+]], off, s[0:3], s32 offset:20{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
666 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_2:[0-9]+]], off, s[0:3], s32 offset:24{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
667 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_3:[0-9]+]], off, s[0:3], s32 offset:28{{$}}
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
668
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
669 ; GCN: buffer_store_dwordx4 v{{\[}}[[LOAD_ARG1_0]]:[[LOAD_ARG1_3]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
670 ; GCN: buffer_store_dwordx4 v{{\[}}[[LOAD_ARG2_0]]:[[LOAD_ARG2_3]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
671 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
672 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
673 store volatile <4 x i32> %arg1, <4 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
674 store volatile <4 x float> %arg2, <4 x float> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
675 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
676 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
677
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
678 ; GCN-LABEL: {{^}}void_func_v32i32_v8i32_v8f32:
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
679 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_0:[0-9]+]], off, s[0:3], s32{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
680 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_1:[0-9]+]], off, s[0:3], s32 offset:4{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
681 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_2:[0-9]+]], off, s[0:3], s32 offset:8{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
682 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_3:[0-9]+]], off, s[0:3], s32 offset:12{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
683 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_4:[0-9]+]], off, s[0:3], s32 offset:16{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
684 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_5:[0-9]+]], off, s[0:3], s32 offset:20{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
685 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_6:[0-9]+]], off, s[0:3], s32 offset:24{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
686 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_7:[0-9]+]], off, s[0:3], s32 offset:28{{$}}
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
687
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
688 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_0:[0-9]+]], off, s[0:3], s32 offset:32{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
689 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_1:[0-9]+]], off, s[0:3], s32 offset:36{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
690 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_2:[0-9]+]], off, s[0:3], s32 offset:40{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
691 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_3:[0-9]+]], off, s[0:3], s32 offset:44{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
692 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_4:[0-9]+]], off, s[0:3], s32 offset:48{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
693 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_5:[0-9]+]], off, s[0:3], s32 offset:52{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
694 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_6:[0-9]+]], off, s[0:3], s32 offset:56{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
695 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_7:[0-9]+]], off, s[0:3], s32 offset:60{{$}}
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
696
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
697 ; GCN: buffer_store_dwordx4 v{{\[}}[[LOAD_ARG1_4]]:[[LOAD_ARG1_7]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
698 ; GCN: buffer_store_dwordx4 v{{\[}}[[LOAD_ARG1_0]]:[[LOAD_ARG1_3]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
699 ; GCN: buffer_store_dwordx4 v{{\[}}[[LOAD_ARG2_4]]:[[LOAD_ARG2_7]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
700 ; GCN: buffer_store_dwordx4 v{{\[}}[[LOAD_ARG2_0]]:[[LOAD_ARG2_3]]{{\]}}, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
701 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
702 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
703 store volatile <8 x i32> %arg1, <8 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
704 store volatile <8 x float> %arg2, <8 x float> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
705 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
706 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
707
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
708 ; GCN-LABEL: {{^}}void_func_v32i32_v16i32_v16f32:
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
709 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_0:[0-9]+]], off, s[0:3], s32{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
710 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_1:[0-9]+]], off, s[0:3], s32 offset:4{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
711 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_2:[0-9]+]], off, s[0:3], s32 offset:8{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
712 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_:[0-9]+]], off, s[0:3], s32 offset:12{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
713 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_4:[0-9]+]], off, s[0:3], s32 offset:16{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
714 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_5:[0-9]+]], off, s[0:3], s32 offset:20{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
715 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_6:[0-9]+]], off, s[0:3], s32 offset:24{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
716 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_7:[0-9]+]], off, s[0:3], s32 offset:28{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
717 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_8:[0-9]+]], off, s[0:3], s32 offset:32{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
718 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_9:[0-9]+]], off, s[0:3], s32 offset:36{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
719 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_10:[0-9]+]], off, s[0:3], s32 offset:40{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
720 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_11:[0-9]+]], off, s[0:3], s32 offset:44{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
721 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_12:[0-9]+]], off, s[0:3], s32 offset:48{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
722 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_13:[0-9]+]], off, s[0:3], s32 offset:52{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
723 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG1_14:[0-9]+]], off, s[0:3], s32 offset:56{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
724 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_15:[0-9]+]], off, s[0:3], s32 offset:60{{$}}
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
725
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
726 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_0:[0-9]+]], off, s[0:3], s32 offset:64{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
727 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_1:[0-9]+]], off, s[0:3], s32 offset:68{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
728 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_2:[0-9]+]], off, s[0:3], s32 offset:72{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
729 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_3:[0-9]+]], off, s[0:3], s32 offset:76{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
730 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_4:[0-9]+]], off, s[0:3], s32 offset:80{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
731 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_5:[0-9]+]], off, s[0:3], s32 offset:84{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
732 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_6:[0-9]+]], off, s[0:3], s32 offset:88{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
733 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_7:[0-9]+]], off, s[0:3], s32 offset:92{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
734 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_8:[0-9]+]], off, s[0:3], s32 offset:96{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
735 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_9:[0-9]+]], off, s[0:3], s32 offset:100{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
736 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_10:[0-9]+]], off, s[0:3], s32 offset:104{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
737 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_11:[0-9]+]], off, s[0:3], s32 offset:108{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
738 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_12:[0-9]+]], off, s[0:3], s32 offset:112{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
739 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_13:[0-9]+]], off, s[0:3], s32 offset:116{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
740 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_14:[0-9]+]], off, s[0:3], s32 offset:120{{$}}
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
741 ; GCN-DAG: buffer_load_dword v[[LOAD_ARG2_15:[0-9]+]], off, s[0:3], s32 offset:124{{$}}
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
742 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
743 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
744 store volatile <16 x i32> %arg1, <16 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
745 store volatile <16 x float> %arg2, <16 x float> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
746 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
747 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
748
147
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
749 ; Make sure v3 isn't a wasted register because of v3 types being promoted to v4
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
750 ; GCN-LABEL: {{^}}void_func_v3f32_wasted_reg:
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
751 ; GCN: s_waitcnt
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
752 ; GCN: ds_write_b32 v{{[0-9]+}}, v0
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
753 ; GCN-NEXT: ds_write_b32 v{{[0-9]+}}, v1
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
754 ; GCN-NEXT: ds_write_b32 v{{[0-9]+}}, v2
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
755 ; GCN-NEXT: ds_write_b32 v{{[0-9]+}}, v3
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
756 ; GCN-NEXT: s_waitcnt
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
757 ; GCN-NEXT: s_setpc_b64
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
758 define void @void_func_v3f32_wasted_reg(<3 x float> %arg0, i32 %arg1) #0 {
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
759 %arg0.0 = extractelement <3 x float> %arg0, i32 0
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
760 %arg0.1 = extractelement <3 x float> %arg0, i32 1
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
761 %arg0.2 = extractelement <3 x float> %arg0, i32 2
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
762 store volatile float %arg0.0, float addrspace(3)* undef
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
763 store volatile float %arg0.1, float addrspace(3)* undef
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
764 store volatile float %arg0.2, float addrspace(3)* undef
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
765 store volatile i32 %arg1, i32 addrspace(3)* undef
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
766 ret void
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
767 }
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
768
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
769 ; GCN-LABEL: {{^}}void_func_v3i32_wasted_reg:
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
770 ; GCN: s_waitcnt
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
771 ; GCN: ds_write_b32 v{{[0-9]+}}, v0
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
772 ; GCN-NEXT: ds_write_b32 v{{[0-9]+}}, v1
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
773 ; GCN-NEXT: ds_write_b32 v{{[0-9]+}}, v2
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
774 ; GCN-NEXT: ds_write_b32 v{{[0-9]+}}, v3
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
775 ; GCN-NEXT: s_waitcnt
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
776 ; GCN-NEXT: s_setpc_b64
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
777 define void @void_func_v3i32_wasted_reg(<3 x i32> %arg0, i32 %arg1) #0 {
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
778 %arg0.0 = extractelement <3 x i32> %arg0, i32 0
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
779 %arg0.1 = extractelement <3 x i32> %arg0, i32 1
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
780 %arg0.2 = extractelement <3 x i32> %arg0, i32 2
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
781 store volatile i32 %arg0.0, i32 addrspace(3)* undef
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
782 store volatile i32 %arg0.1, i32 addrspace(3)* undef
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
783 store volatile i32 %arg0.2, i32 addrspace(3)* undef
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
784 store volatile i32 %arg1, i32 addrspace(3)* undef
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
785 ret void
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
786 }
c2174574ed3a LLVM 10
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 134
diff changeset
787
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
788 ; Check there is no crash.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
789 ; GCN-LABEL: {{^}}void_func_v16i8:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
790 define void @void_func_v16i8(<16 x i8> %arg0) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
791 store volatile <16 x i8> %arg0, <16 x i8> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
792 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
793 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
794
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
795 ; Check there is no crash.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
796 ; GCN-LABEL: {{^}}void_func_v32i32_v16i8:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
797 define void @void_func_v32i32_v16i8(<32 x i32> %arg0, <16 x i8> %arg1) #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
798 store volatile <32 x i32> %arg0, <32 x i32> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
799 store volatile <16 x i8> %arg1, <16 x i8> addrspace(1)* undef
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
800 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
801 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
802
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
803 attributes #0 = { nounwind }