2 * Copyright (C) 2009 Nicolai Haehnle.
6 * Permission is hereby granted, free of charge, to any person obtaining
7 * a copy of this software and associated documentation files (the
8 * "Software"), to deal in the Software without restriction, including
9 * without limitation the rights to use, copy, modify, merge, publish,
10 * distribute, sublicense, and/or sell copies of the Software, and to
11 * permit persons to whom the Software is furnished to do so, subject to
12 * the following conditions:
14 * The above copyright notice and this permission notice (including the
15 * next paragraph) shall be included in all copies or substantial
16 * portions of the Software.
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21 * IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
22 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 #include "radeon_opcodes.h"
30 struct rc_opcode_info rc_opcodes
[MAX_RC_OPCODE
] = {
32 .Opcode
= RC_OPCODE_NOP
,
36 .Opcode
= RC_OPCODE_ILLEGAL_OPCODE
,
37 .Name
= "ILLEGAL OPCODE"
40 .Opcode
= RC_OPCODE_ABS
,
47 .Opcode
= RC_OPCODE_ADD
,
54 .Opcode
= RC_OPCODE_ARL
,
60 .Opcode
= RC_OPCODE_CMP
,
67 .Opcode
= RC_OPCODE_COS
,
74 .Opcode
= RC_OPCODE_DDX
,
81 .Opcode
= RC_OPCODE_DDY
,
88 .Opcode
= RC_OPCODE_DP3
,
94 .Opcode
= RC_OPCODE_DP4
,
100 .Opcode
= RC_OPCODE_DPH
,
106 .Opcode
= RC_OPCODE_DST
,
112 .Opcode
= RC_OPCODE_EX2
,
116 .IsStandardScalar
= 1
119 .Opcode
= RC_OPCODE_EXP
,
125 .Opcode
= RC_OPCODE_FLR
,
132 .Opcode
= RC_OPCODE_FRC
,
139 .Opcode
= RC_OPCODE_KIL
,
144 .Opcode
= RC_OPCODE_LG2
,
148 .IsStandardScalar
= 1
151 .Opcode
= RC_OPCODE_LIT
,
157 .Opcode
= RC_OPCODE_LOG
,
163 .Opcode
= RC_OPCODE_LRP
,
170 .Opcode
= RC_OPCODE_MAD
,
177 .Opcode
= RC_OPCODE_MAX
,
184 .Opcode
= RC_OPCODE_MIN
,
191 .Opcode
= RC_OPCODE_MOV
,
198 .Opcode
= RC_OPCODE_MUL
,
205 .Opcode
= RC_OPCODE_POW
,
209 .IsStandardScalar
= 1
212 .Opcode
= RC_OPCODE_RCP
,
216 .IsStandardScalar
= 1
219 .Opcode
= RC_OPCODE_RSQ
,
223 .IsStandardScalar
= 1
226 .Opcode
= RC_OPCODE_SCS
,
232 .Opcode
= RC_OPCODE_SEQ
,
239 .Opcode
= RC_OPCODE_SFL
,
246 .Opcode
= RC_OPCODE_SGE
,
253 .Opcode
= RC_OPCODE_SGT
,
260 .Opcode
= RC_OPCODE_SIN
,
264 .IsStandardScalar
= 1
267 .Opcode
= RC_OPCODE_SLE
,
274 .Opcode
= RC_OPCODE_SLT
,
281 .Opcode
= RC_OPCODE_SNE
,
288 .Opcode
= RC_OPCODE_SUB
,
295 .Opcode
= RC_OPCODE_SWZ
,
302 .Opcode
= RC_OPCODE_XPD
,
308 .Opcode
= RC_OPCODE_TEX
,
315 .Opcode
= RC_OPCODE_TXB
,
322 .Opcode
= RC_OPCODE_TXD
,
329 .Opcode
= RC_OPCODE_TXL
,
336 .Opcode
= RC_OPCODE_TXP
,
343 .Opcode
= RC_OPCODE_REPL_ALPHA
,
344 .Name
= "REPL_ALPHA",