Home
last modified time | relevance | path

Searched refs:isSigned (Results 1 - 25 of 37) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
H A Dmpl_int_val.h29 IntVal(uint64 val, uint8 bitWidth, bool isSigned) : value(val), width(bitWidth), sign(isSigned) in IntVal() argument
44 IntVal(const IntVal &val, uint8 bitWidth, bool isSigned) : IntVal(val.value, bitWidth, isSigned) {} in IntVal() argument
46 IntVal(const IntVal &val, bool isSigned) : IntVal(val.value, val.width, isSigned) {} in IntVal() argument
455 IntVal TruncOrExtend(uint8 newWidth, bool isSigned) const in TruncOrExtend()
457 return newWidth <= width ? Trunc(newWidth, isSigned) : Extend(newWidth, isSigned); in TruncOrExtend()
467 IntVal Trunc(uint8 newWidth, bool isSigned) cons
[all...]
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
H A Ddatatype.h193 constexpr inline Type GetIntTypeBySize(size_t sizeInBytes, bool isSigned = false) in GetIntTypeBySize()
196 return isSigned ? INT8 : UINT8; in GetIntTypeBySize()
199 return isSigned ? INT16 : UINT16; in GetIntTypeBySize()
202 return isSigned ? INT32 : UINT32; in GetIntTypeBySize()
205 return isSigned ? INT64 : UINT64; in GetIntTypeBySize()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/
H A Dx64_isa_tbl.h85 static inline X64MOP_t GetSetCCMop(maple::Opcode opcode, Operand::OperandType dTy, bool isSigned, bool isFloat) in GetSetCCMop() argument
89 isFloat ? setFloatIselMapping : (isSigned ? setSignedIselMapping : setUnsignedIselMapping); in GetSetCCMop()
117 static inline X64MOP_t GetCMovCCMop(maple::Opcode opcode, int32 bitSize, bool isSigned)
119 const auto &cmovIselMapping = isSigned ? cmovSignedIselMapping : cmovUnsignedIselMapping;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
H A Doperand.h490 ImmOperand(int64 val, uint32 size, bool isSigned, VaryType isVar = kNotVary, bool isFloat = false) in ImmOperand() argument
491 : OperandVisitable(kOpdImmediate, size), value(val), isSigned(isSigned), isVary(isVar), isFmov(isFloat) in ImmOperand()
494 ImmOperand(OperandType type, int64 val, uint32 size, bool isSigned, VaryType isVar = kNotVary, bool isFloat = false) in ImmOperand() argument
495 : OperandVisitable(type, size), value(val), isSigned(isSigned), isVary(isVar), isFmov(isFloat) in ImmOperand()
498 ImmOperand(const MIRSymbol &symbol, int64 val, int32 relocs, bool isSigned, VaryType isVar = kNotVary, in ImmOperand() argument
502 isSigned(isSigned), in ImmOperand()
602 return isSigned; in IsSignedValue()
760 bool isSigned; global() member in maplebe::ImmOperand
[all...]
H A Dcg_irbuilder.h84 ImmOperand &CreateImm(uint32 size, int64 value, bool isSigned, MemPool *mp = nullptr);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
H A Disel.cpp83 [](bool isSigned) -> MOperator { return isSigned ? abstract::MOP_sext_rr_##TYPE : abstract::MOP_zext_rr_##TYPE; }
98 static MOperator GetFastCvtMopI(uint32 fromSize, uint32 toSize, bool isSigned) in GetFastCvtMopI() argument
111 MOperator mOp = tableDriven->second(isSigned); in GetFastCvtMopI()
534 PrimType MPISel::GetIntegerPrimTypeFromSize(bool isSigned, uint32 bitSize) in GetIntegerPrimTypeFromSize() argument
539 return isSigned ? signedPrimType[index] : unsignedPrimType[index]; in GetIntegerPrimTypeFromSize()
832 bool isSigned = IsSignedInteger(primType); in SelectExtractbits() local
833 if (bitOffset == 0 && !isSigned) { in SelectExtractbits()
849 Opcode opcode = isSigned ? OP_ashr : OP_lshr; in SelectExtractbits()
904 bool isSigned in SelectCvtFloat2Int() local
929 bool isSigned = !IsPrimitiveUnsigned(fromType); SelectCvtInt2Float() local
969 bool isSigned = !IsPrimitiveUnsigned(fromType); SelectIntCvt() local
[all...]
H A Dcg_irbuilder.cpp82 ImmOperand &OperandBuilder::CreateImm(uint32 size, int64 value, bool isSigned, MemPool *mp) in CreateImm() argument
84 return mp ? *mp->New<ImmOperand>(value, size, isSigned) : *alloc.New<ImmOperand>(value, size, isSigned); in CreateImm()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/litecg/
H A Dlmir_builder.cpp675 bool isSigned = true; in ICmp() local
684 isSigned = false; in ICmp()
688 isSigned = false; in ICmp()
692 isSigned = false; in ICmp()
696 isSigned = false; in ICmp()
717 newType = isSigned ? PTY_i8 : PTY_u8; in ICmp()
721 newType = isSigned ? PTY_i16 : PTY_u16; in ICmp()
725 newType = isSigned ? PTY_i32 : PTY_u32; in ICmp()
729 newType = isSigned ? PTY_i64 : PTY_u64; in ICmp()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
H A Daarch64_cgfunc.cpp1123 MOperator AArch64CGFunc::PickJmpInsn(Opcode brOp, Opcode cmpOp, bool isFloat, bool isSigned) const in PickJmpInsn()
1131 return (brOp == OP_brtrue) ? (isSigned ? MOP_blt : MOP_blo) in PickJmpInsn()
1132 : (isFloat ? MOP_bpl : (isSigned ? MOP_bge : MOP_bhs)); in PickJmpInsn()
1134 return (brOp == OP_brtrue) ? (isSigned ? MOP_ble : MOP_bls) in PickJmpInsn()
1135 : (isFloat ? MOP_bhi : (isSigned ? MOP_bgt : MOP_bhi)); in PickJmpInsn()
1137 return (brOp == OP_brtrue) ? (isFloat ? MOP_bgt : (isSigned ? MOP_bgt : MOP_bhi)) in PickJmpInsn()
1138 : (isSigned ? MOP_ble : MOP_bls); in PickJmpInsn()
1140 return (brOp == OP_brtrue) ? (isFloat ? MOP_bpl : (isSigned ? MOP_bge : MOP_bhs)) in PickJmpInsn()
1141 : (isSigned ? MOP_blt : MOP_blo); in PickJmpInsn()
1257 bool isSigned in SelectCondGoto() local
1296 bool isSigned = SelectCondSpecialCase1() local
1367 bool isSigned = IsSignedInteger(dtype); SelectAdd() local
1584 bool isSigned = IsSignedInteger(dtype); SelectSub() local
1599 bool isSigned = IsSignedInteger(dtype); SelectMpy() local
1760 bool isSigned = IsSignedInteger(dtype); SelectDiv() local
1772 SelectRem(Operand &resOpnd, Operand &lhsOpnd, Operand &rhsOpnd, PrimType primType, bool isSigned, bool is64Bits) SelectRem() argument
[all...]
/arkcompiler/runtime_core/static_core/compiler/tests/amd64/
H A Dencoder64_test_2.cpp281 bool isSigned = std::is_signed<T>::value; in TestDiv() local
290 test->GetEncoder()->EncodeDiv(param1, isSigned, param1, param2); in TestDiv()
354 bool isSigned = std::is_signed<T>::value; in TestDivImm() local
366 while (!test->GetEncoder()->CanOptimizeImmDivMod(bit_cast<uint64_t>(static_cast<ExtT>(imm)), isSigned)) { in TestDivImm()
372 test->GetEncoder()->EncodeDiv(param1, param1, Imm(imm), isSigned); in TestDivImm()
411 bool isSigned = std::is_signed<T>::value; in TestMod() local
420 test->GetEncoder()->EncodeMod(param1, isSigned, param1, param2); in TestMod()
485 bool isSigned = std::is_signed<T>::value; in TestModImm() local
497 while (!test->GetEncoder()->CanOptimizeImmDivMod(bit_cast<uint64_t>(static_cast<ExtT>(imm)), isSigned)) { in TestModImm()
503 test->GetEncoder()->EncodeMod(param1, param1, Imm(imm), isSigned); in TestModImm()
597 bool isSigned = std::is_signed<T>::value; TestParam() local
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
H A Daarch64_cgfunc.h206 ImmOperand &CreateImmOperand(int64 val, uint32 size, bool isSigned, VaryType varyType = kNotVary, in CreateImmOperand() argument
209 return *memPool->New<ImmOperand>(val, size, isSigned, varyType, isFmov); in CreateImmOperand()
212 ImmOperand &CreateImmOperand(Operand::OperandType type, int64 val, uint32 size, bool isSigned) in CreateImmOperand() argument
214 return *memPool->New<ImmOperand>(type, val, size, isSigned); in CreateImmOperand()
263 int32 shift, bool isSigned = false);
377 RegOperand &indexOpnd, uint32 shift, bool isSigned = false) const;
552 MOperator PickJmpInsn(Opcode brOp, Opcode cmpOp, bool isFloat, bool isSigned) const;
554 PrimType GetOperandTy(bool isIntty, uint32 dsize, bool isSigned) const in GetOperandTy()
556 DEBUG_ASSERT(!isSigned || isIntty, ""); in GetOperandTy()
557 return (isIntty ? ((dsize == k64BitSize) ? (isSigned in GetOperandTy()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/
H A Dx64_MPIsel.cpp454 static X64MOP_t PickJmpInsn(Opcode brOp, Opcode cmpOp, bool isFloat, bool isSigned) in PickJmpInsn() argument
462 return (brOp == OP_brtrue) ? (isFloat ? MOP_ja_l : (isSigned ? MOP_jl_l : MOP_jb_l)) in PickJmpInsn()
463 : (isSigned ? MOP_jge_l : MOP_jae_l); in PickJmpInsn()
465 return (brOp == OP_brtrue) ? (isFloat ? MOP_jae_l : (isSigned ? MOP_jle_l : MOP_jbe_l)) in PickJmpInsn()
466 : (isSigned ? MOP_jg_l : MOP_ja_l); in PickJmpInsn()
468 return (brOp == OP_brtrue) ? (isFloat ? MOP_ja_l : (isSigned ? MOP_jg_l : MOP_ja_l)) in PickJmpInsn()
469 : (isSigned ? MOP_jle_l : MOP_jbe_l); in PickJmpInsn()
471 return (brOp == OP_brtrue) ? (isSigned ? MOP_jge_l : MOP_jae_l) : (isSigned ? MOP_jl_l : MOP_jb_l); in PickJmpInsn()
618 bool isSigned in SelectDivRem() local
756 bool isSigned = (!IsPrimitiveUnsigned(primOpndType) && !IsPrimitiveFloat(primOpndType)); SelectCmpResult() local
772 bool isSigned = !IsPrimitiveUnsigned(primType); SelectSelect() local
[all...]
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/
H A Dencode.h189 virtual void EncodeDiv(Reg dst, Reg src0, Imm imm, bool isSigned);
190 virtual void EncodeMod(Reg dst, Reg src0, Imm imm, bool isSigned);
304 virtual bool CanOptimizeImmDivMod(uint64_t imm, bool isSigned) const;
460 static constexpr bool CanOptimizeImmDivModCommon(uint64_t imm, bool isSigned) in CanOptimizeImmDivModCommon() argument
462 if (!isSigned) { in CanOptimizeImmDivModCommon()
H A Dcodegen-inl.h140 bool isSigned = DataType::IsTypeSigned(inst->GetType()); in CallEntrypoint() local
141 GetEncoder()->EncodeCast(dstReg.As(INT32_TYPE), isSigned, retReg, isSigned); in CallEntrypoint()
H A Dencode.cpp133 [[maybe_unused]] bool isSigned) in EncodeDiv()
139 [[maybe_unused]] bool isSigned) in EncodeMod()
463 bool Encoder::CanOptimizeImmDivMod([[maybe_unused]] uint64_t imm, [[maybe_unused]] bool isSigned) const in CanOptimizeImmDivMod()
132 EncodeDiv([[maybe_unused]] Reg dst, [[maybe_unused]] Reg src0, [[maybe_unused]] Imm imm, [[maybe_unused]] bool isSigned) EncodeDiv() argument
138 EncodeMod([[maybe_unused]] Reg dst, [[maybe_unused]] Reg src0, [[maybe_unused]] Imm imm, [[maybe_unused]] bool isSigned) EncodeMod() argument
/arkcompiler/runtime_core/static_core/compiler/tests/aarch64/
H A Dencoder64_test_2.cpp425 bool isSigned = std::is_signed<T>::value; in TestDiv() local
434 test->GetEncoder()->EncodeDiv(param1, isSigned, param1, param2); in TestDiv()
496 bool isSigned = std::is_signed_v<T>; in TestDivImm() local
509 while (!test->GetEncoder()->CanOptimizeImmDivMod(bit_cast<uint64_t>(static_cast<ExtT>(imm)), isSigned)) { in TestDivImm()
515 test->GetEncoder()->EncodeDiv(param1, param1, Imm(imm), isSigned); in TestDivImm()
555 bool isSigned = std::is_signed_v<T>; in TestModImm() local
567 while (!test->GetEncoder()->CanOptimizeImmDivMod(bit_cast<uint64_t>(static_cast<ExtT>(imm)), isSigned)) { in TestModImm()
573 test->GetEncoder()->EncodeMod(param1, param1, Imm(imm), isSigned); in TestModImm()
664 bool isSigned = std::is_signed<T>::value; in TestMod() local
678 test->GetEncoder()->EncodeMod(param1, isSigned, param in TestMod()
763 bool isSigned = std::is_signed<T>::value; TestParam() local
[all...]
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
H A Dlowering.cpp357 bool isSigned = DataType::IsTypeSigned(input0->GetType()); in TryReplaceDivPowerOfTwo() local
358 if ((isSigned && !helpers::math::IsPowerOfTwo(sValue)) || (!isSigned && !helpers::math::IsPowerOfTwo(uValue))) { in TryReplaceDivPowerOfTwo()
362 if (isSigned) { in TryReplaceDivPowerOfTwo()
380 bool isSigned = DataType::IsTypeSigned(input0->GetType()); in TryReplaceDivModNonPowerOfTwo() local
381 if (!graph->GetEncoder()->CanOptimizeImmDivMod(uValue, isSigned)) { in TryReplaceDivModNonPowerOfTwo()
406 bool isSigned = DataType::IsTypeSigned(input0->GetType()); in TryReplaceModPowerOfTwo() local
407 if ((isSigned && !helpers::math::IsPowerOfTwo(sValue)) || (!isSigned && !helpers::math::IsPowerOfTwo(uValue))) { in TryReplaceModPowerOfTwo()
411 if (isSigned) { in TryReplaceModPowerOfTwo()
[all...]
/arkcompiler/runtime_core/static_core/compiler/tests/aarch32/
H A Dencoder32_test_2.cpp345 bool isSigned = std::is_signed<T>::value; in TestDiv() local
357 test->GetEncoder()->EncodeDiv(param1, isSigned, param1, param2); in TestDiv()
473 bool isSigned = std::is_signed<T>::value; in TestMod() local
489 test->GetEncoder()->EncodeMod(param1, isSigned, param1, param2); in TestMod()
578 bool isSigned = std::is_signed<T>::value; in TestParam() local
606 test->GetEncoder()->EncodeLdr(retReg, isSigned, mem); in TestParam()
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/aarch64/
H A Dassembler_aarch64.h392 inline uint32_t LoadAndStoreImm(uint32_t imm, bool isSigned) in LoadAndStoreImm() argument
394 if (isSigned) { in LoadAndStoreImm()
H A Dassembler_aarch64.cpp283 bool isSigned = operand.GetAddrMode() != AddrMode::OFFSET; in Ldr() local
285 uint32_t instructionCode = ((regX && (scale == Scale::Q)) << 30) | op | LoadAndStoreImm(imm, isSigned) | in Ldr()
324 bool isSigned = true; in Str() local
335 isSigned = false; in Str()
348 uint32_t instructionCode = (regX << 30) | op | LoadAndStoreImm(imm, isSigned) | in Str()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/
H A Dconstantfold.cpp962 bool isSigned = IsSignedInteger(resultType.GetPrimType()); in CalIntValueFromFloatValue() local
965 int64 min = isSigned ? (IntVal(std::numeric_limits<int64>::min(), PTY_i64) >> shiftNum).GetExtValue() : 0; in CalIntValueFromFloatValue()
966 if (isSigned && (value > max)) { in CalIntValueFromFloatValue()
968 } else if (!isSigned && (value > umax)) { in CalIntValueFromFloatValue()
1188 bool isSigned = IsSignedInteger(ptyp); in GetNearestSizePtyp() local
1194 return isSigned ? PTY_i8 : PTY_u8; in GetNearestSizePtyp()
1197 return isSigned ? PTY_i16 : PTY_u16; in GetNearestSizePtyp()
1200 return isFloat ? PTY_f32 : (isSigned ? PTY_i32 : PTY_u32); in GetNearestSizePtyp()
1203 return isFloat ? PTY_f64 : (isSigned ? PTY_i64 : PTY_u64); in GetNearestSizePtyp()
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/aarch64/
H A Dtarget.h245 void EncodeDiv(Reg dst, Reg src0, Imm imm, bool isSigned) override;
248 void EncodeMod(Reg dst, Reg src0, Imm imm, bool isSigned) override;
355 bool CanOptimizeImmDivMod(uint64_t imm, bool isSigned) const override;
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/amd64/
H A Dtarget.h275 void EncodeDiv(Reg dst, Reg src0, Imm imm, bool isSigned) override;
278 void EncodeMod(Reg dst, Reg src0, Imm imm, bool isSigned) override;
339 bool CanOptimizeImmDivMod(uint64_t imm, bool isSigned) const override;
/arkcompiler/runtime_core/static_core/disassembler/
H A Ddisassembler.h142 void SerializeValue(bool isSigned, const pandasm::LiteralArray::Literal &lit, std::ostream &os) const;
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/aarch32/
H A Dtarget.h421 static bool IsNeedToPrepareMemLdS(MemRef mem, const TypeInfo &memType, bool isSigned);
423 bool isSigned, bool copySp = false);

Completed in 34 milliseconds

12