Home
last modified time | relevance | path

Searched refs:disp (Results 1 – 6 of 6) sorted by relevance

/art/dex2oat/linker/arm/
Drelative_patcher_thumb2.cc110 uint32_t disp = target_offset - (patch_offset + kPcDisplacement); in PatchBakerReadBarrierBranch() local
111 DCHECK((disp >> 20) == 0u || (disp >> 20) == 0xfffu); // 21-bit signed. in PatchBakerReadBarrierBranch()
112 insn |= ((disp << (26 - 20)) & 0x04000000u) | // Shift bit 20 to 26, "S". in PatchBakerReadBarrierBranch()
113 ((disp >> (19 - 11)) & 0x00000800u) | // Shift bit 19 to 13, "J1". in PatchBakerReadBarrierBranch()
114 ((disp >> (18 - 13)) & 0x00002000u) | // Shift bit 18 to 11, "J2". in PatchBakerReadBarrierBranch()
115 ((disp << (16 - 12)) & 0x003f0000u) | // Shift bits 12-17 to 16-25, "imm6". in PatchBakerReadBarrierBranch()
116 ((disp >> (1 - 0)) & 0x000007ffu); // Shift bits 1-12 to 0-11, "imm11". in PatchBakerReadBarrierBranch()
/art/compiler/utils/x86/
Dassembler_x86.h110 void SetDisp8(int8_t disp) { in SetDisp8() argument
112 encoding_[length_++] = static_cast<uint8_t>(disp); in SetDisp8()
115 void SetDisp32(int32_t disp) { in SetDisp32() argument
117 int disp_size = sizeof(disp); in SetDisp32()
118 memmove(&encoding_[length_], &disp, disp_size); in SetDisp32()
153 Address(Register base_in, int32_t disp) { in Address() argument
154 Init(base_in, disp); in Address()
157 Address(Register base_in, int32_t disp, AssemblerFixup *fixup) { in Address() argument
158 Init(base_in, disp); in Address()
162 Address(Register base_in, Offset disp) { in Address() argument
[all …]
/art/dex2oat/linker/arm64/
Drelative_patcher_arm64.cc211 uint32_t disp = target_offset - ((patch_offset - literal_offset + pc_insn_offset) & ~0xfffu); in PatchPcRelativeReference() local
245 insn = PatchAdrp(insn, disp); in PatchPcRelativeReference()
296 uint32_t imm12 = (disp & 0xfffu) >> shift; in PatchPcRelativeReference()
322 uint32_t disp = target_offset - patch_offset; in PatchBakerReadBarrierBranch() local
323 DCHECK((disp >> 20) == 0u || (disp >> 20) == 4095u); // 21-bit signed. in PatchBakerReadBarrierBranch()
324 insn |= (disp << (5 - 2)) & 0x00ffffe0u; // Shift bits 2-20 to 5-23. in PatchBakerReadBarrierBranch()
348 uint32_t Arm64RelativePatcher::PatchAdrp(uint32_t adrp, uint32_t disp) { in PatchAdrp() argument
351 ((disp & 0x00003000u) << (29 - 12)) | in PatchAdrp()
353 ((disp & 0xffffc000u) >> (12 + 2 - 5)) | in PatchAdrp()
359 ((disp & 0x80000000u) >> (31 - 23)); in PatchAdrp()
Drelative_patcher_arm64_test.cc269 uint32_t disp = target_offset - (adrp_offset & ~0xfffu); in GenNopsAndAdrpAndUse() local
271 DCHECK_ALIGNED(disp, 1u << 2); in GenNopsAndAdrpAndUse()
273 ((disp & 0xfffu) << (10 - 2)); // imm12 = ((disp & 0xfffu) >> 2) is at bit 10. in GenNopsAndAdrpAndUse()
276 (disp & 0xfffu) << 10; // imm12 = (disp & 0xfffu) is at bit 10. in GenNopsAndAdrpAndUse()
281 ((disp & 0x3000u) << (29 - 12)) | // immlo = ((disp & 0x3000u) >> 12) is at bit 29, in GenNopsAndAdrpAndUse()
282 ((disp & 0xffffc000) >> (14 - 5)) | // immhi = (disp >> 14) is at bit 5, in GenNopsAndAdrpAndUse()
284 ((disp & 0x80000000) >> (31 - 23)); // sign bit in immhi is at bit 23. in GenNopsAndAdrpAndUse()
871 [&](uint32_t adrp_offset, uint32_t disp) { in TEST_F() argument
874 /*sprel_disp_in_load_units=*/ disp >> 2, in TEST_F()
885 [&](uint32_t adrp_offset, uint32_t disp) { in TEST_F() argument
[all …]
Drelative_patcher_arm64.h62 static uint32_t PatchAdrp(uint32_t adrp, uint32_t disp);
/art/compiler/utils/x86_64/
Dassembler_x86_64.h152 void SetDisp8(int8_t disp) { in SetDisp8() argument
154 encoding_[length_++] = static_cast<uint8_t>(disp); in SetDisp8()
157 void SetDisp32(int32_t disp) { in SetDisp32() argument
159 int disp_size = sizeof(disp); in SetDisp32()
160 memmove(&encoding_[length_], &disp, disp_size); in SetDisp32()
189 Address(CpuRegister base_in, int32_t disp) { in Address() argument
190 Init(base_in, disp); in Address()
193 Address(CpuRegister base_in, Offset disp) { in Address() argument
194 Init(base_in, disp.Int32Value()); in Address()
197 Address(CpuRegister base_in, FrameOffset disp) { in Address() argument
[all …]