Lines Matching full:static_cast
250 DCHECK_EQ(static_cast<size_t>(literal.GetLabel()->Position()), buffer_.Size());
278 DCHECK_EQ(static_cast<size_t>(table.GetLabel()->Position()), buffer_.Size());
330 encoding |= B12 | (static_cast<int32_t>(cond) << 8) | ((offset >> 1) & 0xff);
347 encoding |= (static_cast<int32_t>(cond) << 22) | ((offset & 0x3f000) << (16 - 12)) |
366 return B15 | B13 | B12 | B8 | (cond == NE ? B11 : 0) | static_cast<int32_t>(rn) |
379 return B14 | B10 | (static_cast<int32_t>(rm) << 3) |
380 (static_cast<int32_t>(rdn) & 7) | ((static_cast<int32_t>(rdn) & 8) << 4);
386 (static_cast<int32_t>(rd) << 8) |
403 (static_cast<int32_t>(rd) << 8) | static_cast<int32_t>(mod_imm);
410 return B14 | B11 | (static_cast<int32_t>(rt) << 8) | (offset >> 2);
423 (static_cast<int32_t>(rn) << 16) | (static_cast<int32_t>(rt) << 12) |
424 (static_cast<int32_t>(rt2) << 8) | (offset >> 2);
432 (static_cast<int32_t>(rn) << 16) |
433 ((static_cast<int32_t>(sd) & 0x01) << (22 - 0)) | // Move D from bit 0 to bit 22.
434 ((static_cast<int32_t>(sd) & 0x1e) << (12 - 1)) | // Move Vd from bits 1-4 to bits 12-15.
444 ((static_cast<int32_t>(dd) & 0x10) << (22 - 4)) | // Move D from bit 4 to bit 22.
445 ((static_cast<int32_t>(dd) & 0x0f) << (12 - 0)) | // Move Vd from bits 0-3 to bits 12-15.
455 (static_cast<int32_t>(rn) << 3) | static_cast<int32_t>(rt) |
468 LOG(FATAL) << "Unexpected type: " << static_cast<int>(type_);
658 static_cast<uint32_t>(rd) << 8 |
659 static_cast<uint32_t>(rn) << 16 |
660 static_cast<uint32_t>(rm);
676 static_cast<uint32_t>(rd) << 8 |
677 static_cast<uint32_t>(ra) << 12 |
678 static_cast<uint32_t>(rn) << 16 |
679 static_cast<uint32_t>(rm);
694 static_cast<uint32_t>(rd) << 8 |
695 static_cast<uint32_t>(ra) << 12 |
696 static_cast<uint32_t>(rn) << 16 |
697 static_cast<uint32_t>(rm);
712 static_cast<uint32_t>(rd_lo) << 12 |
713 static_cast<uint32_t>(rd_hi) << 8 |
714 static_cast<uint32_t>(rn) << 16 |
715 static_cast<uint32_t>(rm);
730 static_cast<uint32_t>(rd_lo) << 12 |
731 static_cast<uint32_t>(rd_hi) << 8 |
732 static_cast<uint32_t>(rn) << 16 |
733 static_cast<uint32_t>(rm);
748 static_cast<uint32_t>(rd) << 8 |
749 static_cast<uint32_t>(rn) << 16 |
750 static_cast<uint32_t>(rm);
765 static_cast<uint32_t>(rd) << 8 |
766 static_cast<uint32_t>(rn) << 16 |
767 static_cast<uint32_t>(rm);
784 static_cast<uint32_t>(rn) << 16 |
786 static_cast<uint32_t>(rd) << 8 |
805 static_cast<uint32_t>(rn) << 16 |
807 static_cast<uint32_t>(rd) << 8 |
865 static_cast<int32_t>(rd) << 12 |
866 static_cast<int32_t>(rd2) << 8 |
882 static_cast<int32_t>(rd) << 12 |
883 static_cast<int32_t>(rd2) << 8 |
897 int reg = CTZ(static_cast<uint32_t>(regs));
900 ldr(static_cast<Register>(reg), Address(base, kRegisterSize, Address::PostIndex), cond);
915 int reg = CTZ(static_cast<uint32_t>(regs));
919 str(static_cast<Register>(reg), Address(base, -kRegisterSize, strmode), cond);
1554 thumb_opcode = 10U /* 0b0001010 */ | static_cast<uint32_t>(rd) >> 3;
1555 rd = static_cast<Register>(static_cast<uint32_t>(rd) & 7U /* 0b111 */);
1582 thumb_opcode = 12U /* 0b0001100 */ | static_cast<uint32_t>(rd) >> 3;
1583 rd = static_cast<Register>(static_cast<uint32_t>(rd) & 7U /* 0b111 */);
1652 rn = static_cast<Register>(static_cast<uint32_t>(rm) |
1653 (static_cast<uint32_t>(rd) & 8U /* 0b1000 */) << 1);
1654 rd = static_cast<Register>(static_cast<uint32_t>(rd) & 7U /* 0b111 */);
1665 immediate = static_cast<uint32_t>(so.GetRegister());
1727 immediate = static_cast<uint32_t>(rm);
1817 encoding |= imm3 << 12 | imm2 << 6 | static_cast<int16_t>(rm) |
1818 static_cast<int16_t>(rd) << 8 | opcode << 4;
1831 int16_t encoding = opcode << 11 | amount << 6 | static_cast<int16_t>(rm) << 3 |
1832 static_cast<int16_t>(rd);
1864 encoding |= static_cast<int16_t>(rn) << 16 | static_cast<int16_t>(rm) |
1865 static_cast<int16_t>(rd) << 8 | opcode << 21;
1878 int16_t encoding = B14 | opcode << 6 | static_cast<int16_t>(rm) << 3 |
1879 static_cast<int16_t>(rd);
1925 LOG(FATAL) << "Unexpected size: " << static_cast<int>(size);
1947 DCHECK_LE(target_, static_cast<uint32_t>(int32_max));
1948 DCHECK_LE(location_, static_cast<uint32_t>(int32_max));
1949 DCHECK_LE(adjustment_, static_cast<uint32_t>(int32_max));
1950 int32_t diff = static_cast<int32_t>(target_) - static_cast<int32_t>(location_);
1952 DCHECK_LE(adjustment_, static_cast<uint32_t>(int32_max - diff));
1953 diff += static_cast<int32_t>(adjustment_);
1955 DCHECK_LE(int32_min + static_cast<int32_t>(adjustment_), diff);
1956 diff -= static_cast<int32_t>(adjustment_);
2145 buffer->Store<int16_t>(location_ + 2u, static_cast<int16_t>(encoding & 0xffff));
2171 buffer->Store<int16_t>(location_ + 4u, static_cast<int16_t>(b_encoding & 0xffff));
2186 buffer->Store<int16_t>(location_ + 2u, static_cast<int16_t>(encoding & 0xffff));
2195 buffer->Store<int16_t>(location_ + 2u, static_cast<int16_t>(mov_encoding & 0xffff));
2207 buffer->Store<int16_t>(location_ + 2u, static_cast<int16_t>(mov_encoding & 0xffff));
2210 buffer->Store<int16_t>(location_ + 8u, static_cast<int16_t>(ldr_encoding & 0xffff));
2221 buffer->Store<int16_t>(location_ + 2u, static_cast<int16_t>(movw_encoding & 0xffff));
2223 buffer->Store<int16_t>(location_ + 6u, static_cast<int16_t>(movt_encoding & 0xffff));
2226 buffer->Store<int16_t>(location_ + 12u, static_cast<int16_t>(ldr_encoding & 0xffff));
2240 buffer->Store<int16_t>(location_ + 2u, static_cast<int16_t>(encoding & 0xffff));
2248 buffer->Store<int16_t>(location_ + 2u, static_cast<int16_t>(mov_encoding & 0xffff));
2259 buffer->Store<int16_t>(location_ + 2u, static_cast<int16_t>(movw_encoding & 0xffff));
2261 buffer->Store<int16_t>(location_ + 6u, static_cast<int16_t>(movt_encoding & 0xffff));
2269 buffer->Store<int16_t>(location_ + 2u, static_cast<int16_t>(encoding & 0xffff));
2278 buffer->Store<int16_t>(location_ + 2u, static_cast<int16_t>(mov_encoding & 0xffff));
2281 buffer->Store<int16_t>(location_ + 8u, static_cast<int16_t>(ldr_encoding & 0xffff));
2291 buffer->Store<int16_t>(location_ + 2u, static_cast<int16_t>(movw_encoding & 0xffff));
2293 buffer->Store<int16_t>(location_ + 6u, static_cast<int16_t>(movt_encoding & 0xffff));
2296 buffer->Store<int16_t>(location_ + 12u, static_cast<int16_t>(ldr_encoding & 0xffff));
2367 static_cast<uint32_t>(rd) << 12 |
2400 encoding |= static_cast<uint32_t>(rd);
2435 static_cast<uint32_t>(rd) << 12;
2441 int32_t encoding = B14 | (load ? B11 : 0) | static_cast<uint32_t>(rd) << 8 | offset >> 2;
2453 int32_t encoding = 0x1f << 27 | (load ? B20 : 0) | static_cast<uint32_t>(rd) << 12 |
2463 int32_t encoding = B14 | B12 | (load ? B11 : 0) | static_cast<uint32_t>(rd) |
2585 Emit16(static_cast<uint16_t>(label->position_));
2622 static_cast<uint32_t>(rm) << 16 |
2623 static_cast<uint32_t>(rd) << 8 |
2624 static_cast<uint32_t>(rm);
2638 static_cast<uint32_t>(rd) << 8 |
2656 static_cast<uint32_t>(rd) << 8 |
2674 static_cast<uint32_t>(rm) << 16 |
2675 static_cast<uint32_t>(rd) << 8 |
2676 static_cast<uint32_t>(rm);
2694 static_cast<uint16_t>(rm) << 3 |
2695 static_cast<uint16_t>(rd);
2699 static_cast<uint32_t>(rm) << 16 |
2700 static_cast<uint32_t>(rd) << 8 |
2701 static_cast<uint32_t>(rm);
2732 static_cast<uint32_t>(rn) << 16 |
2733 static_cast<uint32_t>(rt) << 12 |
2757 static_cast<uint32_t>(rn) << 16 |
2758 static_cast<uint32_t>(rt) << 12 |
2759 static_cast<uint32_t>(rd) << 8 |
2773 static_cast<uint32_t>(rn) << 16 |
2774 static_cast<uint32_t>(rt) << 12 |
2775 static_cast<uint32_t>(rt2) << 8 |
2800 static_cast<uint32_t>(rn) << 16 |
2801 static_cast<uint32_t>(rt) << 12 |
2802 static_cast<uint32_t>(rt2) << 8 |
2804 static_cast<uint32_t>(rd);
2826 Emit16(static_cast<int16_t>(encoding));
2836 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) |
2838 ((static_cast<int32_t>(sn) >> 1)*B16) |
2839 (static_cast<int32_t>(rt)*B12) | B11 | B9 |
2840 ((static_cast<int32_t>(sn) & 1)*B7) | B4;
2851 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) |
2853 ((static_cast<int32_t>(sn) >> 1)*B16) |
2854 (static_cast<int32_t>(rt)*B12) | B11 | B9 |
2855 ((static_cast<int32_t>(sn) & 1)*B7) | B4;
2871 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) |
2873 (static_cast<int32_t>(rt2)*B16) |
2874 (static_cast<int32_t>(rt)*B12) | B11 | B9 |
2875 ((static_cast<int32_t>(sm) & 1)*B5) | B4 |
2876 (static_cast<int32_t>(sm) >> 1);
2893 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) |
2895 (static_cast<int32_t>(rt2)*B16) |
2896 (static_cast<int32_t>(rt)*B12) | B11 | B9 |
2897 ((static_cast<int32_t>(sm) & 1)*B5) | B4 |
2898 (static_cast<int32_t>(sm) >> 1);
2913 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) |
2915 (static_cast<int32_t>(rt2)*B16) |
2916 (static_cast<int32_t>(rt)*B12) | B11 | B9 | B8 |
2917 ((static_cast<int32_t>(dm) >> 4)*B5) | B4 |
2918 (static_cast<int32_t>(dm) & 0xf);
2934 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) |
2936 (static_cast<int32_t>(rt2)*B16) |
2937 (static_cast<int32_t>(rt)*B12) | B11 | B9 | B8 |
2938 ((static_cast<int32_t>(dm) >> 4)*B5) | B4 |
2939 (static_cast<int32_t>(dm) & 0xf);
2945 const Address& addr = static_cast<const Address&>(ad);
2948 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) |
2950 static_cast<int32_t>(sd) & 1)*B22) |
2951 ((static_cast<int32_t>(sd) >> 1)*B12) |
2958 const Address& addr = static_cast<const Address&>(ad);
2959 CHECK_NE(static_cast<Register>(addr.encodingArm() & (0xf << kRnShift)), PC);
2962 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) |
2964 ((static_cast<int32_t>(sd) & 1)*B22) |
2965 ((static_cast<int32_t>(sd) >> 1)*B12) |
2972 const Address& addr = static_cast<const Address&>(ad);
2975 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) |
2977 ((static_cast<int32_t>(dd) >> 4)*B22) |
2978 ((static_cast<int32_t>(dd) & 0xf)*B12) |
2985 const Address& addr = static_cast<const Address&>(ad);
2986 CHECK_NE(static_cast<Register>(addr.encodingArm() & (0xf << kRnShift)), PC);
2989 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) |
2991 ((static_cast<int32_t>(dd) >> 4)*B22) |
2992 ((static_cast<int32_t>(dd) & 0xf)*B12) |
2999 EmitVPushPop(static_cast<uint32_t>(reg), nregs, true, false, cond);
3004 EmitVPushPop(static_cast<uint32_t>(reg), nregs, true, true, cond);
3009 EmitVPushPop(static_cast<uint32_t>(reg), nregs, false, false, cond);
3014 EmitVPushPop(static_cast<uint32_t>(reg), nregs, false, true, cond);
3050 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) |
3052 ((static_cast<int32_t>(sd) & 1)*B22) |
3053 ((static_cast<int32_t>(sn) >> 1)*B16) |
3054 ((static_cast<int32_t>(sd) >> 1)*B12) |
3055 ((static_cast<int32_t>(sn) & 1)*B7) |
3056 ((static_cast<int32_t>(sm) & 1)*B5) |
3057 (static_cast<int32_t>(sm) >> 1);
3068 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) |
3070 ((static_cast<int32_t>(dd) >> 4)*B22) |
3071 ((static_cast<int32_t>(dn) & 0xf)*B16) |
3072 ((static_cast<int32_t>(dd) & 0xf)*B12) |
3073 ((static_cast<int32_t>(dn) >> 4)*B7) |
3074 ((static_cast<int32_t>(dm) >> 4)*B5) |
3075 (static_cast<int32_t>(dm) & 0xf);
3085 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) |
3087 ((static_cast<int32_t>(sd) & 1)*B22) |
3088 ((static_cast<int32_t>(sd) >> 1)*B12) |
3089 ((static_cast<int32_t>(dm) >> 4)*B5) |
3090 (static_cast<int32_t>(dm) & 0xf);
3100 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) |
3102 ((static_cast<int32_t>(dd) >> 4)*B22) |
3103 ((static_cast<int32_t>(dd) & 0xf)*B12) |
3104 ((static_cast<int32_t>(sm) & 1)*B5) |
3105 (static_cast<int32_t>(sm) >> 1);
3113 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) |
3115 (static_cast<int32_t>(PC)*B12) |
3157 it_conditions_[index] = static_cast<Condition>(static_cast<uint8_t>(cond) ^ 1);
3165 uint8_t firstcond0 = static_cast<uint8_t>(firstcond) & 1;
3208 uint16_t branchid = EmitCompareAndBranch(rn, static_cast<uint16_t>(label->position_), false);
3223 uint16_t branchid = EmitCompareAndBranch(rn, static_cast<uint16_t>(label->position_), true);
3232 int16_t encoding = B14 | B10 | B9 | B8 | B7 | static_cast<int16_t>(rm) << 3;
3240 int16_t encoding = B14 | B10 | B9 | B8 | static_cast<int16_t>(rm) << 3;
3449 Emit16(static_cast<uint16_t>(literal->GetLabel()->position_));
3463 Emit16(static_cast<uint16_t>(literal->GetLabel()->position_));
3474 Emit16(static_cast<uint16_t>(literal->GetLabel()->position_));
3485 Emit16(static_cast<uint16_t>(literal->GetLabel()->position_));
3859 Emit16(static_cast<uint16_t>(table->GetLabel()->position_));