spu-opc.c 1.0 KB

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