2010-08-03 Tristan Gingold <gingold@adacore.com>
[binutils.git] / opcodes / spu-opc.c
blobbd1a844d9ac6e6c504d4fc0ee5e908a03e7eda81
1 /* SPU opcode list
3 Copyright 2006, 2007 Free Software Foundation, Inc.
5 This file is part of the GNU opcodes library.
7 This library is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
10 any later version.
12 It is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this file; see the file COPYING. If not, write to the
19 Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
20 MA 02110-1301, USA. */
22 #include "opcode/spu.h"
24 /* This file holds the Spu opcode table */
28 Example contents of spu-insn.h
29 id_tag mode mode type opcode mnemonic asmtype dependency FPU L/S? branch? instruction
30 QUAD WORD (0,RC,RB,RA,RT) latency
31 APUOP(M_LQD, 1, 0, RI9, 0x1f8, "lqd", ASM_RI9IDX, 00012, FXU, 1, 0) Load Quadword d-form
34 const struct spu_opcode spu_opcodes[] = {
35 #define APUOP(TAG,MACFORMAT,OPCODE,MNEMONIC,ASMFORMAT,DEP,PIPE) \
36 { MACFORMAT, OPCODE, MNEMONIC, ASMFORMAT },
37 #define APUOPFB(TAG,MACFORMAT,OPCODE,FB,MNEMONIC,ASMFORMAT,DEP,PIPE) \
38 { MACFORMAT, OPCODE, MNEMONIC, ASMFORMAT },
39 #include "opcode/spu-insns.h"
40 #undef APUOP
41 #undef APUOPFB
44 const int spu_num_opcodes =
45 sizeof (spu_opcodes) / sizeof (spu_opcodes[0]);