Searched refs:trunc (Results 151 - 175 of 208) sorted by relevance

123456789

/freebsd-current/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h1244 APInt trunc(unsigned width) const;
/freebsd-current/contrib/llvm-project/clang/lib/Headers/
H A D__clang_hip_math.h1099 double trunc(double __x) { return __builtin_trunc(__x); } function
H A Dopencl-c.h7236 * Modulus. Returns x - y * trunc (x/y).
8633 float __ovld __cnfn trunc(float);
8634 float2 __ovld __cnfn trunc(float2);
8635 float3 __ovld __cnfn trunc(float3);
8636 float4 __ovld __cnfn trunc(float4);
8637 float8 __ovld __cnfn trunc(float8);
8638 float16 __ovld __cnfn trunc(float16);
8640 double __ovld __cnfn trunc(double);
8641 double2 __ovld __cnfn trunc(double2);
8642 double3 __ovld __cnfn trunc(double
[all...]
/freebsd-current/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h69 // aext(trunc x) - > aext/copy/trunc x
123 // zext(trunc x) - > and (aext/copy/trunc x), mask
197 // sext(trunc x) - > (sext_inreg (aext/copy/trunc x), c)
256 // Try to fold trunc(g_constant) when the smaller constant type is legal.
262 DstReg, CstVal.getCImm()->getValue().trunc(DstTy.getSizeInBits()));
269 // Try to fold trunc(merge) to directly use the source of the merge.
300 // If the trunc siz
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Analysis/
H A DVectorUtils.cpp83 case Intrinsic::trunc:
H A DConstantFolding.cpp280 Result.push_back(ConstantInt::get(DstEltTy, Elt.trunc(DstBitSize)));
1198 // fold: icmp (inttoptr x), (inttoptr y) -> icmp trunc/zext x, trunc/zext y
1395 // zext/trunc the inttoptr to pointer size.
1425 // Do a zext or trunc to get to the ptrtoint dest size.
1621 case Intrinsic::trunc:
1694 Name == "trunc" || Name == "truncf";
2122 if (IntrinsicID == Intrinsic::trunc) {
2145 // Rounding operations (floor, trunc, ceil, round and nearbyint) do not
H A DValueTracking.cpp1003 // Fall through and handle them the same as zext/trunc.
1083 Known = Known.trunc(SrcBitWidth);
3677 return Intrinsic::trunc;
3807 case Intrinsic::trunc:
4677 case Intrinsic::trunc:
4699 // intrinsics other than trunc.
4700 if (IID == Intrinsic::trunc || !V->getType()->isMultiUnitFPType()) {
5389 return ConstantInt::get(Ctx, CI->getValue().trunc(8));
6645 case Intrinsic::trunc:
7888 // %tr = trunc i
[all...]
H A DScalarEvolution.cpp285 OS << "(trunc " << *Op->getType() << " " << *Op << " to "
943 MultiplyFactor = MultiplyFactor.trunc(W);
1005 // Since the operand is an integer already, just perform zext/trunc/self cast.
1154 // trunc(trunc(x)) --> trunc(x)
1158 // trunc(sext(x)) --> sext(x) if widening or trunc(x) if narrowing
1162 // trunc(zext(x)) --> zext(x) if widening or trunc(
[all...]
H A DBasicAliasAnalysis.cpp258 /// Represents zext(sext(trunc(V))).
306 if (TruncBits) N = N.trunc(N.getBitWidth() - TruncBits);
324 // trunc(x op y) == trunc(x) op trunc(y)
334 /// Represents zext(sext(trunc(V))) * Scale + Offset.
388 // While we can distribute over trunc, we cannot preserve nowrap flags
/freebsd-current/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterp.h286 Value.trunc(Result.bitWidth()).toString(Trunc, 10);
498 NegatedValue.trunc(Result.bitWidth()).toString(Trunc, 10);
552 APResult.trunc(Result.bitWidth()).toString(Trunc, 10);
/freebsd-current/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp1278 Dest.AggregateVal[i].IntVal = Src.AggregateVal[i].IntVal.trunc(DBitWidth);
1282 Dest.IntVal = Src.IntVal.trunc(DBitWidth);
1635 Elt.IntVal = Elt.IntVal.trunc(DstBitSize);
/freebsd-current/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp665 GV.IntVal = GV.IntVal.trunc(BitWidth);
/freebsd-current/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp585 if (!materializeImm(GPRRegLow, Imm.trunc(32).getSExtValue(), MIB))
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp167 // operand of a trunc without duplicating all the logic below.
432 // trunc (lshr X, C) --> lshr (trunc X), C
465 APInt InputDemandedBits = DemandedMask.trunc(SrcBitWidth);
H A DInstructionCombining.cpp343 // Eg, if it was a trunc, we'd cast C1 to the source type because casting C2
3350 APInt TruncatedCase = Case.getCaseValue()->getValue().trunc(NewWidth);
3380 Value *NewCond = Builder.CreateTrunc(Cond, Ty, "trunc");
3383 APInt TruncatedCase = Case.getCaseValue()->getValue().trunc(NewWidth);
/freebsd-current/sys/fs/nfsserver/
H A Dnfs_nfsdstate.c169 nfsv4stateid_t *stateidp, int trunc, fhandle_t *fhp,
4351 * The "trunc" argument is slightly overloaded and refers to different
4356 int trunc, fhandle_t *fhp, struct nfsvattr *nap, nfsattrbit_t *attrbitp,
4441 if (trunc)
4459 if (trunc)
4355 nfsrv_docallback(struct nfsclient *clp, int procnum, nfsv4stateid_t *stateidp, int trunc, fhandle_t *fhp, struct nfsvattr *nap, nfsattrbit_t *attrbitp, int laytype, NFSPROC_T *p) argument
/freebsd-current/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp180 if (CI->getValue().trunc(16).isAllOnes()) {
2007 case Intrinsic::trunc:
/freebsd-current/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp1763 // in two different registers, so the trunc is free since the low register can
7643 // (vXi1 = trunc vXiN vec) -> (vXi1 = setcc (and vec, 1), 0, ne)
12982 return DAG.getSetCC(dl, VT, SExtOp, DAG.getConstant(C1.trunc(32).sext(64),
13898 // Use the dedicated trunc static rounding mode if we're truncating so we
15170 SDValue Lo = DAG.getConstant(V.trunc(32), DL, MVT::i32);
15171 SDValue Hi = DAG.getConstant(V.lshr(32).trunc(32), DL, MVT::i32);
15323 // trunc (sra sext (X), zext (Y)) -> sra (X, smin (Y, scalarsize(Y) - 1))
15824 NewC.insertBits(Val.getConstantOperandAPInt(i).trunc(EltSize),
16311 Known = KnownBits::urem(Known.trunc(32), Known2.trunc(3
[all...]
/freebsd-current/crypto/openssl/crypto/bn/asm/
H A Dia64.S1561 fcvt.fxu.trunc.s1 f8=f8 // [30] q = trunc(q3)
/freebsd-current/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp1263 // fq = trunc(fqm);
1264 CallInst *FQ = Builder.CreateUnaryIntrinsic(Intrinsic::trunc, FQM);
/freebsd-current/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVInstructionSelector.cpp411 return selectExtInst(ResVReg, ResType, I, CL::trunc, GL::Trunc);
/freebsd-current/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h1931 case Intrinsic::trunc:
/freebsd-current/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsSEISelLowering.cpp1464 SDValue BitImmHiOp = DAG.getConstant(BitImm.lshr(32).trunc(32), DL,
1466 SDValue BitImmLoOp = DAG.getConstant(BitImm.trunc(32), DL, MVT::i32);
/freebsd-current/sys/fs/nfsclient/
H A Dnfs_clstate.c3557 int numops, taglen = -1, error = 0, trunc __unused;
3712 trunc = fxdr_unsigned(int, *tl);
/freebsd-current/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuiltin.cpp2459 MUTATE_LDBL(trunc)
2925 Intrinsic::trunc,
3691 emitUnaryBuiltin(*this, E, llvm::Intrinsic::trunc, "elt.trunc"));
7483 // %res = trunc <4 x i32> %high to <4 x i16>
7942 // %res = trunc <4 x i32> %high to <4 x i16>
12366 : Intrinsic::trunc;
12405 : Intrinsic::trunc;
17041 // %conv = trunc i64 %a to i32
17042 // %conv1 = trunc i6
[all...]

Completed in 719 milliseconds

123456789