1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0-or-later 2*4882a593Smuzhiyun /* SPU opcode list 3*4882a593Smuzhiyun 4*4882a593Smuzhiyun Copyright 2006 Free Software Foundation, Inc. 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun This file is part of GDB, GAS, and the GNU binutils. 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun */ 9*4882a593Smuzhiyun 10*4882a593Smuzhiyun #include <linux/kernel.h> 11*4882a593Smuzhiyun #include <linux/bug.h> 12*4882a593Smuzhiyun #include "spu.h" 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun /* This file holds the Spu opcode table */ 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun /* 18*4882a593Smuzhiyun Example contents of spu-insn.h 19*4882a593Smuzhiyun id_tag mode mode type opcode mnemonic asmtype dependency FPU L/S? branch? instruction 20*4882a593Smuzhiyun QUAD WORD (0,RC,RB,RA,RT) latency 21*4882a593Smuzhiyun APUOP(M_LQD, 1, 0, RI9, 0x1f8, "lqd", ASM_RI9IDX, 00012, FXU, 1, 0) Load Quadword d-form 22*4882a593Smuzhiyun */ 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun const struct spu_opcode spu_opcodes[] = { 25*4882a593Smuzhiyun #define APUOP(TAG,MACFORMAT,OPCODE,MNEMONIC,ASMFORMAT,DEP,PIPE) \ 26*4882a593Smuzhiyun { MACFORMAT, OPCODE, MNEMONIC, ASMFORMAT }, 27*4882a593Smuzhiyun #define APUOPFB(TAG,MACFORMAT,OPCODE,FB,MNEMONIC,ASMFORMAT,DEP,PIPE) \ 28*4882a593Smuzhiyun { MACFORMAT, OPCODE, MNEMONIC, ASMFORMAT }, 29*4882a593Smuzhiyun #include "spu-insns.h" 30*4882a593Smuzhiyun #undef APUOP 31*4882a593Smuzhiyun #undef APUOPFB 32*4882a593Smuzhiyun }; 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun const int spu_num_opcodes = ARRAY_SIZE(spu_opcodes); 35