treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / powerpc / xmon / spu-opc.c
blob6d8197cc540be0175756f4e9e1221ca635430ba0
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* SPU opcode list
4 Copyright 2006 Free Software Foundation, Inc.
6 This file is part of GDB, GAS, and the GNU binutils.
8 */
10 #include <linux/kernel.h>
11 #include <linux/bug.h>
12 #include "spu.h"
14 /* This file holds the Spu opcode table */
18 Example contents of spu-insn.h
19 id_tag mode mode type opcode mnemonic asmtype dependency FPU L/S? branch? instruction
20 QUAD WORD (0,RC,RB,RA,RT) latency
21 APUOP(M_LQD, 1, 0, RI9, 0x1f8, "lqd", ASM_RI9IDX, 00012, FXU, 1, 0) Load Quadword d-form
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
34 const int spu_num_opcodes = ARRAY_SIZE(spu_opcodes);