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
=tahiti
-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
--check-prefix
=SICIVI
%s
4 // RUN
: not llvm-mc
-arch
=amdgcn
-mcpu
=gfx1010
-show-encoding
%s
2>&1 | FileCheck
--check-prefix
=GCN
%s
6 //===----------------------------------------------------------------------===//
8 //===----------------------------------------------------------------------===//
10 s_sendmsg sendmsg
(MSG_INTERRUPTX
)
11 // GCN
: error
: expected absolute expression
13 s_sendmsg sendmsg
(1 -)
14 // GCN
: error
: unknown token in expression
16 s_sendmsg sendmsg
(MSG_INTERRUPT
, 0)
17 // GCN
: error
: message does
not support operations
19 s_sendmsg sendmsg
(MSG_INTERRUPT
, 0, 0)
20 // GCN
: error
: message does
not support operations
22 s_sendmsg sendmsg
(MSG_GS
)
23 // GCN
: error
: missing message operation
25 s_sendmsg sendmsg
(MSG_GS
, GS_OP_NOP
)
26 // GCN
: error
: invalid operation id
28 s_sendmsg sendmsg
(MSG_GS
, SYSMSG_OP_ECC_ERR_INTERRUPT
)
29 // GCN
: error
: expected absolute expression
31 s_sendmsg sendmsg
(MSG_GS
, 0)
32 // GCN
: error
: invalid operation id
34 s_sendmsg sendmsg
(MSG_GS
, -1)
35 // GCN
: error
: invalid operation id
37 s_sendmsg sendmsg
(MSG_GS
, 4)
38 // GCN
: error
: invalid operation id
40 s_sendmsg sendmsg
(MSG_GS
, 8)
41 // GCN
: error
: invalid operation id
43 s_sendmsg sendmsg
(15, -1)
44 // GCN
: error
: invalid operation id
46 s_sendmsg sendmsg
(15, 8)
47 // GCN
: error
: invalid operation id
49 s_sendmsg sendmsg
(MSG_GS
, GS_OP_CUT
, 0, 0)
50 // GCN
: error
: expected
a closing parenthesis
52 s_sendmsg sendmsg
(MSG_GSX
, GS_OP_CUT
, 0)
53 // GCN
: error
: expected absolute expression
55 s_sendmsg sendmsg
(MSG_GS
, GS_OP_CUTX
, 0)
56 // GCN
: error
: expected absolute expression
58 s_sendmsg sendmsg
(MSG_GS
, 1 -)
59 // GCN
: error
: unknown token in expression
61 s_sendmsg sendmsg
(MSG_GS
, GS_OP_CUT
, 4)
62 // GCN
: error
: invalid message stream id
64 s_sendmsg sendmsg
(MSG_GS
, GS_OP_CUT
, 1 -)
65 // GCN
: error
: unknown token in expression
67 s_sendmsg sendmsg
(2, 3, 0, 0)
68 // GCN
: error
: expected
a closing parenthesis
70 s_sendmsg sendmsg
(2, 2, -1)
71 // GCN
: error
: invalid message stream id
73 s_sendmsg sendmsg
(2, 2, 4)
74 // GCN
: error
: invalid message stream id
76 s_sendmsg sendmsg
(2, 2, 0, 0)
77 // GCN
: error
: expected
a closing parenthesis
79 s_sendmsg sendmsg
(MSG_GS_DONE
, GS_OP_NOP
, 0)
80 // GCN
: error
: message operation does
not support streams
82 s_sendmsg sendmsg
(MSG_GS_DONE
, 0, 0)
83 // GCN
: error
: message operation does
not support streams
85 s_sendmsg sendmsg
(MSG_GS_ALLOC_REQ
)
86 // SICIVI
: error
: invalid message id
88 s_sendmsg sendmsg
(MSG_GS_ALLOC_REQ
, 0)
89 // SICIVI
: error
: invalid message id
92 // SICIVI
: error
: invalid message id
95 // SICIVI
: error
: invalid message id
97 s_sendmsg sendmsg
(MSG_SYSMSG
)
98 // GCN
: error
: missing message operation
100 s_sendmsg sendmsg
(MSG_SYSMSG
, SYSMSG_OP_ECC_ERR_INTERRUPT
, 0)
101 // GCN
: error
: message operation does
not support streams
103 s_sendmsg sendmsg
(MSG_SYSMSG
, 0)
104 // GCN
: error
: invalid operation id
106 s_sendmsg sendmsg
(MSG_SYSMSG
, 5)
107 // GCN
: error
: invalid operation id
109 //===----------------------------------------------------------------------===//
111 //===----------------------------------------------------------------------===//
113 s_waitcnt lgkmcnt
(16)
114 // SICIVI
: error
: too large value for lgkmcnt
116 s_waitcnt lgkmcnt
(64)
117 // GCN
: error
: too large value for lgkmcnt
120 // GCN
: error
: too large value for expcnt
123 // SICIVI
: error
: too large value for vmcnt
126 // GFX10
: error
: too large value for vmcnt
128 s_waitcnt vmcnt
(0xFFFFFFFFFFFF0000)
129 // GCN
: error
: too large value for vmcnt
131 s_waitcnt vmcnt
(0), expcnt
(0), lgkmcnt
(0),
132 // GCN
: error
: expected
a counter name
134 s_waitcnt vmcnt
(0) & expcnt
(0) & lgkmcnt
(0)&
135 // GCN
: error
: expected
a counter name
137 s_waitcnt vmcnt
(0) & expcnt
(0) & x
138 // GCN
: error
: expected
a left parenthesis
140 s_waitcnt vmcnt
(0) & expcnt
(0) x
141 // GCN
: error
: expected
a left parenthesis
143 s_waitcnt vmcnt
(0) & expcnt
(0) & 1
144 // GCN
: error
: expected
a counter name
146 s_waitcnt vmcnt
(0) & expcnt
(0) 1
147 // GCN
: error
: expected
a counter name
149 s_waitcnt vmcnt
(0) & expcnt
(0) x
(0)
150 // GCN
: error
: invalid counter name x
153 // GCN
: error
: expected absolute expression
156 // GCN
: error
: expected absolute expression
159 // GCN
: error
: expected
a closing parenthesis
161 s_branch
0x80000000ffff
162 // GCN
: error
: expected
a 16-bit signed jump offset
165 // GCN
: error
: expected
a 16-bit signed jump offset
168 // GCN
: error
: expected
a 16-bit signed jump offset
171 // GCN
: error
: expected
a 16-bit signed jump offset
174 // GCN
: error
: invalid operand for instruction
177 // GCN
: error
: not a valid operand