23 const int64_t Highest12 = Val >> 52 & 0xFFF;
24 const int64_t Higher20 = Val >> 32 & 0xFFFFF;
25 const int64_t Hi20 = Val >> 12 & 0xFFFFF;
26 const int64_t Lo12 = Val & 0xFFF;
29 if (Highest12 != 0 && SignExtend64<52>(Val) == 0) {
30 Insts.
push_back(
Inst(LoongArch::LU52I_D, SignExtend64<12>(Highest12)));
36 else if (SignExtend32<1>(Lo12 >> 11) == SignExtend32<20>(Hi20))
37 Insts.
push_back(
Inst(LoongArch::ADDI_W, SignExtend64<12>(Lo12)));
39 Insts.
push_back(
Inst(LoongArch::LU12I_W, SignExtend64<20>(Hi20)));
44 if (SignExtend32<1>(Hi20 >> 19) != SignExtend32<20>(Higher20))
45 Insts.
push_back(
Inst(LoongArch::LU32I_D, SignExtend64<20>(Higher20)));
47 if (SignExtend32<1>(Higher20 >> 19) != SignExtend32<12>(Highest12))
48 Insts.
push_back(
Inst(LoongArch::LU52I_D, SignExtend64<12>(Highest12)));
void push_back(const T &Elt)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
InstSeq generateInstSeq(int64_t Val)
This is an optimization pass for GlobalISel generic memory operations.