[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / AMDGPU / out-of-range-registers.s
blob53e0f65f0cb15d4cb7bf5ab7877883e06053370b
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
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
11 s_add_i32 s106, s0, s1
12 // GCN-ERR: error: not a valid operand
14 s_add_i32 s104, s0, s1
15 // SICIVI9-ERR: error: not a valid operand
16 // GFX10: s_add_i32 s104, s0, s1 ; encoding:
18 s_add_i32 s105, s0, s1
19 // SICIVI9-ERR: error: not a valid operand
20 // GFX10: s_add_i32 s105, s0, s1 ; encoding:
22 v_add_i32 v256, v0, v1
23 // GCN-ERR: error: not a valid operand
25 v_add_i32 v257, v0, v1
26 // GCN-ERR: error: not a valid operand
28 s_mov_b64 s[0:17], -1
29 // GCN-ERR: error: not a valid operand
31 s_mov_b64 s[103:104], -1
32 // GCN-ERR: error: not a valid operand
34 s_mov_b64 s[105:106], -1
35 // GCN-ERR: error: not a valid operand
37 s_mov_b64 s[104:105], -1
38 // SICIVI9-ERR: error: not a valid operand
39 // GFX10: s_mov_b64 s[104:105], -1 ; encoding:
41 s_load_dwordx4 s[102:105], s[2:3], s4
42 // GCN-ERR: error: not a valid operand
44 s_load_dwordx4 s[104:108], s[2:3], s4
45 // GCN-ERR: error: not a valid operand
47 s_load_dwordx4 s[108:112], s[2:3], s4
48 // GCN-ERR: error: not a valid operand
50 s_load_dwordx4 s[1:4], s[2:3], s4
51 // GCN-ERR: error: not a valid operand
53 s_load_dwordx4 s[1:4], s[2:3], s4
54 // GCN-ERR: error: not a valid operand
56 s_load_dwordx8 s[104:111], s[2:3], s4
57 // GCN-ERR: error: not a valid operand
59 s_load_dwordx8 s[100:107], s[2:3], s4
60 // GCN-ERR: error: not a valid operand
62 s_load_dwordx8 s[108:115], s[2:3], s4
63 // GCN-ERR: error: not a valid operand
65 s_load_dwordx16 s[92:107], s[2:3], s4
66 // GCN-ERR: error: not a valid operand
68 s_load_dwordx16 s[96:111], s[2:3], s4
69 // GCN-ERR: error: not a valid operand
71 s_load_dwordx16 s[100:115], s[2:3], s4
72 // GCN-ERR: error: not a valid operand
74 s_load_dwordx16 s[104:119], s[2:3], s4
75 // GCN-ERR: error: not a valid operand
77 s_load_dwordx16 s[108:123], s[2:3], s4
78 // GCN-ERR: error: not a valid operand
80 s_mov_b32 ttmp16, 0
81 // GCN-ERR: error: not a valid operand
83 s_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:
88 s_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:
93 s_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
98 s_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
103 s_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
108 s_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