Home
last modified time | relevance | path

Searched refs:immOpnd (Results 1 - 17 of 17) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
H A Daarch64_mop_split.h100 ImmOperand *immOpnd = in AddInsnSplit() local
102 immOpnd->SetVary(oldImmOpnd->GetVary()); in AddInsnSplit()
103 insn->SetOperand(kInsnThirdOpnd, *immOpnd); in AddInsnSplit()
105 if (immOpnd->IsNegative()) { in AddInsnSplit()
106 immOpnd->Negate(); in AddInsnSplit()
116 if (immOpnd->IsInBitSize(kMaxImmVal24Bits, 0)) { in AddInsnSplit()
119 if (!(immOpnd->IsInBitSize(kMaxImmVal12Bits, 0) || immOpnd->IsInBitSize(kMaxImmVal12Bits, kMaxImmVal12Bits))) { in AddInsnSplit()
122 immOpnd->GetSize(), static_cast<int64>(static_cast<uint64>(immOpnd in AddInsnSplit()
201 ImmOperand *immOpnd = SubInsnSplit() local
307 ImmOperand *immOpnd = static_cast<ImmOperand *>(opnd3); AddsSubsInsnSplit() local
336 ImmOperand &immOpnd = static_cast<ImmOperand &>(insn->GetOperand(kInsnThirdOpnd)); AddSubWithLslSplit() local
411 ImmOperand &immOpnd = static_cast<ImmOperand &>(insn->GetOperand(kInsnSecondOpnd)); CondCompareInsnSplit() local
435 ImmOperand &immOpnd = opndBuilder->CreateImm(k64BitSize, immVal, true); MOP_wmovri32Split() local
505 ImmOperand &immOpnd = opndBuilder->CreateImm(k8BitSize, k32BitSize, false); MOP_xmovri64Split() local
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/
H A Dasm_assembler.cpp579 void AsmAssembler::Mov(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) in Mov() argument
584 EmitImmOrSymbolReg(immOpnd.first, immOpnd.second, reg); in Mov()
606 void AsmAssembler::Mov(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) in Mov() argument
611 EmitImmOrSymbolMem(immOpnd.first, immOpnd.second, mem); in Mov()
650 void AsmAssembler::Movabs(const ImmOpnd &immOpnd, Reg reg) in Movabs() argument
654 EmitImmOrSymbolReg(immOpnd.first, immOpnd.second, reg); in Movabs()
748 void AsmAssembler::Add(InsnSize insnSize, const ImmOpnd &immOpnd, Re argument
775 Add(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Add() argument
817 Sub(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) Sub() argument
844 Sub(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Sub() argument
895 And(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) And() argument
913 And(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) And() argument
941 Or(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) Or() argument
959 Or(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Or() argument
978 Xor(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) Xor() argument
1005 Xor(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Xor() argument
1124 Shl(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) Shl() argument
1142 Shl(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Shl() argument
1161 Sar(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) Sar() argument
1179 Sar(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Sar() argument
1198 Shr(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) Shr() argument
1216 Shr(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Shr() argument
1348 Cmp(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) Cmp() argument
1357 Cmp(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Cmp() argument
[all...]
H A Delf_assembler.cpp441 void ElfAssembler::OpImmAndReg(const ImmOpnd &immOpnd, Reg reg, uint8 opCode, uint8 modReg) in OpImmAndReg() argument
443 bool isSymbol = immOpnd.second; in OpImmAndReg()
444 uint32 imm = static_cast<uint32>(immOpnd.first); /* When isSymbol is true, this is index. */ in OpImmAndReg()
467 if (!CanEncodeLabel(immOpnd.first)) { in OpImmAndReg()
468 UpdateLabel(immOpnd.first); in OpImmAndReg()
469 AppendFixup(immOpnd.first, kRelative, {static_cast<uint32>(codeBuff.size()), immBit / k8Bits}, fixups); in OpImmAndReg()
478 void ElfAssembler::OpImmAndMem(const ImmOpnd &immOpnd, const Mem &mem, uint8 modReg)
480 bool isSymbol = immOpnd.second;
481 uint32 imm = static_cast<uint32>(immOpnd.first); /* When isSymbol is true, this is index. */
483 if (!CanEncodeLabel(immOpnd
1298 Mov(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) Mov() argument
1344 Mov(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Mov() argument
1402 Movabs(const ImmOpnd &immOpnd, Reg reg) Movabs() argument
1491 Add(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) Add() argument
1506 Add(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Add() argument
1538 Sub(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) Sub() argument
1553 Sub(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Sub() argument
1590 And(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) And() argument
1600 And(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) And() argument
1616 Or(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) Or() argument
1626 Or(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Or() argument
1637 Xor(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) Xor() argument
1652 Xor(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Xor() argument
1729 Shl(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) Shl() argument
1740 Shl(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Shl() argument
1752 Sar(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) Sar() argument
1763 Sar(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Sar() argument
1775 Shr(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) Shr() argument
1786 Shr(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Shr() argument
1875 Cmp(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) Cmp() argument
1880 Cmp(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) Cmp() argument
[all...]
H A Dx64_MPIsel.cpp662 ImmOperand &immOpnd = cgFunc->GetOpndBuilder()->CreateImm(GetPrimTypeBitSize(dtype), 0); in SelectLnot() local
664 SelectCmpFloatEq(*resOpnd, regOpnd0, immOpnd, dtype, dtype); in SelectLnot()
666 SelectCmp(regOpnd0, immOpnd, dtype); in SelectLnot()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/assembler/
H A Dasm_assembler.h166 void Mov(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) override;
169 void Mov(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) override;
175 void Movabs(const ImmOpnd &immOpnd, Reg reg) override;
191 void Add(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) override;
194 void Add(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) override;
200 void Sub(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) override;
203 void Sub(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) override;
210 void And(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) override;
212 void And(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) override;
216 void Or(InsnSize insnSize, const ImmOpnd &immOpnd, Re
[all...]
H A Dassembler.h179 virtual void Mov(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) = 0;
182 virtual void Mov(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) = 0;
188 virtual void Movabs(const ImmOpnd &immOpnd, Reg reg) = 0;
204 virtual void Add(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) = 0;
207 virtual void Add(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) = 0;
213 virtual void Sub(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) = 0;
216 virtual void Sub(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) = 0;
223 virtual void And(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) = 0;
225 virtual void And(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) = 0;
229 virtual void Or(InsnSize insnSize, const ImmOpnd &immOpnd, Re
[all...]
H A Delf_assembler.h157 void Mov(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) override;
160 void Mov(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) override;
166 void Movabs(const ImmOpnd &immOpnd, Reg reg) override;
182 void Add(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) override;
185 void Add(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) override;
191 void Sub(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) override;
194 void Sub(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) override;
201 void And(InsnSize insnSize, const ImmOpnd &immOpnd, Reg reg) override;
203 void And(InsnSize insnSize, const ImmOpnd &immOpnd, const Mem &mem) override;
207 void Or(InsnSize insnSize, const ImmOpnd &immOpnd, Re
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
H A Daarch64_offset_adjust.cpp159 auto &immOpnd = static_cast<ImmOperand &>(insn.GetOperand(index)); in AdjustmentOffsetForImmOpnd() local
161 if (immOpnd.GetVary() == kUnAdjustVary) { in AdjustmentOffsetForImmOpnd()
167 immOpnd.SetValue(immOpnd.GetValue() - ofst); in AdjustmentOffsetForImmOpnd()
168 if (immOpnd.GetValue() < 0) { in AdjustmentOffsetForImmOpnd()
169 immOpnd.Negate(); in AdjustmentOffsetForImmOpnd()
173 immOpnd.Add(ofst); in AdjustmentOffsetForImmOpnd()
175 immOpnd.SetVary(kAdjustVary); in AdjustmentOffsetForImmOpnd()
H A Daarch64_cg.cpp119 auto &immOpnd = static_cast<ImmOperand &>(opnd2); in IsEffectiveCopy() local
120 if (immOpnd.IsZero()) { in IsEffectiveCopy()
128 auto &immOpnd = static_cast<ImmOperand &>(opnd2); in IsEffectiveCopy() local
129 if (immOpnd.GetValue() == 1) { in IsEffectiveCopy()
H A Daarch64_proepilog.cpp232 Operand &immOpnd = aarchCGFunc.CreateImmOperand(stackFrameSize, k32BitSize, true); in AppendInstructionAllocateCallFrame() local
233 aarchCGFunc.SelectSub(spOpnd, spOpnd, immOpnd, PTY_u64); in AppendInstructionAllocateCallFrame()
263 Operand &immOpnd = aarchCGFunc.CreateImmOperand(stackFrameSize, k32BitSize, true); in AppendInstructionAllocateCallFrame() local
264 aarchCGFunc.SelectSub(spOpnd, spOpnd, immOpnd, PTY_u64); in AppendInstructionAllocateCallFrame()
288 Operand &immOpnd = aarchCGFunc.CreateImmOperand(stackFrameSize, k32BitSize, true); in AppendInstructionAllocateCallFrameDebug() local
289 aarchCGFunc.SelectSub(spOpnd, spOpnd, immOpnd, PTY_u64); in AppendInstructionAllocateCallFrameDebug()
300 ImmOperand &immOpnd = aarchCGFunc.CreateImmOperand(stackFrameSize, k32BitSize, true); in AppendInstructionAllocateCallFrameDebug() local
301 aarchCGFunc.SelectSub(spOpnd, spOpnd, immOpnd, PTY_u64); in AppendInstructionAllocateCallFrameDebug()
340 auto immOpnd = &aarchCGFunc.CreateImmOperand(frameTypeInfo.idx, k64BitSize, true); in GenerateFrameTypeSave() local
341 aarchCGFunc.SelectCopyImm(x10Opnd, *immOpnd, PTY_i6 in GenerateFrameTypeSave()
462 Operand *immOpnd; GeneratePushRegs() local
590 Operand &immOpnd = aarchCGFunc.CreateImmOperand(stackFrameSize, k32BitSize, true); GenerateProlog() local
603 Operand *immOpnd; GenerateProlog() local
708 Operand &immOpnd = aarchCGFunc.CreateImmOperand(stackFrameSize, k32BitSize, true); AppendInstructionDeallocateCallFrame() local
721 Operand &immOpnd = aarchCGFunc.CreateImmOperand(stackFrameSize, k32BitSize, true); AppendInstructionDeallocateCallFrame() local
758 Operand &immOpnd = aarchCGFunc.CreateImmOperand(stackFrameSize, k32BitSize, true); AppendInstructionDeallocateCallFrameDebug() local
784 Operand &immOpnd = aarchCGFunc.CreateImmOperand(stackFrameSize, k32BitSize, true); AppendInstructionDeallocateCallFrameDebug() local
[all...]
H A Daarch64_peep.cpp365 auto &immOpnd = static_cast<ImmOperand &>(insn.GetOperand(kInsnThirdOpnd)); in GetInsnAddOrSubNewOffset() local
366 val = immOpnd.GetValue(); in GetInsnAddOrSubNewOffset()
367 CHECK_FATAL(!(vary == kUnAdjustVary && immOpnd.GetVary() == kUnAdjustVary), "NIY, can not deal this case!"); in GetInsnAddOrSubNewOffset()
368 vary = immOpnd.GetVary(); in GetInsnAddOrSubNewOffset()
370 auto &immOpnd = static_cast<ImmOperand &>(insn.GetOperand(kInsnThirdOpnd)); in GetInsnAddOrSubNewOffset() local
373 val = (immOpnd.GetValue() << shiftOpnd.GetShiftAmount()); in GetInsnAddOrSubNewOffset()
903 auto &immOpnd = static_cast<ImmOperand &>(opnd); in Run() local
904 int64 value = immOpnd.GetValue(); in Run()
908 immOpnd.IsSingleInstructionMovable(regOpnd0.GetSize())) { in Run()
914 immOpnd in Run()
991 auto &immOpnd = static_cast<ImmOperand &>(opnd); Run() local
1013 auto &immOpnd = static_cast<ImmOperand &>(opnd); Run() local
1733 ImmOperand &immOpnd = static_cast<ImmOperand &>(insn.GetOperand(kInsnSecondOpnd)); Run() local
1941 Operand &immOpnd = nextInsn->GetOperand(kInsnThirdOpnd); Run() local
[all...]
H A Daarch64_cgfunc.cpp294 ImmOperand &immOpnd = CreateImmOperand(k32BitSize, k8BitSize, false); in SelectCopyImm() local
295 GetCurBB()->AppendInsn(GetInsnBuilder()->BuildInsn(MOP_xbfirri6i6, dest, dest, immOpnd, immOpnd)); in SelectCopyImm()
400 ImmOperand *immOpnd = static_cast<ImmOperand *>(memOpnd->GetOffsetOperand()); in SelectCopyRegOpnd() local
401 DEBUG_ASSERT(immOpnd != nullptr, "immOpnd should not be nullptr"); in SelectCopyRegOpnd()
402 int64 immVal = immOpnd->GetValue(); in SelectCopyRegOpnd()
422 GetCurBB()->AppendInsn(GetInsnBuilder()->BuildInsn(mopMov, reg, *immOpnd)); in SelectCopyRegOpnd()
1247 ImmOperand *immOpnd = static_cast<ImmOperand *>(opnd1); in SelectCondGoto() local
1248 if (immOpnd in SelectCondGoto()
1426 ImmOperand *immOpnd = static_cast<ImmOperand *>(&opnd1); SelectAdd() local
1512 ImmOperand *immOpnd = static_cast<ImmOperand *>(&opnd1); SelectSub() local
[all...]
H A Daarch64_fixshortbranch.cpp232 Operand &immOpnd = aarch64CGFunc->CreateImmOperand(labelOpnd.GetLabelIndex(), k64BitSize, false); in FixLdr() local
233 insn->SetOperand(kInsnSecondOpnd, immOpnd); in FixLdr()
H A Daarch64_obj_emitter.cpp620 ImmOperand &immOpnd = static_cast<ImmOperand &>(insn.GetOperand(kInsnSecondOpnd));
622 uint64 immValue = static_cast<uint64>(immOpnd.GetValue());
660 uint64 value = static_cast<uint64>(immOpnd.GetValue());
1512 ImmOperand &immOpnd = static_cast<ImmOperand &>(insn.GetOperand(kInsnThirdOpnd));
1513 uint64 value = static_cast<uint64>(immOpnd.GetValue());
1522 ImmOperand &immOpnd = static_cast<ImmOperand &>(insn.GetOperand(kInsnThirdOpnd));
1523 uint64 value = static_cast<uint64>(immOpnd.GetValue());
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/aarch64/
H A Dmacro_assembler_aarch64.cpp63 aarch64::Operand immOpnd = aarch64::Immediate(value.GetValue()); in Cmp() local
65 assembler.Cmp(LOCAL_SCOPE_REGISTER, immOpnd); in Cmp()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
H A Disel.cpp1131 ImmOperand &immOpnd = cgFunc->GetOpndBuilder()->CreateImm(bitSize, bitSize - 1); in SelectAbs() local
1133 SelectShift(regOpndy, regOpnd0, immOpnd, OP_ashr, primType, primType); in SelectAbs()
H A Dreg_alloc_lsra.cpp2019 const auto *immOpnd = static_cast<const ImmOperand *>(opnd); in CollectDeoptInfo() local
2020 deoptInfo.RecordDeoptVreg2LocationInfo(item.first, LocationInfo({kInConstValue, immOpnd->GetValue()})); in CollectDeoptInfo()

Completed in 30 milliseconds