Lines Matching +full:0 +full:xfc000000
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
39 {0xfc000000, 0x40000000, &EmulateInstructionLoongArch::EmulateBEQZ, in GetOpcodeForInstruction()
41 {0xfc000000, 0x44000000, &EmulateInstructionLoongArch::EmulateBNEZ, in GetOpcodeForInstruction()
43 {0xfc000300, 0x48000000, &EmulateInstructionLoongArch::EmulateBCEQZ, in GetOpcodeForInstruction()
45 {0xfc000300, 0x48000100, &EmulateInstructionLoongArch::EmulateBCNEZ, in GetOpcodeForInstruction()
47 {0xfc000000, 0x4c000000, &EmulateInstructionLoongArch::EmulateJIRL, in GetOpcodeForInstruction()
49 {0xfc000000, 0x50000000, &EmulateInstructionLoongArch::EmulateB, in GetOpcodeForInstruction()
51 {0xfc000000, 0x54000000, &EmulateInstructionLoongArch::EmulateBL, in GetOpcodeForInstruction()
53 {0xfc000000, 0x58000000, &EmulateInstructionLoongArch::EmulateBEQ, in GetOpcodeForInstruction()
55 {0xfc000000, 0x5c000000, &EmulateInstructionLoongArch::EmulateBNE, in GetOpcodeForInstruction()
57 {0xfc000000, 0x60000000, &EmulateInstructionLoongArch::EmulateBLT, in GetOpcodeForInstruction()
59 {0xfc000000, 0x64000000, &EmulateInstructionLoongArch::EmulateBGE, in GetOpcodeForInstruction()
61 {0xfc000000, 0x68000000, &EmulateInstructionLoongArch::EmulateBLTU, in GetOpcodeForInstruction()
63 {0xfc000000, 0x6c000000, &EmulateInstructionLoongArch::EmulateBGEU, in GetOpcodeForInstruction()
65 {0x00000000, 0x00000000, &EmulateInstructionLoongArch::EmulateNonJMP, in GetOpcodeForInstruction()
69 for (size_t i = 0; i < num_loongarch_opcodes; ++i) in GetOpcodeForInstruction()
95 lldb::addr_t old_pc = 0; in EvaluateInstruction()
128 uint32_t inst = (uint32_t)ReadMemoryUnsigned(ctx, m_addr, 4, 0, &success); in ReadInstruction()
271 // if GR[rj] == 0:
279 uint32_t offs21 = Bits32(inst, 25, 10) + (Bits32(inst, 4, 0) << 16); in EmulateBEQZ64()
280 uint64_t rj_val = ReadRegisterUnsigned(eRegisterKindLLDB, rj, 0, &success); in EmulateBEQZ64()
283 if (rj_val == 0) { in EmulateBEQZ64()
291 // if GR[rj] != 0:
299 uint32_t offs21 = Bits32(inst, 25, 10) + (Bits32(inst, 4, 0) << 16); in EmulateBNEZ64()
300 uint64_t rj_val = ReadRegisterUnsigned(eRegisterKindLLDB, rj, 0, &success); in EmulateBNEZ64()
303 if (rj_val != 0) { in EmulateBNEZ64()
311 // if CFR[cj] == 0:
319 uint32_t offs21 = Bits32(inst, 25, 10) + (Bits32(inst, 4, 0) << 16); in EmulateBCEQZ64()
321 (uint8_t)ReadRegisterUnsigned(eRegisterKindLLDB, cj, 0, &success); in EmulateBCEQZ64()
324 if (cj_val == 0) { in EmulateBCEQZ64()
333 // if CFR[cj] != 0:
341 uint32_t offs21 = Bits32(inst, 25, 10) + (Bits32(inst, 4, 0) << 16); in EmulateBCNEZ64()
343 (uint8_t)ReadRegisterUnsigned(eRegisterKindLLDB, cj, 0, &success); in EmulateBCNEZ64()
346 if (cj_val != 0) { in EmulateBCNEZ64()
359 uint32_t rd = Bits32(inst, 4, 0); in EmulateJIRL64()
367 uint64_t rj_val = ReadRegisterUnsigned(eRegisterKindLLDB, rj, 0, &success); in EmulateJIRL64()
381 uint32_t offs26 = Bits32(inst, 25, 10) + (Bits32(inst, 9, 0) << 16); in EmulateB64()
397 uint32_t offs26 = Bits32(inst, 25, 10) + (Bits32(inst, 9, 0) << 16); in EmulateBL64()
408 uint32_t rd = Bits32(inst, 4, 0); in EmulateBEQ64()
412 uint64_t rj_val = ReadRegisterUnsigned(eRegisterKindLLDB, rj, 0, &success); in EmulateBEQ64()
415 uint64_t rd_val = ReadRegisterUnsigned(eRegisterKindLLDB, rd, 0, &success); in EmulateBEQ64()
431 uint32_t rd = Bits32(inst, 4, 0); in EmulateBNE64()
435 uint64_t rj_val = ReadRegisterUnsigned(eRegisterKindLLDB, rj, 0, &success); in EmulateBNE64()
438 uint64_t rd_val = ReadRegisterUnsigned(eRegisterKindLLDB, rd, 0, &success); in EmulateBNE64()
454 uint32_t rd = Bits32(inst, 4, 0); in EmulateBLT64()
459 (int64_t)ReadRegisterUnsigned(eRegisterKindLLDB, rj, 0, &success); in EmulateBLT64()
463 (int64_t)ReadRegisterUnsigned(eRegisterKindLLDB, rd, 0, &success); in EmulateBLT64()
479 uint32_t rd = Bits32(inst, 4, 0); in EmulateBGE64()
484 (int64_t)ReadRegisterUnsigned(eRegisterKindLLDB, rj, 0, &success); in EmulateBGE64()
488 (int64_t)ReadRegisterUnsigned(eRegisterKindLLDB, rd, 0, &success); in EmulateBGE64()
504 uint32_t rd = Bits32(inst, 4, 0); in EmulateBLTU64()
508 uint64_t rj_val = ReadRegisterUnsigned(eRegisterKindLLDB, rj, 0, &success); in EmulateBLTU64()
511 uint64_t rd_val = ReadRegisterUnsigned(eRegisterKindLLDB, rd, 0, &success); in EmulateBLTU64()
527 uint32_t rd = Bits32(inst, 4, 0); in EmulateBGEU64()
531 uint64_t rj_val = ReadRegisterUnsigned(eRegisterKindLLDB, rj, 0, &success); in EmulateBGEU64()
534 uint64_t rd_val = ReadRegisterUnsigned(eRegisterKindLLDB, rd, 0, &success); in EmulateBGEU64()