[AMDGPU] Add symbolic names for gfx940 HWREGs
[llvm-project.git] / llvm / test / MC / AMDGPU / gfx940_err.s
blob2b3ad0a193e32e1a0da0b817ee063ffa562dea27
1 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx940 %s 2>&1 | FileCheck --check-prefix=GFX940 --implicit-check-not=error: %s
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
7 v_mad_f32 v0, v1, v2, v3
8 // GFX940: error: instruction not supported on this GPU
10 v_madak_f32 v0, v1, v2, 0
11 // GFX940: error: instruction not supported on this GPU
13 v_madmk_f32 v0, v1, 0, v2
14 // GFX940: error: instruction not supported on this GPU
16 v_mad_legacy_f32 v0, v1, v2, v3
17 // GFX940: error: instruction not supported on this GPU
19 v_mov_b64 v[2:3], v[4:5] row_shl:1
20 // GFX940: error: 64 bit dpp only supports row_newbcast
22 v_mov_b64 v[2:3], -v[4:5]
23 // GFX940: error: not a valid operand.
25 v_mov_b64 v[2:3], |v[4:5]|
26 // GFX940: error: not a valid operand.
28 v_mov_b64 v[2:3], v[4:5] dst_sel:BYTE_0 dst_unused:UNUSED_PRESERVE src0_sel:DWORD
29 // GFX940: error: not a valid operand.
31 v_mov_b64_sdwa v[2:3], v[4:5]
32 // GFX940: error: sdwa variant of this instruction is not supported
34 buffer_invl2
35 // GFX940: error: instruction not supported on this GPU
37 global_load_dword v2, v[2:3], off glc
38 // GFX940: error: invalid operand for instruction
40 global_load_dword v2, v[2:3], off slc
41 // GFX940: error: invalid operand for instruction
43 global_load_dword v2, v[2:3], off scc
44 // GFX940: error: invalid operand for instruction
46 s_load_dword s2, s[2:3], 0x0 sc0
47 // GFX940: error: invalid operand for instruction
49 buffer_atomic_swap v5, off, s[8:11], s3 glc
50 // GFX940: error: invalid operand for instruction
52 buffer_atomic_swap v5, off, s[8:11], s3 slc
53 // GFX940: error: invalid operand for instruction
55 buffer_wbl2 glc
56 // GFX940: error: invalid operand for instruction
58 buffer_wbl2 scc
59 // GFX940: error: invalid operand for instruction
61 s_getreg_b32 s1, hwreg(HW_REG_FLAT_SCR_LO)
62 // GFX940: error: specified hardware register is not supported on this GPU
64 s_getreg_b32 s1, hwreg(HW_REG_FLAT_SCR_HI)
65 // GFX940: error: specified hardware register is not supported on this GPU
67 s_getreg_b32 s1, hwreg(HW_REG_XNACK_MASK)
68 // GFX940: error: specified hardware register is not supported on this GPU
70 s_getreg_b32 s1, hwreg(HW_REG_HW_ID1)
71 // GFX940: error: specified hardware register is not supported on this GPU
73 s_getreg_b32 s1, hwreg(HW_REG_HW_ID2)
74 // GFX940: error: specified hardware register is not supported on this GPU
76 s_getreg_b32 s1, hwreg(HW_REG_POPS_PACKER)
77 // GFX940: error: specified hardware register is not supported on this GPU