Skip to content

Commit f769899

Browse files
committed
[AMDGPU] Add test for instructions unsupported on gfx940. NFC.
1 parent dda7b74 commit f769899

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

llvm/test/MC/AMDGPU/gfx940_err.s

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx940 %s 2>&1 | FileCheck --check-prefix=GFX940 --implicit-check-not=error: %s
2+
3+
v_mac_f32 v0, v1, v2
4+
// FIXME: error message is incorrect
5+
// GFX940: error: operands are not valid for this GPU or mode
6+
7+
v_mad_f32 v0, v1, v2, v3
8+
// GFX940: error: instruction not supported on this GPU
9+
10+
v_madak_f32 v0, v1, v2, 0
11+
// GFX940: error: instruction not supported on this GPU
12+
13+
v_madmk_f32 v0, v1, 0, v2
14+
// GFX940: error: instruction not supported on this GPU
15+
16+
v_mad_legacy_f32 v0, v1, v2, v3
17+
// GFX940: error: instruction not supported on this GPU

0 commit comments

Comments
 (0)