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