Lines Matching defs:encoding
30 // The instruction encoding of bits 21-30 from the ISA for the Xform and Dform
144 static bool checkPPCLegacyInsn(uint32_t encoding) {
145 PPCLegacyInsn insn = static_cast<PPCLegacyInsn>(encoding);
429 // Extracts the 'PO' field of an instruction encoding.
430 static uint8_t getPrimaryOpCode(uint32_t encoding) { return (encoding >> 26); }
432 static bool isDQFormInstruction(uint32_t encoding) {
433 switch (getPrimaryOpCode(encoding)) {
444 return (encoding & 3) == 0x1;
463 static PPCLegacyInsn getPPCLegacyInsn(uint32_t encoding) {
464 uint32_t opc = encoding & 0xfc000000;
470 !isDQFormInstruction(encoding))
471 opc = encoding & 0xfc000003;
473 opc = encoding & 0xfc000007;
475 opc = encoding & 0xfc00000f;
505 static uint64_t getPCRelativeForm(uint32_t encoding) {
506 PPCLegacyInsn origInsn = getPPCLegacyInsn(encoding);
512 (uint64_t)pcrelInsn | (encoding & (uint64_t)origInsnMask);
516 pcrelEncoding |= (encoding & 0x8) << 23;
520 static bool isInstructionUpdateForm(uint32_t encoding) {
521 switch (getPrimaryOpCode(encoding)) {
540 return (encoding & 3) == 1;
845 // The full encoding is returned here to distinguish between the different
1285 // DQ-form instructions use bits 28-31 as part of the instruction encoding
1345 // DQ-form instructions use bits 28-31 as part of the instruction encoding