Home
last modified time | relevance | path

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

/llvm-project-15.0.7/libcxx/test/std/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/
H A Dless_comp.pass.cpp28 void do_test(int *LHSVal, int *RHSVal) { in do_test() argument
30 const C RHS = C::from_address(RHSVal); in do_test()
31 assert((LHS < RHS) == (LHSVal < RHSVal)); in do_test()
32 assert((RHS < LHS) == (RHSVal < LHSVal)); in do_test()
33 assert((LHS > RHS) == (LHSVal > RHSVal)); in do_test()
34 assert((RHS > LHS) == (RHSVal > LHSVal)); in do_test()
35 assert((LHS <= RHS) == (LHSVal <= RHSVal)); in do_test()
36 assert((RHS <= LHS) == (RHSVal <= LHSVal)); in do_test()
37 assert((LHS >= RHS) == (LHSVal >= RHSVal)); in do_test()
38 assert((RHS >= LHS) == (RHSVal >= LHSVal)); in do_test()
H A Dequal_comp.pass.cpp28 void do_test(int *LHSVal, int *RHSVal) { in do_test() argument
30 const C RHS = C::from_address(RHSVal); in do_test()
31 const bool ExpectIsEqual = (LHSVal == RHSVal); in do_test()
/llvm-project-15.0.7/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/
H A Dless_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 assert((LHS < RHS) == (LHSVal < RHSVal)); in do_test()
36 assert((RHS < LHS) == (RHSVal < LHSVal)); 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()
H A Dequal_comp.pass.cpp30 void do_test(uintptr_t LHSVal, uintptr_t RHSVal) { in do_test() argument
32 const C RHS = C::from_address(reinterpret_cast<void*>(RHSVal)); in do_test()
33 const bool ExpectIsEqual = (LHSVal == RHSVal); in do_test()
/llvm-project-15.0.7/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/
H A Dhash.pass.cpp33 void do_test(uintptr_t LHSVal, uintptr_t RHSVal) { in do_test() argument
35 const size_t ExpectRHS = std::hash<void*>{}(reinterpret_cast<void*>(RHSVal)); in do_test()
37 const C RHS = C::from_address(reinterpret_cast<void*>(RHSVal)); in do_test()
43 assert((h(LHS) == h(RHS)) == (LHSVal == RHSVal)); in do_test()
/llvm-project-15.0.7/libcxx/test/std/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/
H A Dhash.pass.cpp32 void do_test(int *LHSVal, int *RHSVal) { in do_test() argument
34 [[maybe_unused]] const size_t ExpectRHS = std::hash<void*>{}(RHSVal); in do_test()
36 const C RHS = C::from_address(RHSVal); in do_test()
41 assert((h(LHS) == h(RHS)) == (LHSVal == RHSVal)); in do_test()
/llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/
H A Dmove_convert.single.pass.cpp44 void checkDeleter(LHS& lhs, RHS& rhs, int LHSVal, int RHSVal) { in checkDeleter() argument
46 assert(rhs.get_deleter().state() == RHSVal); in checkDeleter()
50 void checkCtor(LHS& lhs, RHS& rhs, A* RHSVal) { in checkCtor() argument
51 assert(lhs.get() == RHSVal); in checkCtor()
/llvm-project-15.0.7/compiler-rt/lib/ubsan/
H A Dubsan_handlers.cpp290 Value RHSVal(Data->Type, RHS); in handleDivremOverflowImpl() local
293 if (RHSVal.isMinusOne()) in handleDivremOverflowImpl()
335 Value RHSVal(Data->RHSType, RHS); in handleShiftOutOfBoundsImpl() local
338 if (RHSVal.isNegative() || in handleShiftOutOfBoundsImpl()
339 RHSVal.getPositiveIntValue() >= Data->LHSType.getIntegerBitWidth()) in handleShiftOutOfBoundsImpl()
350 if (RHSVal.isNegative()) in handleShiftOutOfBoundsImpl()
351 Diag(Loc, DL_Error, ET, "shift exponent %0 is negative") << RHSVal; in handleShiftOutOfBoundsImpl()
355 << RHSVal << Data->LHSType.getIntegerBitWidth() << Data->LHSType; in handleShiftOutOfBoundsImpl()
362 << LHSVal << RHSVal << Data->LHSType; in handleShiftOutOfBoundsImpl()
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/
H A DTransfer.cpp68 auto *RHSVal = Env.getValue(*RHS, SkipPast::Reference); in VisitBinaryOperator() local
69 if (RHSVal == nullptr) in VisitBinaryOperator()
73 Env.setValue(*LHSLoc, *RHSVal); in VisitBinaryOperator()
82 BoolValue &RHSVal = getLogicOperatorSubExprValue(*RHS); in VisitBinaryOperator() local
87 Env.setValue(Loc, Env.makeAnd(LHSVal, RHSVal)); in VisitBinaryOperator()
89 Env.setValue(Loc, Env.makeOr(LHSVal, RHSVal)); in VisitBinaryOperator()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelDAGToDAG.h59 uint32_t LHSVal, RHSVal; variable
61 getConstantValue(N->getOperand(1), RHSVal)) {
63 uint32_t K = Negate ? (-LHSVal & 0xffff) | (-RHSVal << 16)
64 : (LHSVal & 0xffff) | (RHSVal << 16);
H A DAMDGPUISelLowering.cpp3044 unsigned RHSVal = RHS->getZExtValue(); in performShlCombine() local
3045 if (!RHSVal) in performShlCombine()
3059 if (VT == MVT::i32 && RHSVal == 16 && X.getValueType() == MVT::i16 && in performShlCombine()
3073 if (LZ < RHSVal) in performShlCombine()
3089 if (RHSVal < 32) in performShlCombine()
3092 SDValue ShiftAmt = DAG.getConstant(RHSVal - 32, SL, MVT::i32); in performShlCombine()
3114 unsigned RHSVal = RHS->getZExtValue(); in performSraCombine() local
3117 if (RHSVal == 32) { in performSraCombine()
3127 if (RHSVal == 63) { in performSraCombine()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp126 SVal RHSVal, ProgramStateRef State) { in evalComparison() argument
138 SVal Eval = Bldr.evalBinOp(State, ComparisonOp, LHSVal, RHSVal, in evalComparison()
H A DExprEngineC.cpp724 SVal RHSVal = N->getState()->getSVal(RHS, Pred->getLocationContext()); in VisitLogicalExpr() local
726 if (RHSVal.isUndef()) { in VisitLogicalExpr()
727 X = RHSVal; in VisitLogicalExpr()
734 svalBuilder.evalCast(RHSVal, B->getType(), RHS->getType()), in VisitLogicalExpr()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp405 Value *RHSVal = FirstInst->getOperand(1); in foldPHIArgBinOpIntoPHI() local
408 Type *RHSType = RHSVal->getType(); in foldPHIArgBinOpIntoPHI()
427 if (I->getOperand(1) != RHSVal) RHSVal = nullptr; in foldPHIArgBinOpIntoPHI()
434 if (!LHSVal && !RHSVal) in foldPHIArgBinOpIntoPHI()
450 if (!RHSVal) { in foldPHIArgBinOpIntoPHI()
455 RHSVal = NewRHS; in foldPHIArgBinOpIntoPHI()
477 LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI()
484 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DPointerArithChecker.cpp328 SVal RHSVal = C.getSVal(Rhs); in checkPreStmt() local
329 if (State->isNull(RHSVal).isConstrainedTrue()) in checkPreStmt()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/AsmParser/
H A DPPCAsmParser.cpp76 int64_t RHSVal = EvaluateCRExpr(BE->getRHS()); in EvaluateCRExpr() local
79 if (LHSVal < 0 || RHSVal < 0) in EvaluateCRExpr()
84 case MCBinaryExpr::Add: Res = LHSVal + RHSVal; break; in EvaluateCRExpr()
85 case MCBinaryExpr::Mul: Res = LHSVal * RHSVal; break; in EvaluateCRExpr()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp759 for (const auto &RHSVal : RHSVals) in computeValueKnownInPredecessorsImpl() local
760 if (RHSVal.first == InterestingVal || isa<UndefValue>(RHSVal.first)) { in computeValueKnownInPredecessorsImpl()
763 if (!LHSKnownBBs.count(RHSVal.second)) in computeValueKnownInPredecessorsImpl()
764 Result.emplace_back(InterestingVal, RHSVal.second); in computeValueKnownInPredecessorsImpl()
/llvm-project-15.0.7/llvm/include/llvm/TableGen/
H A DRecord.h2073 unsigned LHSVal, RHSVal; in operator() local
2077 bool RHSFailed = RHSPart.second.getAsInteger(10, RHSVal); (void)RHSFailed; in operator()
2080 if (LHSVal != RHSVal) in operator()
2081 return LHSVal < RHSVal; in operator()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaStmt.cpp511 SourceLocation DotDotDotLoc, ExprResult RHSVal, in ActOnCaseStmt() argument
514 assert((DotDotDotLoc.isInvalid() ? RHSVal.isUnset() in ActOnCaseStmt()
515 : RHSVal.isInvalid() || RHSVal.get()) && in ActOnCaseStmt()
523 if (LHSVal.isInvalid() || RHSVal.isInvalid()) { in ActOnCaseStmt()
528 auto *CS = CaseStmt::Create(Context, LHSVal.get(), RHSVal.get(), in ActOnCaseStmt()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp562 Value *RHSVal; in matchInstruction() local
610 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
614 if (!setValueOnce(RHSVal)) in matchInstruction()
633 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
637 if (!setValueOnce(RHSVal)) in matchInstruction()
664 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
666 CandidateVal = RHSVal; in matchInstruction()
/llvm-project-15.0.7/clang/lib/AST/
H A DExprConstant.cpp12638 const APValue &RHSVal = RHSResult.Val; in VisitBinOp() local
12649 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp()
12650 Result = RHSVal; in VisitBinOp()
12658 !RHSVal.getLValueOffset().isZero()) in VisitBinOp()
12677 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp()
12686 RHSVal.getInt(), Value)) in VisitBinOp()
13766 llvm::APSInt RHSVal = RHSFX.getValue(); in VisitBinaryOperator() local
13770 unsigned Amt = RHSVal.getLimitedValue(ShiftBW - 1); in VisitBinaryOperator()
13774 if (RHSVal.isNegative()) in VisitBinaryOperator()
13776 else if (Amt != RHSVal) in VisitBinaryOperator()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp8213 ConstantSDNode *RHSVal = dyn_cast<ConstantSDNode>(RHS); in LowerSELECT_CC() local
8214 if (Opcode == AArch64ISD::CSEL && RHSVal && !RHSVal->isOne() && in LowerSELECT_CC()
8215 !RHSVal->isZero() && !RHSVal->isAllOnes()) { in LowerSELECT_CC()
8219 if (CTVal && CTVal == RHSVal && AArch64CC == AArch64CC::EQ) in LowerSELECT_CC()
8221 else if (CFVal && CFVal == RHSVal && AArch64CC == AArch64CC::NE) in LowerSELECT_CC()
8223 } else if (Opcode == AArch64ISD::CSNEG && RHSVal && RHSVal->isOne()) { in LowerSELECT_CC()
8228 if (CTVal == RHSVal && AArch64CC == AArch64CC::EQ) { in LowerSELECT_CC()
8256 ConstantFPSDNode *RHSVal = dyn_cast<ConstantFPSDNode>(RHS); in LowerSELECT_CC() local
8257 if (RHSVal && RHSVal->isZero()) { in LowerSELECT_CC()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp5662 APInt RHSVal; in FoldConstantArithmetic() local
5663 if (ISD::isConstantSplatVector(Ops[1].getNode(), RHSVal)) { in FoldConstantArithmetic()
5665 ? Ops[0].getConstantOperandAPInt(0) * RHSVal in FoldConstantArithmetic()
5666 : Ops[0].getConstantOperandAPInt(0) << RHSVal; in FoldConstantArithmetic()
H A DSelectionDAGBuilder.cpp3269 SDValue RHSVal = getValue(I.getOperand(2)); in visitSelect() local
3360 RHSVal = getValue(RHS); in visitSelect()
3385 Ops.push_back(SDValue(RHSVal.getNode(), RHSVal.getResNo() + i)); in visitSelect()