AMDGPU: Disallow flat_scr in SI assembler
[oota-llvm.git] / test / MC / AMDGPU / flat-scratch.s
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
4
5 s_mov_b64 flat_scratch, -1
6 // SI: error: invalid operand for instruction
7 // CI-NOT: error
8 // VI-NOT: error
9
10 s_mov_b32 flat_scratch_lo, -1
11 // SI: error: invalid operand for instruction
12 // CI-NOT: error
13 // VI-NOT: error
14
15 s_mov_b32 flat_scratch_hi, -1
16 // SI: error: invalid operand for instruction
17 // CI-NOT: error
18 // VI-NOT: error
19
20
21 s_mov_b64 flat_scratch_lo, -1
22 // GCN: error: invalid operand for instruction
23
24 s_mov_b64 flat_scratch_hi, -1
25 // GCN: error: invalid operand for instruction
26
27 s_mov_b32 flat_scratch, -1
28 // GCN: error: invalid operand for instruction