spu-opc.c 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* SPU opcode list
  2. Copyright 2006 Free Software Foundation, Inc.
  3. This file is part of GDB, GAS, and the GNU binutils.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License along
  13. with this program; if not, write to the Free Software Foundation, Inc.,
  14. 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
  15. #include <linux/kernel.h>
  16. #include "spu.h"
  17. /* This file holds the Spu opcode table */
  18. /*
  19. Example contents of spu-insn.h
  20. id_tag mode mode type opcode mnemonic asmtype dependency FPU L/S? branch? instruction
  21. QUAD WORD (0,RC,RB,RA,RT) latency
  22. APUOP(M_LQD, 1, 0, RI9, 0x1f8, "lqd", ASM_RI9IDX, 00012, FXU, 1, 0) Load Quadword d-form
  23. */
  24. const struct spu_opcode spu_opcodes[] = {
  25. #define APUOP(TAG,MACFORMAT,OPCODE,MNEMONIC,ASMFORMAT,DEP,PIPE) \
  26. { MACFORMAT, OPCODE, MNEMONIC, ASMFORMAT },
  27. #define APUOPFB(TAG,MACFORMAT,OPCODE,FB,MNEMONIC,ASMFORMAT,DEP,PIPE) \
  28. { MACFORMAT, OPCODE, MNEMONIC, ASMFORMAT },
  29. #include "spu-insns.h"
  30. #undef APUOP
  31. #undef APUOPFB
  32. };
  33. const int spu_num_opcodes = ARRAY_SIZE(spu_opcodes);