Back to index

cell-binutils  2.17cvs20070401
spu-opc.c
Go to the documentation of this file.
00001 /* SPU opcode list
00002 
00003    Copyright 2006 Free Software Foundation, Inc.
00004 
00005    This file is part of GDB, GAS, and the GNU binutils.
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 2 of the License, or
00010    (at your option) any later version.
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License along
00018    with this program; if not, write to the Free Software Foundation, Inc.,
00019    51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00020 
00021 #include "opcode/spu.h"
00022 
00023 /* This file holds the Spu opcode table */
00024 
00025 
00026 /*
00027    Example contents of spu-insn.h
00028       id_tag  mode   mode   type   opcode mnemonic      asmtype           dependency              FPU    L/S?   branch?       instruction   
00029                 QUAD WORD                                               (0,RC,RB,RA,RT)    latency                                                 
00030    APUOP(M_LQD,      1,     0,     RI9,   0x1f8, "lqd",        ASM_RI9IDX,   00012,        FXU,   1,     0)     Load Quadword d-form 
00031  */
00032 
00033 const struct spu_opcode spu_opcodes[] = {
00034 #define APUOP(TAG,MACFORMAT,OPCODE,MNEMONIC,ASMFORMAT,DEP,PIPE) \
00035        { MACFORMAT, OPCODE, MNEMONIC, ASMFORMAT },
00036 #define APUOPFB(TAG,MACFORMAT,OPCODE,FB,MNEMONIC,ASMFORMAT,DEP,PIPE) \
00037        { MACFORMAT, OPCODE, MNEMONIC, ASMFORMAT },
00038 #include "opcode/spu-insns.h"
00039 #undef APUOP
00040 #undef APUOPFB
00041 };
00042 
00043 const int spu_num_opcodes =
00044   sizeof (spu_opcodes) / sizeof (spu_opcodes[0]);