• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: not llvm-mc -arch=amdgcn -show-encoding %s 2>&1 | FileCheck --check-prefix=GCN --check-prefix=SICI %s
2// RUN: not llvm-mc -arch=amdgcn -mcpu=SI -show-encoding %s 2>&1 | FileCheck --check-prefix=GCN --check-prefix=SICI %s
3// RUN: not llvm-mc -arch=amdgcn -mcpu=fiji -show-encoding %s 2>&1 | FileCheck --check-prefix=GCN --check-prefix=VI %s
4
5s_sendmsg sendmsg(11)
6// GCN: error: invalid/unsupported code of message
7
8s_sendmsg sendmsg(MSG_INTERRUPTX)
9// GCN: error: invalid/unsupported symbolic name of message
10
11s_sendmsg sendmsg(MSG_INTERRUPT, 0)
12// GCN: error: failed parsing operand
13
14s_sendmsg sendmsg(MSG_GS)
15// GCN: error: failed parsing operand
16
17s_sendmsg sendmsg(MSG_GS, GS_OP_NOP)
18// GCN: error: invalid GS_OP: NOP is for GS_DONE only
19
20s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 0, 0)
21// GCN: error: failed parsing operand
22
23s_sendmsg sendmsg(MSG_GSX, GS_OP_CUT, 0)
24// GCN: error: invalid/unsupported symbolic name of message
25
26s_sendmsg sendmsg(MSG_GS, GS_OP_CUTX, 0)
27// GCN: error: invalid symbolic name of GS_OP
28
29s_sendmsg sendmsg(MSG_GS, GS_OP_CUT, 4)
30// GCN: error: invalid stream id: only 2-bit values are legal
31
32s_sendmsg sendmsg(2)
33// GCN: error: failed parsing operand
34
35s_sendmsg sendmsg(2, 0)
36// GCN: error: invalid GS_OP: NOP is for GS_DONE only
37
38s_sendmsg sendmsg(2, 3, 0, 0)
39// GCN: error: failed parsing operand
40
41s_sendmsg sendmsg(2, 4, 1)
42// GCN: error: invalid code of GS_OP: only 2-bit values are legal
43
44s_sendmsg sendmsg(2, 2, 4)
45// GCN: error: invalid stream id: only 2-bit values are legal
46
47s_sendmsg sendmsg(2, 2, 0, 0)
48// GCN: error: failed parsing operand
49
50s_sendmsg sendmsg(MSG_GS_DONE, GS_OP_NOP, 0)
51// GCN: error: failed parsing operand
52
53s_sendmsg sendmsg(15)
54// GCN: error: failed parsing operand
55
56s_sendmsg sendmsg(15, 1, 0)
57// GCN: error: failed parsing operand
58
59s_sendmsg sendmsg(15, 0)
60// GCN: error: invalid/unsupported code of SYSMSG_OP
61
62s_sendmsg sendmsg(15, 5)
63// GCN: error: invalid/unsupported code of SYSMSG_OP
64
65s_sendmsg sendmsg(MSG_SYSMSG)
66// GCN: error: failed parsing operand
67
68s_sendmsg sendmsg(MSG_SYSMSG, SYSMSG_OP_ECC_ERR_INTERRUPT, 0)
69// GCN: error: failed parsing operand
70
71s_sendmsg sendmsg(MSG_SYSMSG, 0)
72// GCN: error: invalid/unsupported code of SYSMSG_OP
73
74s_sendmsg sendmsg(MSG_SYSMSG, 5)
75// GCN: error: invalid/unsupported code of SYSMSG_OP
76