Lines Matching refs:int32_t

279       int32_t anchor_position = table.GetAnchorLabel()->Position() + 4;  in EmitJumpTables()
286 int32_t offset = target->Position() - anchor_position; in EmitJumpTables()
287 buffer_.Emit<int32_t>(offset); in EmitJumpTables()
325 inline int16_t Thumb2Assembler::BEncoding16(int32_t offset, Condition cond) { in BEncoding16()
330 encoding |= B12 | (static_cast<int32_t>(cond) << 8) | ((offset >> 1) & 0xff); in BEncoding16()
338 inline int32_t Thumb2Assembler::BEncoding32(int32_t offset, Condition cond) { in BEncoding32()
340 int32_t s = (offset >> 31) & 1; // Sign bit. in BEncoding32()
341 int32_t encoding = B31 | B30 | B29 | B28 | B15 | in BEncoding32()
347 encoding |= (static_cast<int32_t>(cond) << 22) | ((offset & 0x3f000) << (16 - 12)) | in BEncoding32()
352 int32_t j1 = ((offset >> 23) ^ s ^ 1) & 1; // Calculate J1 from I1 extracted from bit 23. in BEncoding32()
353 int32_t j2 = ((offset >> 22)^ s ^ 1) & 1; // Calculate J2 from I2 extracted from bit 22. in BEncoding32()
361 inline int16_t Thumb2Assembler::CbxzEncoding16(Register rn, int32_t offset, Condition cond) { in CbxzEncoding16()
366 return B15 | B13 | B12 | B8 | (cond == NE ? B11 : 0) | static_cast<int32_t>(rn) | in CbxzEncoding16()
371 inline int16_t Thumb2Assembler::CmpRnImm8Encoding16(Register rn, int32_t value) { in CmpRnImm8Encoding16()
379 return B14 | B10 | (static_cast<int32_t>(rm) << 3) | in AddRdnRmEncoding16()
380 (static_cast<int32_t>(rdn) & 7) | ((static_cast<int32_t>(rdn) & 8) << 4); in AddRdnRmEncoding16()
383 inline int32_t Thumb2Assembler::MovwEncoding32(Register rd, int32_t value) { in MovwEncoding32()
386 (static_cast<int32_t>(rd) << 8) | in MovwEncoding32()
393 inline int32_t Thumb2Assembler::MovtEncoding32(Register rd, int32_t value) { in MovtEncoding32()
395 int32_t movw_encoding = MovwEncoding32(rd, (value >> 16) & 0xffff); in MovtEncoding32()
399 inline int32_t Thumb2Assembler::MovModImmEncoding32(Register rd, int32_t value) { in MovModImmEncoding32()
403 (static_cast<int32_t>(rd) << 8) | static_cast<int32_t>(mod_imm); in MovModImmEncoding32()
406 inline int16_t Thumb2Assembler::LdrLitEncoding16(Register rt, int32_t offset) { in LdrLitEncoding16()
410 return B14 | B11 | (static_cast<int32_t>(rt) << 8) | (offset >> 2); in LdrLitEncoding16()
413 inline int32_t Thumb2Assembler::LdrLitEncoding32(Register rt, int32_t offset) { in LdrLitEncoding32()
418 inline int32_t Thumb2Assembler::LdrdEncoding32(Register rt, Register rt2, Register rn, int32_t offs… in LdrdEncoding32()
423 (static_cast<int32_t>(rn) << 16) | (static_cast<int32_t>(rt) << 12) | in LdrdEncoding32()
424 (static_cast<int32_t>(rt2) << 8) | (offset >> 2); in LdrdEncoding32()
427 inline int32_t Thumb2Assembler::VldrsEncoding32(SRegister sd, Register rn, int32_t offset) { in VldrsEncoding32()
432 (static_cast<int32_t>(rn) << 16) | in VldrsEncoding32()
433 ((static_cast<int32_t>(sd) & 0x01) << (22 - 0)) | // Move D from bit 0 to bit 22. in VldrsEncoding32()
434 ((static_cast<int32_t>(sd) & 0x1e) << (12 - 1)) | // Move Vd from bits 1-4 to bits 12-15. in VldrsEncoding32()
438 inline int32_t Thumb2Assembler::VldrdEncoding32(DRegister dd, Register rn, int32_t offset) { in VldrdEncoding32()
444 ((static_cast<int32_t>(dd) & 0x10) << (22 - 4)) | // Move D from bit 4 to bit 22. in VldrdEncoding32()
445 ((static_cast<int32_t>(dd) & 0x0f) << (12 - 0)) | // Move Vd from bits 0-3 to bits 12-15. in VldrdEncoding32()
449 inline int16_t Thumb2Assembler::LdrRtRnImm5Encoding16(Register rt, Register rn, int32_t offset) { in LdrRtRnImm5Encoding16()
455 (static_cast<int32_t>(rn) << 3) | static_cast<int32_t>(rt) | in LdrRtRnImm5Encoding16()
459 int32_t Thumb2Assembler::Fixup::LoadWideOrFpEncoding(Register rbase, int32_t offset) const { in LoadWideOrFpEncoding()
473 inline int32_t Thumb2Assembler::LdrRtRnImm12Encoding(Register rt, Register rn, int32_t offset) { in LdrRtRnImm12Encoding()
478 inline int16_t Thumb2Assembler::AdrEncoding16(Register rd, int32_t offset) { in AdrEncoding16()
485 inline int32_t Thumb2Assembler::AdrEncoding32(Register rd, int32_t offset) { in AdrEncoding32()
490 int32_t immediate_mask = in AdrEncoding32()
654 int32_t encoding = B31 | B30 | B29 | B28 | B27 | B25 | B24 | in mul()
673 int32_t encoding = B31 | B30 | B29 | B28 | B27 | B25 | B24 | in mla()
691 int32_t encoding = B31 | B30 | B29 | B28 | B27 | B25 | B24 | in mls()
709 int32_t encoding = B31 | B30 | B29 | B28 | B27 | B25 | B24 | B23 | in smull()
727 int32_t encoding = B31 | B30 | B29 | B28 | B27 | B25 | B24 | B23 | in umull()
744 int32_t encoding = B31 | B30 | B29 | B28 | B27 | B25 | B24 | B23 | B20 | in sdiv()
761 int32_t encoding = B31 | B30 | B29 | B28 | B27 | B25 | B24 | B23 | B21 | B20 | in udiv()
782 int32_t encoding = B31 | B30 | B29 | B28 | B25 | in sbfx()
803 int32_t encoding = B31 | B30 | B29 | B28 | B25 | in ubfx()
864 int32_t encoding = B31 | B30 | B29 | B27 | B22 | B20 | in ldrd()
865 static_cast<int32_t>(rd) << 12 | in ldrd()
866 static_cast<int32_t>(rd2) << 8 | in ldrd()
881 int32_t encoding = B31 | B30 | B29 | B27 | B22 | in strd()
882 static_cast<int32_t>(rd) << 12 | in strd()
883 static_cast<int32_t>(rd2) << 8 | in strd()
1162 void Thumb2Assembler::Emit32(int32_t value) { in Emit32()
1372 int32_t encoding = 0; in Emit32BitDataProcessing()
1813 int32_t encoding = B31 | B30 | B29 | B27 | B25 | B22 | in EmitShift()
1862 int32_t encoding = B31 | B30 | B29 | B28 | B27 | B25 | in EmitShift()
1944 inline int32_t Thumb2Assembler::Fixup::GetOffset(uint32_t current_code_size) const { in GetOffset()
1945 static constexpr int32_t int32_min = std::numeric_limits<int32_t>::min(); in GetOffset()
1946 static constexpr int32_t int32_max = std::numeric_limits<int32_t>::max(); in GetOffset()
1950 int32_t diff = static_cast<int32_t>(target_) - static_cast<int32_t>(location_); in GetOffset()
1953 diff += static_cast<int32_t>(adjustment_); in GetOffset()
1955 DCHECK_LE(int32_min + static_cast<int32_t>(adjustment_), diff); in GetOffset()
1956 diff -= static_cast<int32_t>(adjustment_); in GetOffset()
2136 int32_t encoding = BEncoding32(GetOffset(code_size), cond_); in Emit()
2168 int32_t b_encoding = BEncoding32(GetOffset(code_size), cond_); in Emit()
2184 int32_t encoding = LdrLitEncoding32(rn_, GetOffset(code_size)); in Emit()
2191 int32_t mov_encoding = MovwEncoding32(rn_, GetOffset(code_size)); in Emit()
2202 int32_t offset = GetOffset(code_size); in Emit()
2203 int32_t mov_encoding = MovModImmEncoding32(rn_, offset & ~0xfff); in Emit()
2205 int32_t ldr_encoding = LdrRtRnImm12Encoding(rn_, rn_, offset & 0xfff); in Emit()
2215 int32_t offset = GetOffset(code_size); in Emit()
2216 int32_t movw_encoding = MovwEncoding32(rn_, offset & 0xffff); in Emit()
2217 int32_t movt_encoding = MovtEncoding32(rn_, offset & ~0xffff); in Emit()
2219 int32_t ldr_encoding = LdrRtRnImm12Encoding(rn_, rn_, 0); in Emit()
2238 int32_t encoding = AdrEncoding32(rn_, GetOffset(code_size)); in Emit()
2245 int32_t mov_encoding = MovwEncoding32(rn_, GetOffset(code_size)); in Emit()
2254 int32_t offset = GetOffset(code_size); in Emit()
2255 int32_t movw_encoding = MovwEncoding32(rn_, offset & 0xffff); in Emit()
2256 int32_t movt_encoding = MovtEncoding32(rn_, offset & ~0xffff); in Emit()
2267 int32_t encoding = LoadWideOrFpEncoding(PC, GetOffset(code_size)); // DCHECKs type_. in Emit()
2273 int32_t offset = GetOffset(code_size); in Emit()
2274 int32_t mov_encoding = MovModImmEncoding32(IP, offset & ~0x3ff); in Emit()
2276 int32_t ldr_encoding = LoadWideOrFpEncoding(IP, offset & 0x3ff); // DCHECKs type_. in Emit()
2285 int32_t offset = GetOffset(code_size); in Emit()
2286 int32_t movw_encoding = MovwEncoding32(IP, offset & 0xffff); in Emit()
2287 int32_t movt_encoding = MovtEncoding32(IP, offset & ~0xffff); in Emit()
2289 int32_t ldr_encoding = LoadWideOrFpEncoding(IP, 0); // DCHECKs type_. in Emit()
2339 int32_t offset = ad.GetOffset(); in EmitLoadStore()
2364 int32_t encoding = B31 | B30 | B29 | B28 | B27 | in EmitLoadStore()
2425 int32_t offset = ad.GetOffset(); in EmitLoadStore()
2427 int32_t up = B23; in EmitLoadStore()
2433 int32_t encoding = 0x1f << 27 | 0xf << 16 | B22 | (load ? B20 : 0) | in EmitLoadStore()
2441 int32_t encoding = B14 | (load ? B11 : 0) | static_cast<uint32_t>(rd) << 8 | offset >> 2; in EmitLoadStore()
2453 int32_t encoding = 0x1f << 27 | (load ? B20 : 0) | static_cast<uint32_t>(rd) << 12 | in EmitLoadStore()
2463 int32_t encoding = B14 | B12 | (load ? B11 : 0) | static_cast<uint32_t>(rd) | in EmitLoadStore()
2530 int32_t encoding = B31 | B30 | B29 | B27 | in EmitMultiMemOp()
2599 int32_t encoding = B31 | B30 | B29 | B28 | B27 | B25 | B23 | in Emit32Miscellaneous()
2621 int32_t encoding = in clz()
2636 int32_t encoding = B31 | B30 | B29 | B28 | in movw()
2654 int32_t encoding = B31 | B30 | B29 | B28 | in movt()
2673 int32_t encoding = in rbit()
2698 int32_t encoding = in EmitReverseBytes()
2731 int32_t encoding = B31 | B30 | B29 | B27 | B22 | B20 | in ldrex()
2756 int32_t encoding = B31 | B30 | B29 | B27 | B22 | in strex()
2772 int32_t encoding = B31 | B30 | B29 | B27 | B23 | B22 | B20 | in ldrexd()
2799 int32_t encoding = B31 | B30 | B29 | B27 | B23 | B22 | in strexd()
2811 int32_t encoding = B31 | B30 | B29 | B27 | B28 | B25 | B24 | B23 | in clrex()
2836 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | in vmovsr()
2838 ((static_cast<int32_t>(sn) >> 1)*B16) | in vmovsr()
2839 (static_cast<int32_t>(rt)*B12) | B11 | B9 | in vmovsr()
2840 ((static_cast<int32_t>(sn) & 1)*B7) | B4; in vmovsr()
2851 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | in vmovrs()
2853 ((static_cast<int32_t>(sn) >> 1)*B16) | in vmovrs()
2854 (static_cast<int32_t>(rt)*B12) | B11 | B9 | in vmovrs()
2855 ((static_cast<int32_t>(sn) & 1)*B7) | B4; in vmovrs()
2871 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | in vmovsrr()
2873 (static_cast<int32_t>(rt2)*B16) | in vmovsrr()
2874 (static_cast<int32_t>(rt)*B12) | B11 | B9 | in vmovsrr()
2875 ((static_cast<int32_t>(sm) & 1)*B5) | B4 | in vmovsrr()
2876 (static_cast<int32_t>(sm) >> 1); in vmovsrr()
2893 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | in vmovrrs()
2895 (static_cast<int32_t>(rt2)*B16) | in vmovrrs()
2896 (static_cast<int32_t>(rt)*B12) | B11 | B9 | in vmovrrs()
2897 ((static_cast<int32_t>(sm) & 1)*B5) | B4 | in vmovrrs()
2898 (static_cast<int32_t>(sm) >> 1); in vmovrrs()
2913 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | in vmovdrr()
2915 (static_cast<int32_t>(rt2)*B16) | in vmovdrr()
2916 (static_cast<int32_t>(rt)*B12) | B11 | B9 | B8 | in vmovdrr()
2917 ((static_cast<int32_t>(dm) >> 4)*B5) | B4 | in vmovdrr()
2918 (static_cast<int32_t>(dm) & 0xf); in vmovdrr()
2934 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | in vmovrrd()
2936 (static_cast<int32_t>(rt2)*B16) | in vmovrrd()
2937 (static_cast<int32_t>(rt)*B12) | B11 | B9 | B8 | in vmovrrd()
2938 ((static_cast<int32_t>(dm) >> 4)*B5) | B4 | in vmovrrd()
2939 (static_cast<int32_t>(dm) & 0xf); in vmovrrd()
2948 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | in vldrs()
2950 ((static_cast<int32_t>(sd) & 1)*B22) | in vldrs()
2951 ((static_cast<int32_t>(sd) >> 1)*B12) | in vldrs()
2962 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | in vstrs()
2964 ((static_cast<int32_t>(sd) & 1)*B22) | in vstrs()
2965 ((static_cast<int32_t>(sd) >> 1)*B12) | in vstrs()
2975 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | in vldrd()
2977 ((static_cast<int32_t>(dd) >> 4)*B22) | in vldrd()
2978 ((static_cast<int32_t>(dd) & 0xf)*B12) | in vldrd()
2989 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | in vstrd()
2991 ((static_cast<int32_t>(dd) >> 4)*B22) | in vstrd()
2992 ((static_cast<int32_t>(dd) & 0xf)*B12) | in vstrd()
3032 int32_t encoding = B27 | B26 | B21 | B19 | B18 | B16 | in EmitVPushPop()
3044 void Thumb2Assembler::EmitVFPsss(Condition cond, int32_t opcode, in EmitVFPsss()
3050 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | in EmitVFPsss()
3052 ((static_cast<int32_t>(sd) & 1)*B22) | in EmitVFPsss()
3053 ((static_cast<int32_t>(sn) >> 1)*B16) | in EmitVFPsss()
3054 ((static_cast<int32_t>(sd) >> 1)*B12) | in EmitVFPsss()
3055 ((static_cast<int32_t>(sn) & 1)*B7) | in EmitVFPsss()
3056 ((static_cast<int32_t>(sm) & 1)*B5) | in EmitVFPsss()
3057 (static_cast<int32_t>(sm) >> 1); in EmitVFPsss()
3062 void Thumb2Assembler::EmitVFPddd(Condition cond, int32_t opcode, in EmitVFPddd()
3068 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | in EmitVFPddd()
3070 ((static_cast<int32_t>(dd) >> 4)*B22) | in EmitVFPddd()
3071 ((static_cast<int32_t>(dn) & 0xf)*B16) | in EmitVFPddd()
3072 ((static_cast<int32_t>(dd) & 0xf)*B12) | in EmitVFPddd()
3073 ((static_cast<int32_t>(dn) >> 4)*B7) | in EmitVFPddd()
3074 ((static_cast<int32_t>(dm) >> 4)*B5) | in EmitVFPddd()
3075 (static_cast<int32_t>(dm) & 0xf); in EmitVFPddd()
3080 void Thumb2Assembler::EmitVFPsd(Condition cond, int32_t opcode, in EmitVFPsd()
3085 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | in EmitVFPsd()
3087 ((static_cast<int32_t>(sd) & 1)*B22) | in EmitVFPsd()
3088 ((static_cast<int32_t>(sd) >> 1)*B12) | in EmitVFPsd()
3089 ((static_cast<int32_t>(dm) >> 4)*B5) | in EmitVFPsd()
3090 (static_cast<int32_t>(dm) & 0xf); in EmitVFPsd()
3095 void Thumb2Assembler::EmitVFPds(Condition cond, int32_t opcode, in EmitVFPds()
3100 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | in EmitVFPds()
3102 ((static_cast<int32_t>(dd) >> 4)*B22) | in EmitVFPds()
3103 ((static_cast<int32_t>(dd) & 0xf)*B12) | in EmitVFPds()
3104 ((static_cast<int32_t>(sm) & 1)*B5) | in EmitVFPds()
3105 (static_cast<int32_t>(sm) >> 1); in EmitVFPds()
3113 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | in vmstat()
3115 (static_cast<int32_t>(PC)*B12) | in vmstat()
3345 int32_t Thumb2Assembler::EncodeBranchOffset(int32_t offset, int32_t inst) { in EncodeBranchOffset()
3384 int Thumb2Assembler::DecodeBranchOffset(int32_t instr) { in DecodeBranchOffset()
3385 int32_t imm32; in DecodeBranchOffset()
3492 void Thumb2Assembler::AddConstant(Register rd, Register rn, int32_t value, in AddConstant()
3532 void Thumb2Assembler::CmpConstant(Register rn, int32_t value, Condition cond) { in CmpConstant()
3562 void Thumb2Assembler::LoadImmediate(Register rd, int32_t value, Condition cond) { in LoadImmediate()
3577 int32_t Thumb2Assembler::GetAllowedLoadOffsetBits(LoadOperandType type) { in GetAllowedLoadOffsetBits()
3597 int32_t Thumb2Assembler::GetAllowedStoreOffsetBits(StoreOperandType type) { in GetAllowedStoreOffsetBits()
3615 bool Thumb2Assembler::CanSplitLoadStoreOffset(int32_t allowed_offset_bits, in CanSplitLoadStoreOffset()
3616 int32_t offset, in CanSplitLoadStoreOffset()
3617 /*out*/ int32_t* add_to_base, in CanSplitLoadStoreOffset()
3618 /*out*/ int32_t* offset_for_load_store) { in CanSplitLoadStoreOffset()
3619 int32_t other_bits = offset & ~allowed_offset_bits; in CanSplitLoadStoreOffset()
3628 int32_t Thumb2Assembler::AdjustLoadStoreOffset(int32_t allowed_offset_bits, in AdjustLoadStoreOffset()
3631 int32_t offset, in AdjustLoadStoreOffset()
3634 int32_t add_to_base, offset_for_load; in AdjustLoadStoreOffset()
3650 int32_t offset, in LoadFromOffset()
3655 int32_t allowed_offset_bits = GetAllowedLoadOffsetBits(type); in LoadFromOffset()
3657 int32_t add_to_base, offset_for_load; in LoadFromOffset()
3703 int32_t offset, in LoadSFromOffset()
3719 int32_t offset, in LoadDFromOffset()
3736 int32_t offset, in StoreToOffset()
3791 int32_t offset, in StoreSToOffset()
3807 int32_t offset, in StoreDToOffset()
3826 int32_t encoding = 0xf3bf8f50; // dmb in T1 encoding. in dmb()