Lines Matching refs:insn
69 uint32_t insn = GetInsn(code, literal_offset); in PatchPcRelativeReference() local
74 DCHECK_EQ((insn & 0xfffff07fu), 0x12345017u) in PatchPcRelativeReference()
75 << literal_offset << ", " << pc_insn_offset << ", 0x" << std::hex << insn; in PatchPcRelativeReference()
76 insn = PatchAuipc(insn, disp); in PatchPcRelativeReference()
78 DCHECK_EQ((insn & 0xfff00000u), 0x67800000u); in PatchPcRelativeReference()
79 CHECK((insn & 0x0000707fu) == 0x00000013u || // ADD in PatchPcRelativeReference()
80 (insn & 0x0000707fu) == 0x00006003u || // LWU in PatchPcRelativeReference()
81 (insn & 0x0000707fu) == 0x00003003u) // LD in PatchPcRelativeReference()
82 << "insn: 0x" << std::hex << insn << ", type: " << patch.GetType(); in PatchPcRelativeReference()
85 0x00000017 | (((insn >> 15) & 0x1fu) << 7)); in PatchPcRelativeReference()
87 insn = (insn & ~(0xfffu << 20)) | (imm12 << 20); in PatchPcRelativeReference()
89 SetInsn(code, literal_offset, insn); in PatchPcRelativeReference()