Home
last modified time | relevance | path

Searched refs:Lo12 (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchMergeBaseOffset.cpp37 bool detectFoldable(MachineInstr &Hi20, MachineInstr *&Lo12,
41 MachineInstr *&Lo12);
43 bool detectAndFoldOffset(MachineInstr &Hi20, MachineInstr &Lo12,
46 void foldOffset(MachineInstr &Hi20, MachineInstr &Lo12, MachineInstr *&Lo20,
49 bool foldLargeOffset(MachineInstr &Hi20, MachineInstr &Lo12,
54 bool foldIntoMemoryOps(MachineInstr &Hi20, MachineInstr &Lo12,
101 MachineInstr *&Lo12, in INITIALIZE_PASS()
125 Lo12 = UseInst; in INITIALIZE_PASS()
126 if ((ST->is64Bit() && Lo12->getOpcode() != LoongArch::ADDI_D) || in INITIALIZE_PASS()
127 (!ST->is64Bit() && Lo12->getOpcode() != LoongArch::ADDI_W)) in INITIALIZE_PASS()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/
H A DLoongArchMatInt.cpp26 const int64_t Lo12 = Val & 0xFFF; in generateInstSeq() local
37 Insts.push_back(Inst(LoongArch::ORI, Lo12)); in generateInstSeq()
38 else if (SignExtend32<1>(Lo12 >> 11) == SignExtend32<20>(Hi20)) in generateInstSeq()
39 Insts.push_back(Inst(LoongArch::ADDI_W, SignExtend64<12>(Lo12))); in generateInstSeq()
42 if (Lo12 != 0) in generateInstSeq()
43 Insts.push_back(Inst(LoongArch::ORI, Lo12)); in generateInstSeq()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp91 int64_t Lo12 = SignExtend64<12>(Val); in generateInstSeqImpl() local
96 if (Lo12 || Hi20 == 0) { in generateInstSeqImpl()
103 if (!isInt<32>(LuiRes + Lo12)) in generateInstSeqImpl()
106 Res.emplace_back(AddiOpc, Lo12); in generateInstSeqImpl()
136 int64_t Lo12 = SignExtend64<12>(Val); in generateInstSeqImpl() local
137 Val = (uint64_t)Val - (uint64_t)Lo12; in generateInstSeqImpl()
184 if (Lo12) in generateInstSeqImpl()
185 Res.emplace_back(RISCV::ADDI, Lo12); in generateInstSeqImpl()
420 int64_t Lo12 = SignExtend64<12>(Val); in generateInstSeq() local
436 assert(Lo12 != 0 && in generateInstSeq()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DOrcABISupport.cpp1031 uint32_t Lo12 = OffsetToPtr - Hi20; in writeTrampolines() local
1034 0x0002b283 | ((Lo12 & 0xFFF) << 20); // ld t0, %lo(Lptr) in writeTrampolines()
1077 uint32_t Lo12 = PtrDisplacement - Hi20; in writeIndirectStubsBlock() local
1079 Stub[4 * I + 1] = 0x0002b283 | ((Lo12 & 0xFFF) << 20); // ld t0, %lo(Lptr) in writeIndirectStubsBlock()
1179 uint32_t Lo12 = OffsetToPtr - Hi20; in writeTrampolines() local
1184 0x28c0018c | ((Lo12 & 0xfff) << 10); // ld.d $t0, $t0, %pc_lo12(Lptr) in writeTrampolines()
1228 uint32_t Lo12 = PtrDisplacement - Hi20; in writeIndirectStubsBlock() local
1232 0x28c0018c | ((Lo12 & 0xfff) << 10); // ld.d $t0, $t0, %pc_lo12(Lptr) in writeIndirectStubsBlock()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVRegisterInfo.cpp577 int64_t Lo12 = SignExtend64<12>(Val); in eliminateFrameIndex() local
588 (Lo12 & 0b11111) != 0) { in eliminateFrameIndex()
593 Lo12 >= 2044) { in eliminateFrameIndex()
602 MI.getOperand(FIOperandNum + 1).ChangeToImmediate(Lo12); in eliminateFrameIndex()
603 Offset = StackOffset::get((uint64_t)Val - (uint64_t)Lo12, in eliminateFrameIndex()
H A DRISCVAsmPrinter.cpp691 const int64_t Lo12 = SignExtend64<12>(Type); in LowerKCFI_CHECK() local
697 if (Lo12 || Hi20 == 0) { in LowerKCFI_CHECK()
704 .addImm(Lo12)); in LowerKCFI_CHECK()
H A DRISCVISelDAGToDAG.cpp2787 int64_t Lo12 = SignExtend64<12>(CVal); in selectConstantAddr() local
2788 int64_t Hi = (uint64_t)CVal - (uint64_t)Lo12; in selectConstantAddr()
2790 if (IsPrefetch && (Lo12 & 0b11111) != 0) in selectConstantAddr()
2801 Offset = CurDAG->getSignedTargetConstant(Lo12, DL, VT); in selectConstantAddr()
2812 Lo12 = Seq.back().getImm(); in selectConstantAddr()
2813 if (IsPrefetch && (Lo12 & 0b11111) != 0) in selectConstantAddr()
2821 Offset = CurDAG->getSignedTargetConstant(Lo12, DL, VT); in selectConstantAddr()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMAsmBackend.cpp466 unsigned Lo12 = Value & 0x0FFF; in adjustFixupValue() local
469 Value = (Hi4 << 16) | (Lo12); in adjustFixupValue()