Skip to content

Commit d8941df

Browse files
authored
[AMDGPU] Remove v_cmp_t_* and v_cmp_f_* for GFX12 (#75498)
Also v_cmpx_t_* and v_cmpx_f_* No GFX12 encoding was added for these, so this patch just adds tests that they are not recognized by the assembler.
1 parent c5a068a commit d8941df

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

llvm/test/MC/AMDGPU/gfx12_unsupported.s

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,90 @@ ds_gws_barrier v0 gds
100100
ds_ordered_count v0, v1 gds
101101
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
102102

103+
v_cmp_f_f16 v0, v1
104+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
105+
106+
v_cmp_t_f16 v0, v1
107+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
108+
109+
v_cmp_f_f32 v0, v1
110+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
111+
112+
v_cmp_t_f32 v0, v1
113+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
114+
115+
v_cmp_f_f64 v[0:1], v[2:3]
116+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
117+
118+
v_cmp_t_f64 v[0:1], v[2:3]
119+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
120+
121+
v_cmp_f_i32 v0, v1
122+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
123+
124+
v_cmp_t_i32 v0, v1
125+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
126+
127+
v_cmp_f_u32 v0, v1
128+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
129+
130+
v_cmp_t_u32 v0, v1
131+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
132+
133+
v_cmp_f_i64 v[0:1], v[2:3]
134+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
135+
136+
v_cmp_t_i64 v[0:1], v[2:3]
137+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
138+
139+
v_cmp_f_u64 v[0:1], v[2:3]
140+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
141+
142+
v_cmp_t_u64 v[0:1], v[2:3]
143+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
144+
145+
v_cmpx_f_f16 v0, v1
146+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
147+
148+
v_cmpx_t_f16 v0, v1
149+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
150+
151+
v_cmpx_f_f32 v0, v1
152+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
153+
154+
v_cmpx_t_f32 v0, v1
155+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
156+
157+
v_cmpx_f_f64 v[0:1], v[2:3]
158+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
159+
160+
v_cmpx_t_f64 v[0:1], v[2:3]
161+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
162+
163+
v_cmpx_f_i32 v0, v1
164+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
165+
166+
v_cmpx_t_i32 v0, v1
167+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
168+
169+
v_cmpx_f_u32 v0, v1
170+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
171+
172+
v_cmpx_t_u32 v0, v1
173+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
174+
175+
v_cmpx_f_i64 v[0:1], v[2:3]
176+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
177+
178+
v_cmpx_t_i64 v[0:1], v[2:3]
179+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
180+
181+
v_cmpx_f_u64 v[0:1], v[2:3]
182+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
183+
184+
v_cmpx_t_u64 v[0:1], v[2:3]
185+
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
186+
103187
buffer_atomic_cmpswap_f32 v[5:6], off, s[96:99], s3
104188
// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
105189

0 commit comments

Comments
 (0)