Home
last modified time | relevance | path

Searched refs:sext (Results 1 - 25 of 52) sorted by relevance

123

/third_party/ltp/tools/sparse/sparse-src/validation/optim/
H A Dcmp-sext-simm.c1 #define sext(X) ((long long) (X)) macro
5 static int lt_ge0(int x) { return (sext(x) < (POS + 0)) == 1; } in lt_ge0()
6 static int lt_ge1(int x) { return (sext(x) < (POS + 1)) == 1; } in lt_ge1()
7 static int lt_ge2(int x) { return (sext(x) < (POS + 2)) == 1; } in lt_ge2()
8 static int lt_gex(int x) { return (sext(x) < (POS<< 1)) == 1; } in lt_gex()
9 static int lt_gey(int x) { return (sext(x) < (POS<< 3)) == 1; } in lt_gey()
10 static int le_ge0(int x) { return (sext(x) <= (POS + 0)) == 1; } in le_ge0()
11 static int le_ge1(int x) { return (sext(x) <= (POS + 1)) == 1; } in le_ge1()
12 static int le_ge2(int x) { return (sext(x) <= (POS + 2)) == 1; } in le_ge2()
13 static int le_gex(int x) { return (sext( in le_ge2()
[all...]
H A Dcmp-sext-uimm.c1 #define sext(X) ((unsigned long long) (X)) macro
5 int sext_ltu_p2(int x) { return (sext(x) < (POS + 2)) == (x >= 0); } in sext_ltu_p2()
6 int sext_ltu_p1(int x) { return (sext(x) < (POS + 1)) == (x >= 0); } in sext_ltu_p1()
7 int sext_ltu_p0(int x) { return (sext(x) < (POS + 0)) == (x >= 0); } in sext_ltu_p0()
9 int sext_leu_p1(int x) { return (sext(x) <= (POS + 1)) == (x >= 0); } in sext_leu_p1()
10 int sext_leu_p0(int x) { return (sext(x) <= (POS + 0)) == (x >= 0); } in sext_leu_p0()
12 int sext_geu_m1(int x) { return (sext(x) >= (NEG - 1)) == (x < 0); } in sext_geu_m1()
13 int sext_geu_m2(int x) { return (sext(x) >= (NEG - 2)) == (x < 0); } in sext_geu_m2()
15 int sext_gtu_m1(int x) { return (sext(x) > (NEG - 1)) == (x < 0); } in sext_gtu_m1()
16 int sext_gtu_m2(int x) { return (sext( in sext_gtu_m1()
[all...]
H A Dsext.c1 int sext(int x) in sext() function
7 * check-name: sext
11 * check-output-excludes: sext\\.
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
H A DKnownBits.h145 KnownBits sext(unsigned BitWidth) const { in sext() function
146 return KnownBits(Zero.sext(BitWidth), One.sext(BitWidth)); in sext()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
H A DConstantRange.cpp694 return ConstantRange(Lower.sext(DstTySize), Upper.zext(DstTySize));
701 return ConstantRange(Lower.sext(DstTySize), Upper.sext(DstTySize));
973 this_min = getSignedMin().sext(getBitWidth() * 2);
974 this_max = getSignedMax().sext(getBitWidth() * 2);
975 Other_min = Other.getSignedMin().sext(getBitWidth() * 2);
976 Other_max = Other.getSignedMax().sext(getBitWidth() * 2);
1355 APInt this_min = getSignedMin().sext(getBitWidth() * 2);
1356 APInt this_max = getSignedMax().sext(getBitWidth() * 2);
1357 APInt Other_min = Other.getSignedMin().sext(getBitWidt
[all...]
/third_party/mesa3d/src/amd/compiler/
H A Daco_print_ir.cpp624 char sext = sdwa.dst_sel.sign_extend() ? 's' : 'u'; in print_instr_format_specific() local
629 case 1: fprintf(output, " dst_sel:%cbyte%u", sext, offset); break; in print_instr_format_specific()
630 case 2: fprintf(output, " dst_sel:%cword%u", sext, offset >> 1); break; in print_instr_format_specific()
638 char sext = sdwa.sel[i].sign_extend() ? 's' : 'u'; in print_instr_format_specific() local
643 case 1: fprintf(output, " src%d_sel:%cbyte%u", i, sext, offset); break; in print_instr_format_specific()
644 case 2: fprintf(output, " src%d_sel:%cword%u", i, sext, offset >> 1); break; in print_instr_format_specific()
H A Daco_ir.h707 bool sext = false) in is_constant_representable()
715 if (sext && (upper33 == 0xFFFFFFFF80000000 || upper33 == 0)) in is_constant_representable()
1463 sext = 0x20, member
1464 sbyte = ubyte | sext,
1465 sword = uword | sext,
1484 : sel((sdwa_sel)((sign_extend ? sext : 0) | size << 2 | offset)) in SubdwordSel()
1491 constexpr bool sign_extend() const { return sel & sext; } in sign_extend()
H A Daco_lower_to_hw_instr.cpp519 bool sext = reduce_op == imin8 || reduce_op == imax8; in emit_reduction() local
520 sdwa->sel[0] = SubdwordSel(1, 0, sext); in emit_reduction()
542 bool sext = reduce_op == imin16 || reduce_op == imax16 || reduce_op == iadd16; in emit_reduction() local
543 sdwa->sel[0] = SubdwordSel(2, 0, sext); in emit_reduction()
/third_party/mesa3d/src/freedreno/rnn/
H A Dutil.h88 #define sext(a, b) extrs(a, 0, b+1) macro
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUMCTargetDesc.cpp126 Target = (SignedOffset.sext(64) + Addr + Size).getZExtValue();
/third_party/ltp/tools/sparse/sparse-src/
H A Dscheck.c90 static BoolectorNode *sext(Btor *btor, struct instruction *insn, BoolectorNode *s) in sext() function
166 case OP_SEXT: t = sext(btor, insn, a); break; in unop()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp281 Val = Val.sext(OpcodeAndSize.second); in getConstantVRegValWithLookThrough()
425 return C1.trunc(Imm).sext(C1.getBitWidth()); in ConstantFoldExtOp()
H A DGISelKnownBits.cpp282 // If the sign bit is known to be zero or one, then sext will extend in computeKnownBitsImpl()
284 Known = Known.sext(BitWidth); in computeKnownBitsImpl()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DAPInt.cpp814 int64_t sext = SignExtend64(getWord(0), BitWidth);
815 return double(sext);
913 APInt APInt::sext(unsigned Width) const {
965 return sext(width);
979 return sext(width);
2898 A = A.sext(CoeffWidth);
2899 B = B.sext(CoeffWidth);
2900 C = C.sext(CoeffWidth);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp473 // I = B + sext(Idx *nsw S) * ElementSize in allocateCandidatesAndFindBasisForGEP()
474 // = B + (sext(Idx) * sext(S)) * ElementSize in allocateCandidatesAndFindBasisForGEP()
475 // = B + (sext(Idx) * ElementSize) * sext(S) in allocateCandidatesAndFindBasisForGEP()
503 // sext'ed multiplication. in factorArrayIndex()
506 // GEP = Base + sext(LHS *nsw RHS) * ElementSize in factorArrayIndex()
509 // GEP = Base + sext(LHS <<nsw RHS) * ElementSize in factorArrayIndex()
510 // = Base + sext(LHS *nsw (1 << RHS)) * ElementSize in factorArrayIndex()
547 // When ArrayIdx is the sext o in allocateCandidatesAndFindBasisForGEP()
[all...]
H A DLowerExpectIntrinsic.cpp156 Result = Result.sext(Op->getType()->getIntegerBitWidth()); in handlePhiDef()
H A DSeparateConstOffsetFromGEP.cpp280 /// For example, to extract the 5 from sext(a + (b + 5)), we first distribute
281 /// sext to a, b and 5 so that we have
282 /// sext(a) + (sext(b) + 5).
284 /// (sext(a) + sext(b)) + 5.
285 /// Given this form, we know I' is sext(a) + sext(b).
290 /// e.g., zext(sext(a + (b + 5)) (assuming no overflow) =>
291 /// zext(sext(
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
H A DAPInt.cpp846 int64_t sext = SignExtend64(getWord(0), BitWidth); in roundToDouble() local
847 return double(sext); in roundToDouble()
924 APInt APInt::sext(unsigned width) const {
994 return sext(width); in sextOrTrunc()
1008 return sext(width); in sextOrSelf()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
H A DAPSInt.h106 return APSInt(sext(width), IsUnsigned); in extend()
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
H A DSpirvShaderArithmetic.cpp183 auto sext = ~(sign - one); in EmitUnaryOp() local
184 out |= sext; in EmitUnaryOp()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h88 DstReg, CstVal.getCImm()->getValue().sext(DstTy.getSizeInBits())); in tryCombineAnyExt()
150 // sext(trunc x) - > (sext_inreg (aext/copy/trunc x), c) in tryCombineSExt()
/third_party/node/deps/v8/src/codegen/riscv64/
H A Dconstants-riscv64.h1921 #define sext(x, len) (((int32_t)(x) << (32 - len)) >> (32 - len)) macro
1926 return sext(this->Bits(kRvvImm5Shift + kRvvImm5Bits - 1, kRvvImm5Shift),
1935 #undef sext macro
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp504 A = A.sext(n); in sextOrTrunc()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
H A DAPInt.h1165 APInt sext(unsigned width) const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
H A DBasicAliasAnalysis.cpp386 // zext(zext(%x)) == zext(%x), and similarly for sext; we'll handle this in GetLinearExpression()
391 // sext(sext(%x, a), b) == sext(%x, a + b) in GetLinearExpression()
394 // We haven't sign-wrapped, so it's valid to decompose sext(%x + c) in GetLinearExpression()
395 // into sext(%x) + sext(c). We'll sext the Offset ourselves: in GetLinearExpression()
397 Offset = Offset.trunc(SmallWidth).sext(NewWidth).zextOrSelf(OldWidth); in GetLinearExpression()
399 // We may have signed-wrapped, so don't decompose sext( in GetLinearExpression()
[all...]

Completed in 37 milliseconds

123