[AMDGPU] Check for immediate SrcC in mfma in AsmParser
[llvm-core.git] / test / MC / AMDGPU / sop1-err.s
blob0225fa1778ead694cd5294b8c9eb0301d4cf845d
1 // RUN: not llvm-mc -arch=amdgcn %s 2>&1 | FileCheck -check-prefix=GCN %s
2 // RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti %s 2>&1 | FileCheck -check-prefix=GCN -check-prefix=SI %s
3 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefix=GCN -check-prefix=VI %s
5 s_mov_b32 v1, s2
6 // GCN: error: invalid operand for instruction
8 s_mov_b32 s1, v0
9 // GCN: error: invalid operand for instruction
11 s_mov_b32 s[1:2], s0
12 // GCN: error: not a valid operand
14 s_mov_b32 s0, s[1:2]
15 // GCN: error: not a valid operand
17 s_mov_b32 s220, s0
18 // GCN: error: not a valid operand
20 s_mov_b32 s0, s220
21 // GCN: error: not a valid operand
23 s_mov_b64 s1, s[0:1]
24 // GCN: error: invalid operand for instruction
26 s_mov_b64 s[0:1], s1
27 // GCN: error: invalid operand for instruction
29 // FIXME: This shoudl probably say failed to parse.
30 s_mov_b32 s
31 // GCN: error: invalid operand for instruction
32 // Out of range register
34 s_mov_b32 s102, 1
35 // VI: error: not a valid operand
36 // SI: s_mov_b32 s102, 1
38 s_mov_b32 s103, 1
39 // VI: error: not a valid operand
40 // SI: s_mov_b32 s103, 1
42 s_mov_b64 s[102:103], -1
43 // VI: error: not a valid operand
44 // SI: s_mov_b64 s[102:103], -1