Home
last modified time | relevance | path

Searched refs:RHSVal (Results 1 – 24 of 24) sorted by relevance

/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/
Dless_comp.pass.cpp34 void do_test(uintptr_t LHSVal, uintptr_t RHSVal) { in do_test() argument
36 const C RHS = C::from_address(reinterpret_cast<void*>(RHSVal)); in do_test()
37 assert((LHS < RHS) == (LHSVal < RHSVal)); in do_test()
38 assert((RHS < LHS) == (RHSVal < LHSVal)); in do_test()
39 assert((LHS > RHS) == (LHSVal > RHSVal)); in do_test()
40 assert((RHS > LHS) == (RHSVal > LHSVal)); in do_test()
41 assert((LHS <= RHS) == (LHSVal <= RHSVal)); in do_test()
42 assert((RHS <= LHS) == (RHSVal <= LHSVal)); in do_test()
43 assert((LHS >= RHS) == (LHSVal >= RHSVal)); in do_test()
44 assert((RHS >= LHS) == (RHSVal >= LHSVal)); in do_test()
Dequal_comp.pass.cpp32 void do_test(uintptr_t LHSVal, uintptr_t RHSVal) { in do_test() argument
34 const C RHS = C::from_address(reinterpret_cast<void*>(RHSVal)); in do_test()
35 const bool ExpectIsEqual = (LHSVal == RHSVal); in do_test()
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/
Dhash.pass.cpp34 void do_test(uintptr_t LHSVal, uintptr_t RHSVal) { in do_test() argument
36 const size_t ExpectRHS = std::hash<void*>{}(reinterpret_cast<void*>(RHSVal)); in do_test()
38 const C RHS = C::from_address(reinterpret_cast<void*>(RHSVal)); in do_test()
44 assert((h(LHS) == h(RHS)) == (LHSVal == RHSVal)); in do_test()
/external/compiler-rt/lib/ubsan/
Dubsan_handlers.cc180 Value RHSVal(Data->Type, RHS); in handleDivremOverflowImpl() local
183 if (RHSVal.isMinusOne()) in handleDivremOverflowImpl()
224 Value RHSVal(Data->RHSType, RHS); in handleShiftOutOfBoundsImpl() local
227 if (RHSVal.isNegative() || in handleShiftOutOfBoundsImpl()
228 RHSVal.getPositiveIntValue() >= Data->LHSType.getIntegerBitWidth()) in handleShiftOutOfBoundsImpl()
239 if (RHSVal.isNegative()) in handleShiftOutOfBoundsImpl()
240 Diag(Loc, DL_Error, "shift exponent %0 is negative") << RHSVal; in handleShiftOutOfBoundsImpl()
243 << RHSVal << Data->LHSType.getIntegerBitWidth() << Data->LHSType; in handleShiftOutOfBoundsImpl()
250 << LHSVal << RHSVal << Data->LHSType; in handleShiftOutOfBoundsImpl()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombinePHI.cpp29 Value *RHSVal = FirstInst->getOperand(1); in FoldPHIArgBinOpIntoPHI() local
32 Type *RHSType = RHSVal->getType(); in FoldPHIArgBinOpIntoPHI()
67 if (I->getOperand(1) != RHSVal) RHSVal = 0; in FoldPHIArgBinOpIntoPHI()
74 if (!LHSVal && !RHSVal) in FoldPHIArgBinOpIntoPHI()
90 if (RHSVal == 0) { in FoldPHIArgBinOpIntoPHI()
95 RHSVal = NewRHS; in FoldPHIArgBinOpIntoPHI()
115 LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
122 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
DInstCombineSimplifyDemanded.cpp527 const APInt &RHSVal = RHS->getValue(); in SimplifyDemandedUseBits() local
528 APInt CarryBits((~LHSKnownZero + RHSVal) ^ (~LHSKnownZero ^ RHSVal)); in SimplifyDemandedUseBits()
534 KnownOne = ((LHSKnownZero & RHSVal) | in SimplifyDemandedUseBits()
535 (LHSKnownOne & ~RHSVal)) & ~CarryBits; in SimplifyDemandedUseBits()
539 KnownZero = LHSKnownZero & ~RHSVal & ~CarryBits; in SimplifyDemandedUseBits()
DInstCombineAddSub.cpp117 const APInt &RHSVal = CI->getValue(); in visitAdd() local
121 if (XorRHS->getValue() == -RHSVal) { in visitAdd()
122 if (RHSVal.isPowerOf2()) in visitAdd()
123 ExtendAmt = TySizeBits - RHSVal.logBase2() - 1; in visitAdd()
/external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/
Dmove_convert.single.pass.cpp45 void checkDeleter(LHS& lhs, RHS& rhs, int LHSVal, int RHSVal) { in checkDeleter() argument
47 assert(rhs.get_deleter().state() == RHSVal); in checkDeleter()
51 void checkCtor(LHS& lhs, RHS& rhs, A* RHSVal) { in checkCtor() argument
52 assert(lhs.get() == RHSVal); in checkCtor()
/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp33 Value *RHSVal = FirstInst->getOperand(1); in FoldPHIArgBinOpIntoPHI() local
36 Type *RHSType = RHSVal->getType(); in FoldPHIArgBinOpIntoPHI()
55 if (I->getOperand(1) != RHSVal) RHSVal = nullptr; in FoldPHIArgBinOpIntoPHI()
62 if (!LHSVal && !RHSVal) in FoldPHIArgBinOpIntoPHI()
78 if (!RHSVal) { in FoldPHIArgBinOpIntoPHI()
83 RHSVal = NewRHS; in FoldPHIArgBinOpIntoPHI()
103 LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
110 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
DInstCombineAddSub.cpp1064 const APInt &RHSVal = CI->getValue(); in visitAdd() local
1068 if (XorRHS->getValue() == -RHSVal) { in visitAdd()
1069 if (RHSVal.isPowerOf2()) in visitAdd()
1070 ExtendAmt = TySizeBits - RHSVal.logBase2() - 1; in visitAdd()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineC.cpp594 SVal RHSVal = N->getState()->getSVal(RHS, Pred->getLocationContext()); in VisitLogicalExpr() local
596 if (RHSVal.isUndef()) { in VisitLogicalExpr()
597 X = RHSVal; in VisitLogicalExpr()
599 DefinedOrUnknownSVal DefinedRHS = RHSVal.castAs<DefinedOrUnknownSVal>(); in VisitLogicalExpr()
606 X = getSValBuilder().evalCast(RHSVal, B->getType(), RHS->getType()); in VisitLogicalExpr()
/external/clang/lib/StaticAnalyzer/Checkers/
DPointerArithChecker.cpp328 SVal RHSVal = State->getSVal(Rhs, C.getLocationContext()); in checkPreStmt() local
329 if (State->isNull(RHSVal).isConstrainedTrue()) in checkPreStmt()
/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp495 for (const auto &RHSVal : RHSVals) in ComputeValueKnownInPredecessors() local
496 if (RHSVal.first == InterestingVal || isa<UndefValue>(RHSVal.first)) { in ComputeValueKnownInPredecessors()
499 if (!LHSKnownBBs.count(RHSVal.second)) in ComputeValueKnownInPredecessors()
500 Result.emplace_back(InterestingVal, RHSVal.second); in ComputeValueKnownInPredecessors()
/external/llvm/include/llvm/TableGen/
DRecord.h1646 unsigned LHSVal, RHSVal; in operator() local
1650 bool RHSFailed = RHSPart.second.getAsInteger(10, RHSVal); (void)RHSFailed; in operator()
1653 if (LHSVal != RHSVal) in operator()
1654 return LHSVal < RHSVal; in operator()
/external/clang/lib/Sema/
DSemaStmt.cpp377 SourceLocation DotDotDotLoc, Expr *RHSVal, in ActOnCaseStmt() argument
414 if (RHSVal && !RHSVal->isTypeDependent() && !RHSVal->isValueDependent()) { in ActOnCaseStmt()
415 RHSVal = VerifyIntegerConstantExpression(RHSVal).get(); in ActOnCaseStmt()
425 auto RHS = RHSVal ? ActOnFinishFullExpr(RHSVal, RHSVal->getExprLoc(), false, in ActOnCaseStmt()
/external/llvm/lib/Target/PowerPC/AsmParser/
DPPCAsmParser.cpp220 int64_t RHSVal = EvaluateCRExpr(BE->getRHS()); in EvaluateCRExpr() local
223 if (LHSVal < 0 || RHSVal < 0) in EvaluateCRExpr()
228 case MCBinaryExpr::Add: Res = LHSVal + RHSVal; break; in EvaluateCRExpr()
229 case MCBinaryExpr::Mul: Res = LHSVal * RHSVal; break; in EvaluateCRExpr()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp444 Value *RHSVal; in matchInstruction() local
493 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
497 if (!setValueOnce(RHSVal)) in matchInstruction()
516 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
520 if (!setValueOnce(RHSVal)) in matchInstruction()
547 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
549 CandidateVal = RHSVal; in matchInstruction()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp2346 unsigned RHSVal = RHS->getZExtValue(); in performShlCombine() local
2347 if (RHSVal < 32) in performShlCombine()
2355 SDValue ShiftAmt = DAG.getConstant(RHSVal - 32, SL, MVT::i32); in performShlCombine()
2377 unsigned RHSVal = RHS->getZExtValue(); in performSraCombine() local
2380 if (RHSVal == 32) { in performSraCombine()
2390 if (RHSVal == 63) { in performSraCombine()
/external/swiftshader/third_party/LLVM/lib/TableGen/
DRecord.cpp198 int64_t RHSVal = RHSi->getValue(); in convertValue() local
200 if (canFitInBitfield(MHSVal, Size) && canFitInBitfield(RHSVal, Size)) { in convertValue()
207 IntInit::get((RHSVal & (1LL << i)) ? 1 : 0), in convertValue()
/external/clang/lib/AST/
DExprConstant.cpp7355 const APValue &RHSVal = RHSResult.Val; in VisitBinOp() local
7358 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp()
7361 CharUnits::fromQuantity(RHSVal.getInt().getZExtValue()); in VisitBinOp()
7371 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp()
7372 Result = RHSVal; in VisitBinOp()
7378 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp()
7381 !RHSVal.getLValueOffset().isZero()) in VisitBinOp()
7384 const Expr *RHSExpr = RHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp()
7400 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp()
7409 RHSVal.getInt(), Value)) in VisitBinOp()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp3128 const APInt &RHSVal = CI->getValue(); in SimplifyICmpInst() local
3129 if (((LHSKnownZero & RHSVal) != 0) || ((LHSKnownOne & ~RHSVal) != 0)) in SimplifyICmpInst()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp2750 SDValue RHSVal = getValue(I.getOperand(2)); in visitSelect() local
2828 RHSVal = getValue(RHS); in visitSelect()
2836 Ops.push_back(SDValue(RHSVal.getNode(), RHSVal.getResNo() + i)); in visitSelect()
5997 SDValue RHSVal = getMemCmpLoad(RHS, LoadVT, LoadTy, *this); in visitMemCmpCall() local
5999 SDValue Res = DAG.getSetCC(getCurSDLoc(), MVT::i1, LHSVal, RHSVal, in visitMemCmpCall()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp5451 SDValue RHSVal = getMemCmpLoad(RHS, LoadVT, LoadTy, *this); in visitMemCmpCall() local
5453 SDValue Res = DAG.getSetCC(getCurDebugLoc(), MVT::i1, LHSVal, RHSVal, in visitMemCmpCall()
/external/clang/include/clang/Sema/
DSema.h3384 SourceLocation DotDotDotLoc, Expr *RHSVal,