2015-11-05 11:11:27 +08:00
|
|
|
// RUN: not llvm-mc -arch=amdgcn %s 2>&1 | FileCheck -check-prefix=GCN %s
|
|
|
|
// RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti %s 2>&1 | FileCheck -check-prefix=GCN -check-prefix=SI %s
|
|
|
|
// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefix=GCN -check-prefix=VI %s
|
2015-04-08 09:09:26 +08:00
|
|
|
|
|
|
|
s_mov_b32 v1, s2
|
2015-11-05 11:11:27 +08:00
|
|
|
// GCN: error: invalid operand for instruction
|
2015-04-08 09:09:26 +08:00
|
|
|
|
|
|
|
s_mov_b32 s1, v0
|
2015-11-05 11:11:27 +08:00
|
|
|
// GCN: error: invalid operand for instruction
|
2015-04-08 09:09:26 +08:00
|
|
|
|
|
|
|
s_mov_b32 s[1:2], s0
|
2016-05-23 17:59:02 +08:00
|
|
|
// GCN: error: not a valid operand
|
2015-04-08 09:09:26 +08:00
|
|
|
|
|
|
|
s_mov_b32 s0, s[1:2]
|
2016-05-23 17:59:02 +08:00
|
|
|
// GCN: error: not a valid operand
|
2015-04-08 09:09:26 +08:00
|
|
|
|
|
|
|
s_mov_b32 s220, s0
|
2016-05-23 17:59:02 +08:00
|
|
|
// GCN: error: not a valid operand
|
2015-04-08 09:09:26 +08:00
|
|
|
|
|
|
|
s_mov_b32 s0, s220
|
2016-05-23 17:59:02 +08:00
|
|
|
// GCN: error: not a valid operand
|
2015-04-08 09:09:26 +08:00
|
|
|
|
|
|
|
s_mov_b64 s1, s[0:1]
|
2015-11-05 11:11:27 +08:00
|
|
|
// GCN: error: invalid operand for instruction
|
2015-04-08 09:09:26 +08:00
|
|
|
|
|
|
|
s_mov_b64 s[0:1], s1
|
2015-11-05 11:11:27 +08:00
|
|
|
// GCN: error: invalid operand for instruction
|
2015-04-08 09:09:26 +08:00
|
|
|
|
2015-11-05 11:11:27 +08:00
|
|
|
// FIXME: This shoudl probably say failed to parse.
|
2015-04-08 09:09:26 +08:00
|
|
|
s_mov_b32 s
|
2016-05-23 17:59:02 +08:00
|
|
|
// GCN: error: not a valid operand
|
2015-11-05 11:11:27 +08:00
|
|
|
// Out of range register
|
|
|
|
|
|
|
|
s_mov_b32 s102, 1
|
2016-05-23 17:59:02 +08:00
|
|
|
// VI: error: not a valid operand
|
|
|
|
// SI: s_mov_b32 s102, 1
|
2015-11-05 11:11:27 +08:00
|
|
|
|
|
|
|
s_mov_b32 s103, 1
|
2016-05-23 17:59:02 +08:00
|
|
|
// VI: error: not a valid operand
|
|
|
|
// SI: s_mov_b32 s103, 1
|
2015-11-05 11:11:27 +08:00
|
|
|
|
|
|
|
s_mov_b64 s[102:103], -1
|
2016-05-23 17:59:02 +08:00
|
|
|
// VI: error: not a valid operand
|
|
|
|
// SI: s_mov_b64 s[102:103], -1
|