[AMDGPU] Check for immediate SrcC in mfma in AsmParser
[llvm-core.git] / test / MC / AMDGPU / reg-syntax-err.s
blob39fc1ebcee972cebd06f52c6bfaec527ebf4284e
1 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefix=NOVI %s
3 s_mov_b32 s1, s 1
4 // NOVI: error: invalid operand for instruction
6 s_mov_b32 s1, s[0 1
7 // NOVI: error: failed parsing operand
9 s_mov_b32 s1, s[0:0 1
10 // NOVI: error: failed parsing operand
12 s_mov_b32 s1, [s[0 1
13 // NOVI: error: failed parsing operand
15 s_mov_b32 s1, [s[0:1] 1
16 // NOVI: error: failed parsing operand
18 s_mov_b32 s1, [s0, 1
19 // NOVI: error: failed parsing operand
21 s_mov_b32 s1, s999 1
22 // NOVI: error: failed parsing operand
24 s_mov_b32 s1, s[1:2] 1
25 // NOVI: error: failed parsing operand
27 s_mov_b32 s1, s[0:2] 1
28 // NOVI: error: failed parsing operand
30 s_mov_b32 s1, xnack_mask_lo 1
31 // NOVI: error: failed parsing operand
33 s_mov_b32 s1, s s0
34 // NOVI: error: invalid operand for instruction
36 s_mov_b32 s1, s[0 s0
37 // NOVI: error: failed parsing operand
39 s_mov_b32 s1, s[0:0 s0
40 // NOVI: error: failed parsing operand
42 s_mov_b32 s1, [s[0 s0
43 // NOVI: error: failed parsing operand
45 s_mov_b32 s1, [s[0:1] s0
46 // NOVI: error: failed parsing operand
48 s_mov_b32 s1, [s0, s0
49 // NOVI: error: failed parsing operand
51 s_mov_b32 s1, s999 s0
52 // NOVI: error: failed parsing operand
54 s_mov_b32 s1, s[1:2] s0
55 // NOVI: error: failed parsing operand
57 s_mov_b32 s1, s[0:2] vcc_lo
58 // NOVI: error: failed parsing operand
60 s_mov_b32 s1, xnack_mask_lo s1
61 // NOVI: error: failed parsing operand
63 exp mrt0 v1, v2, v3, v4000 off
64 // NOVI: error: failed parsing operand