Lines Matching full:pc

139 bool EmulateInstructionLoongArch::WritePC(lldb::addr_t pc) {  in WritePC()  argument
144 LLDB_REGNUM_GENERIC_PC, pc); in WritePC()
272 // PC = PC + SignExtend({offs21, 2'b0}, GRLEN)
276 uint64_t pc = ReadPC(&success); in EmulateBEQZ64() local
284 uint64_t next_pc = pc + llvm::SignExtend64<23>(offs21 << 2); in EmulateBEQZ64()
287 return WritePC(pc + 4); in EmulateBEQZ64()
292 // PC = PC + SignExtend({offs21, 2'b0}, GRLEN)
296 uint64_t pc = ReadPC(&success); in EmulateBNEZ64() local
304 uint64_t next_pc = pc + llvm::SignExtend64<23>(offs21 << 2); in EmulateBNEZ64()
307 return WritePC(pc + 4); in EmulateBNEZ64()
312 // PC = PC + SignExtend({offs21, 2'b0}, GRLEN)
316 uint64_t pc = ReadPC(&success); in EmulateBCEQZ64() local
325 uint64_t next_pc = pc + llvm::SignExtend64<23>(offs21 << 2); in EmulateBCEQZ64()
328 return WritePC(pc + 4); in EmulateBCEQZ64()
334 // PC = PC + SignExtend({offs21, 2'b0}, GRLEN)
338 uint64_t pc = ReadPC(&success); in EmulateBCNEZ64() local
347 uint64_t next_pc = pc + llvm::SignExtend64<23>(offs21 << 2); in EmulateBCNEZ64()
350 return WritePC(pc + 4); in EmulateBCNEZ64()
355 // GR[rd] = PC + 4
356 // PC = GR[rj] + SignExtend({offs16, 2'b0}, GRLEN)
361 uint64_t pc = ReadPC(&success); in EmulateJIRL64() local
365 if (!WriteRegisterUnsigned(ctx, eRegisterKindLLDB, rd, pc + 4)) in EmulateJIRL64()
375 // PC = PC + SignExtend({offs26, 2' b0}, GRLEN)
378 uint64_t pc = ReadPC(&success); in EmulateB64() local
382 uint64_t next_pc = pc + llvm::SignExtend64<28>(offs26 << 2); in EmulateB64()
387 // GR[1] = PC + 4
388 // PC = PC + SignExtend({offs26, 2'b0}, GRLEN)
391 uint64_t pc = ReadPC(&success); in EmulateBL64() local
395 if (!WriteRegisterUnsigned(ctx, eRegisterKindLLDB, gpr_r1_loongarch, pc + 4)) in EmulateBL64()
398 uint64_t next_pc = pc + llvm::SignExtend64<28>(offs26 << 2); in EmulateBL64()
404 // PC = PC + SignExtend({offs16, 2'b0}, GRLEN)
409 uint64_t pc = ReadPC(&success); in EmulateBEQ64() local
419 uint64_t next_pc = pc + llvm::SignExtend64<18>(Bits32(inst, 25, 10) << 2); in EmulateBEQ64()
422 return WritePC(pc + 4); in EmulateBEQ64()
427 // PC = PC + SignExtend({offs16, 2'b0}, GRLEN)
432 uint64_t pc = ReadPC(&success); in EmulateBNE64() local
442 uint64_t next_pc = pc + llvm::SignExtend64<18>(Bits32(inst, 25, 10) << 2); in EmulateBNE64()
445 return WritePC(pc + 4); in EmulateBNE64()
450 // PC = PC + SignExtend({offs16, 2'b0}, GRLEN)
455 uint64_t pc = ReadPC(&success); in EmulateBLT64() local
467 uint64_t next_pc = pc + llvm::SignExtend64<18>(Bits32(inst, 25, 10) << 2); in EmulateBLT64()
470 return WritePC(pc + 4); in EmulateBLT64()
475 // PC = PC + SignExtend({offs16, 2'b0}, GRLEN)
480 uint64_t pc = ReadPC(&success); in EmulateBGE64() local
492 uint64_t next_pc = pc + llvm::SignExtend64<18>(Bits32(inst, 25, 10) << 2); in EmulateBGE64()
495 return WritePC(pc + 4); in EmulateBGE64()
500 // PC = PC + SignExtend({offs16, 2'b0}, GRLEN)
505 uint64_t pc = ReadPC(&success); in EmulateBLTU64() local
515 uint64_t next_pc = pc + llvm::SignExtend64<18>(Bits32(inst, 25, 10) << 2); in EmulateBLTU64()
518 return WritePC(pc + 4); in EmulateBLTU64()
523 // PC = PC + SignExtend({offs16, 2'b0}, GRLEN)
528 uint64_t pc = ReadPC(&success); in EmulateBGEU64() local
538 uint64_t next_pc = pc + llvm::SignExtend64<18>(Bits32(inst, 25, 10) << 2); in EmulateBGEU64()
541 return WritePC(pc + 4); in EmulateBGEU64()