Home
last modified time | relevance | path

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

/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/ubsan/
H A Dubsan_handlers.cc192 Value RHSVal(Data->Type, RHS); in handleDivremOverflowImpl() local
195 if (RHSVal.isMinusOne()) in handleDivremOverflowImpl()
237 Value RHSVal(Data->RHSType, RHS); in handleShiftOutOfBoundsImpl() local
240 if (RHSVal.isNegative() || in handleShiftOutOfBoundsImpl()
241 RHSVal.getPositiveIntValue() >= Data->LHSType.getIntegerBitWidth()) in handleShiftOutOfBoundsImpl()
252 if (RHSVal.isNegative()) in handleShiftOutOfBoundsImpl()
253 Diag(Loc, DL_Error, ET, "shift exponent %0 is negative") << RHSVal; in handleShiftOutOfBoundsImpl()
257 << RHSVal << Data->LHSType.getIntegerBitWidth() << Data->LHSType; in handleShiftOutOfBoundsImpl()
264 << LHSVal << RHSVal << Data->LHSType; in handleShiftOutOfBoundsImpl()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/ubsan/
H A Dubsan_handlers.cc188 Value RHSVal(Data->Type, RHS); in handleDivremOverflowImpl() local
191 if (RHSVal.isMinusOne()) in handleDivremOverflowImpl()
233 Value RHSVal(Data->RHSType, RHS); in handleShiftOutOfBoundsImpl() local
236 if (RHSVal.isNegative() || in handleShiftOutOfBoundsImpl()
237 RHSVal.getPositiveIntValue() >= Data->LHSType.getIntegerBitWidth()) in handleShiftOutOfBoundsImpl()
248 if (RHSVal.isNegative()) in handleShiftOutOfBoundsImpl()
249 Diag(Loc, DL_Error, ET, "shift exponent %0 is negative") << RHSVal; in handleShiftOutOfBoundsImpl()
253 << RHSVal << Data->LHSType.getIntegerBitWidth() << Data->LHSType; in handleShiftOutOfBoundsImpl()
260 << LHSVal << RHSVal << Data->LHSType; in handleShiftOutOfBoundsImpl()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp102 SVal RHSVal, ProgramStateRef State) { in evalComparison() argument
114 SVal Eval = Bldr.evalBinOp(State, ComparisonOp, LHSVal, RHSVal, in evalComparison()
H A DExprEngineC.cpp732 SVal RHSVal = N->getState()->getSVal(RHS, Pred->getLocationContext()); in VisitLogicalExpr() local
734 if (RHSVal.isUndef()) { in VisitLogicalExpr()
735 X = RHSVal; in VisitLogicalExpr()
742 svalBuilder.evalCast(RHSVal, B->getType(), RHS->getType()), in VisitLogicalExpr()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp386 Value *RHSVal = FirstInst->getOperand(1); in foldPHIArgBinOpIntoPHI() local
389 Type *RHSType = RHSVal->getType(); in foldPHIArgBinOpIntoPHI()
408 if (I->getOperand(1) != RHSVal) RHSVal = nullptr; in foldPHIArgBinOpIntoPHI()
415 if (!LHSVal && !RHSVal) in foldPHIArgBinOpIntoPHI()
431 if (!RHSVal) { in foldPHIArgBinOpIntoPHI()
436 RHSVal = NewRHS; in foldPHIArgBinOpIntoPHI()
456 LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI()
463 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DPointerArithChecker.cpp328 SVal RHSVal = C.getSVal(Rhs); in checkPreStmt() local
329 if (State->isNull(RHSVal).isConstrainedTrue()) in checkPreStmt()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/TableGen/
H A DRecord.h1978 unsigned LHSVal, RHSVal; in operator() local
1982 bool RHSFailed = RHSPart.second.getAsInteger(10, RHSVal); (void)RHSFailed; in operator()
1985 if (LHSVal != RHSVal) in operator()
1986 return LHSVal < RHSVal; in operator()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp770 for (const auto &RHSVal : RHSVals) in computeValueKnownInPredecessorsImpl() local
771 if (RHSVal.first == InterestingVal || isa<UndefValue>(RHSVal.first)) { in computeValueKnownInPredecessorsImpl()
774 if (!LHSKnownBBs.count(RHSVal.second)) in computeValueKnownInPredecessorsImpl()
775 Result.emplace_back(InterestingVal, RHSVal.second); in computeValueKnownInPredecessorsImpl()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaStmt.cpp494 SourceLocation DotDotDotLoc, ExprResult RHSVal, in ActOnCaseStmt() argument
497 assert((DotDotDotLoc.isInvalid() ? RHSVal.isUnset() in ActOnCaseStmt()
498 : RHSVal.isInvalid() || RHSVal.get()) && in ActOnCaseStmt()
506 if (LHSVal.isInvalid() || RHSVal.isInvalid()) { in ActOnCaseStmt()
511 auto *CS = CaseStmt::Create(Context, LHSVal.get(), RHSVal.get(), in ActOnCaseStmt()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp3056 unsigned RHSVal = RHS->getZExtValue(); in performShlCombine() local
3057 if (!RHSVal) in performShlCombine()
3071 if (VT == MVT::i32 && RHSVal == 16 && X.getValueType() == MVT::i16 && in performShlCombine()
3085 if (LZ < RHSVal) in performShlCombine()
3101 if (RHSVal < 32) in performShlCombine()
3104 SDValue ShiftAmt = DAG.getConstant(RHSVal - 32, SL, MVT::i32); in performShlCombine()
3126 unsigned RHSVal = RHS->getZExtValue(); in performSraCombine() local
3129 if (RHSVal == 32) { in performSraCombine()
3139 if (RHSVal == 63) { in performSraCombine()
H A DAMDGPUISelDAGToDAG.cpp80 uint32_t LHSVal, RHSVal; in packConstantV2I16() local
82 getConstantValue(N->getOperand(1), RHSVal)) { in packConstantV2I16()
85 (-LHSVal & 0xffff) | (-RHSVal << 16) : in packConstantV2I16()
86 (LHSVal & 0xffff) | (RHSVal << 16); in packConstantV2I16()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp528 Value *RHSVal; in matchInstruction() local
576 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
580 if (!setValueOnce(RHSVal)) in matchInstruction()
599 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
603 if (!setValueOnce(RHSVal)) in matchInstruction()
630 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
632 CandidateVal = RHSVal; in matchInstruction()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DExprConstant.cpp12375 const APValue &RHSVal = RHSResult.Val; in VisitBinOp() local
12378 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp()
12380 addOrSubLValueAsInteger(Result, RHSVal.getInt(), E->getOpcode() == BO_Sub); in VisitBinOp()
12386 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp()
12387 Result = RHSVal; in VisitBinOp()
12392 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp()
12395 !RHSVal.getLValueOffset().isZero()) in VisitBinOp()
12398 const Expr *RHSExpr = RHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp()
12414 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp()
12423 RHSVal.getInt(), Value)) in VisitBinOp()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp7093 ConstantSDNode *RHSVal = dyn_cast<ConstantSDNode>(RHS); in LowerSELECT_CC() local
7094 if (Opcode == AArch64ISD::CSEL && RHSVal && !RHSVal->isOne() && in LowerSELECT_CC()
7095 !RHSVal->isNullValue() && !RHSVal->isAllOnesValue()) { in LowerSELECT_CC()
7099 if (CTVal && CTVal == RHSVal && AArch64CC == AArch64CC::EQ) in LowerSELECT_CC()
7101 else if (CFVal && CFVal == RHSVal && AArch64CC == AArch64CC::NE) in LowerSELECT_CC()
7103 } else if (Opcode == AArch64ISD::CSNEG && RHSVal && RHSVal->isOne()) { in LowerSELECT_CC()
7108 if (CTVal == RHSVal && AArch64CC == AArch64CC::EQ) { in LowerSELECT_CC()
7136 ConstantFPSDNode *RHSVal = dyn_cast<ConstantFPSDNode>(RHS); in LowerSELECT_CC() local
7137 if (RHSVal && RHSVal->isZero()) { in LowerSELECT_CC()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp3253 SDValue RHSVal = getValue(I.getOperand(2)); in visitSelect() local
3344 RHSVal = getValue(RHS); in visitSelect()
3369 Ops.push_back(SDValue(RHSVal.getNode(), RHSVal.getResNo() + i)); in visitSelect()