1// RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti -show-encoding %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,SICIVI9-ERR,SIVICI-ERR,SI-ERR %s
2// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,SICIVI9-ERR,SIVICI-ERR,CIVI9-ERR %s
3// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,GFX9-ERR,SICIVI9-ERR,CIVI9-ERR %s
4// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1010 -show-encoding %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,GFX10-ERR %s
5
6// RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti -show-encoding %s 2>&1 | FileCheck -check-prefix=SIVICI %s
7// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s 2>&1 | FileCheck -check-prefix=SIVICI %s
8// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s 2>&1 | FileCheck -check-prefix=GFX9 %s
9// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx1010 -show-encoding %s 2>&1 | FileCheck -check-prefix=GFX10 %s
10
11s_add_i32 s106, s0, s1
12// GCN-ERR: error: not a valid operand
13
14s_add_i32 s104, s0, s1
15// SICIVI9-ERR: error: not a valid operand
16// GFX10: s_add_i32 s104, s0, s1 ; encoding:
17
18s_add_i32 s105, s0, s1
19// SICIVI9-ERR: error: not a valid operand
20// GFX10: s_add_i32 s105, s0, s1 ; encoding:
21
22v_add_i32 v256, v0, v1
23// GCN-ERR: error: not a valid operand
24
25v_add_i32 v257, v0, v1
26// GCN-ERR: error: not a valid operand
27
28s_mov_b64 s[0:17], -1
29// GCN-ERR: error: not a valid operand
30
31s_mov_b64 s[103:104], -1
32// GCN-ERR: error: not a valid operand
33
34s_mov_b64 s[105:106], -1
35// GCN-ERR: error: not a valid operand
36
37s_mov_b64 s[104:105], -1
38// SICIVI9-ERR: error: not a valid operand
39// GFX10: s_mov_b64 s[104:105], -1 ; encoding:
40
41s_load_dwordx4 s[102:105], s[2:3], s4
42// GCN-ERR: error: not a valid operand
43
44s_load_dwordx4 s[104:108], s[2:3], s4
45// GCN-ERR: error: not a valid operand
46
47s_load_dwordx4 s[108:112], s[2:3], s4
48// GCN-ERR: error: not a valid operand
49
50s_load_dwordx4 s[1:4], s[2:3], s4
51// GCN-ERR: error: not a valid operand
52
53s_load_dwordx4 s[1:4], s[2:3], s4
54// GCN-ERR: error: not a valid operand
55
56s_load_dwordx8 s[104:111], s[2:3], s4
57// GCN-ERR: error: not a valid operand
58
59s_load_dwordx8 s[100:107], s[2:3], s4
60// GCN-ERR: error: not a valid operand
61
62s_load_dwordx8 s[108:115], s[2:3], s4
63// GCN-ERR: error: not a valid operand
64
65s_load_dwordx16 s[92:107], s[2:3], s4
66// GCN-ERR: error: not a valid operand
67
68s_load_dwordx16 s[96:111], s[2:3], s4
69// GCN-ERR: error: not a valid operand
70
71s_load_dwordx16 s[100:115], s[2:3], s4
72// GCN-ERR: error: not a valid operand
73
74s_load_dwordx16 s[104:119], s[2:3], s4
75// GCN-ERR: error: not a valid operand
76
77s_load_dwordx16 s[108:123], s[2:3], s4
78// GCN-ERR: error: not a valid operand
79
80s_mov_b32 ttmp16, 0
81// GCN-ERR: error: not a valid operand
82
83s_mov_b32 ttmp12, 0
84// SICIVI: error: not a valid operand
85// GFX9: s_mov_b32 ttmp12, 0 ; encoding:
86// GFX10: s_mov_b32 ttmp12, 0 ; encoding:
87
88s_mov_b32 ttmp15, 0
89// SICIVI: error: not a valid operand
90// GFX9: s_mov_b32 ttmp15, 0 ; encoding:
91// GFX10: s_mov_b32 ttmp15, 0 ; encoding:
92
93s_mov_b32 flat_scratch_lo, 0
94// SI-ERR: error: not a valid operand
95// CIVI9: s_mov_b32 flat_scratch_lo, 0 ; encoding:
96// GFX10-ERR: error: not a valid operand
97
98s_mov_b32 flat_scratch_hi, 0
99// SI-ERR: error: not a valid operand
100// CIVI9: s_mov_b32 flat_scratch_hi, 0 ; encoding:
101// GFX10-ERR: error: not a valid operand
102
103s_mov_b32 tma_lo, 0
104// SIVICI: s_mov_b32 tma_lo, 0 ; encoding:
105// GFX9-ERR: error: not a valid operand
106// GFX10-ERR: error: not a valid operand
107
108s_mov_b32 tba_lo, 0
109// SIVICI: s_mov_b32 tba_lo, 0 ; encoding:
110// GFX9-ERR: error: not a valid operand
111// GFX10-ERR: error: not a valid operand
112