[AMDGPU] Check for immediate SrcC in mfma in AsmParser
[llvm-core.git] / test / MC / AMDGPU / vop1-gfx9-err.s
blob61bf5f661759547520912c910c5ba13d74e00c1e
1 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s 2>&1 | FileCheck -check-prefixes=GCN,GFX9 %s
2 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s 2>&1 | FileCheck -check-prefixes=GCN,VI %s
3 // RUN: not llvm-mc -arch=amdgcn -mcpu=hawaii -show-encoding %s 2>&1 | FileCheck -check-prefixes=GCN,CI %s
5 v_swap_b32 v1, 1
6 // GCN: :16: error: invalid operand for instruction
8 v_swap_b32 v1, s0
9 // GCN: :16: error: invalid operand for instruction
11 // FIXME: Better error for it requiring VOP1 encoding
12 v_swap_b32_e64 v1, v2
13 // GFX9: :1: error: invalid instruction, did you mean: v_swap_b32?
14 // CI: :1: error: invalid instruction
15 // VI: :1: error: invalid instruction
17 v_swap_b32 v1, v2, v1
18 // GCN: :20: error: invalid operand for instruction
20 v_swap_b32 v1, v2, v2
21 // GCN: :20: error: invalid operand for instruction
23 v_swap_b32 v1, v2, v2, v2
24 // GCN: :20: error: invalid operand for instruction
26 v_swap_codegen_pseudo_b32 v1, v2
27 // GCN: :1: error: invalid instruction