blob: e68f67f01516aaa540dc688ce394ff7d65b00a6c [file] [log] [blame]
Matt Arsenault3b159672015-12-01 20:31:08 +00001// 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
5s_mov_b64 flat_scratch, -1
6// SI: error: invalid operand for instruction
7// CI-NOT: error
8// VI-NOT: error
9
10s_mov_b32 flat_scratch_lo, -1
11// SI: error: invalid operand for instruction
12// CI-NOT: error
13// VI-NOT: error
14
15s_mov_b32 flat_scratch_hi, -1
16// SI: error: invalid operand for instruction
17// CI-NOT: error
18// VI-NOT: error
19
20
21s_mov_b64 flat_scratch_lo, -1
22// GCN: error: invalid operand for instruction
23
24s_mov_b64 flat_scratch_hi, -1
25// GCN: error: invalid operand for instruction
26
27s_mov_b32 flat_scratch, -1
28// GCN: error: invalid operand for instruction