ppc-opc.c
Source contains low-bit mask syntaxSource references XOR syntax
SHA-2560286b6e15dbf0c789f9bfef4ea1b6164e18a304a5e21ee28d2b1b0820b6e4640
MaleculeH₂(Db₂Mg)
Evidence
19:51… Fifth Floor, Boston,
20 MA 02110-1301, USA. */
21
22#include "sysdep.h"
23#include <stdio.h>
24#include "opcode/ppc.h"
25#include "opintl.h"
26#include "libiberty.h"
27
28/* This file holds the PowerPC opcode table. The opcode table
29 includes almost all of the …
257:29… != (0x18 << 21))
258 *invalid = 1;
259 }
260
261 return ((insn & 0xfffc) ^ 0x8000) - 0x8000;
262}
263
264/* The BD field in a B form instruction when the + modifier is used.
265 This is like BDM, above, except tha …
576:20… e of 8");
577
578 return insn | ((value & 0xf8) << 18) | ((value >> 8) & 1);
579}
580
581static int64_t
582extract_dw (uint64_t insn,
583 ppc_cpu_t dialect ATTRIBUTE_UNUSED,
584 int *invalid ATTRIBUTE_UNUSED)
585{
586 int64_t dw = ((insn & 1) << 8) | ((insn >> 18) & 0xf8);
587 return dw - 512;
588}
589
590/* The D field in a DX form instruction when the field is split
591 into s …
755:66… actly
756 one bit of the mask field is set. */
757 if ((insn & (1 << 20)) != 0)
758 {
759 if (value == 0 || (value & -value) != value)
⋯5 lines
2809:42… instruction. */
2810#define BI BA
2811#define BI_MASK (0x1f << 16)
2812 { 0x1f, 16, NULL, NULL, PPC_OPERAND_CR_BIT },
2813
2814 /* The BT, BA and BB fields in a XL form instruction when they must all
2815 be the sa …