1 // RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti %s 2>&1 | FileCheck -check-prefix=GCN -check-prefix=SI %s
2 // RUN: not llvm-mc -arch=amdgcn -mcpu=hawaii %s 2>&1 | FileCheck -check-prefix=GCN -check-prefix=CI %s
3 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefix=GCN -check-prefix=VI %s
5 s_mov_b64 flat_scratch, -1
6 // SI: error: invalid operand for instruction
10 s_mov_b32 flat_scratch_lo, -1
11 // SI: error: invalid operand for instruction
15 s_mov_b32 flat_scratch_hi, -1
16 // SI: error: invalid operand for instruction
21 s_mov_b64 flat_scratch_lo, -1
22 // GCN: error: invalid operand for instruction
24 s_mov_b64 flat_scratch_hi, -1
25 // GCN: error: invalid operand for instruction
27 s_mov_b32 flat_scratch, -1
28 // GCN: error: invalid operand for instruction