1// RUN: not llvm-mc -arch=amdgcn %s 2>&1 | FileCheck %s
2// RUN: not llvm-mc -arch=amdgcn -mcpu=SI %s 2>&1 | FileCheck %s
3
4s_mov_b32 v1, s2
5// CHECK: error: invalid operand for instruction
6
7s_mov_b32 s1, v0
8// CHECK: error: invalid operand for instruction
9
10s_mov_b32 s[1:2], s0
11// CHECK: error: invalid operand for instruction
12
13s_mov_b32 s0, s[1:2]
14// CHECK: error: invalid operand for instruction
15
16s_mov_b32 s220, s0
17// CHECK: error: invalid operand for instruction
18
19s_mov_b32 s0, s220
20// CHECK: error: invalid operand for instruction
21
22s_mov_b64 s1, s[0:1]
23// CHECK: error: invalid operand for instruction
24
25s_mov_b64 s[0:1], s1
26// CHECK: error: invalid operand for instruction
27
28// Immediate greater than 32-bits
29s_mov_b32 s1, 0xfffffffff
30// CHECK: error: invalid immediate: only 32-bit values are legal
31
32// Immediate greater than 32-bits
33s_mov_b64 s[0:1], 0xfffffffff
34// CHECK: error: invalid immediate: only 32-bit values are legal
35
36// Out of range register
37s_mov_b32 s
38