@@ -12047,36 +12047,9 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) {
1204712047 bool ResultSigned = ResultType->isUnsignedIntegerOrEnumerationType();
1204812048 APSInt Result(APInt(BitWidth, Flag), ResultSigned);
1204912049 return Success(APValue(Result), E);
12050+ }
1205012051
12051- // auto *DestTy = E->getType()->castAs<VectorType>();
12052- // QualType DestEltTy = DestTy->getElementType();
12053- // bool DestUnsigned = DestEltTy->isUnsignedIntegerOrEnumerationType();
12054- // const unsigned SourceLen = SourceLHS.getVectorLength();
12055- // SmallVector<APValue, 4> ResultElements;
12056- // ResultElements.reserve(SourceLen);
12057-
12058- // unsigned BitWidth = SourceLHS.getVectorElt(0).getInt().getBitWidth();
12059-
12060- // auto PopulateResultElements = [&](bool Flag) {
12061- // for (unsigned I = 0; I < SourceLen - 1; ++I) {
12062- // ResultElements.emplace_back(APSInt(APInt::getZero(BitWidth), DestUnsigned));
12063- // }
12064- // ResultElements.emplace_back(APSInt(APInt(BitWidth, Flag), DestUnsigned));
12065- // };
12066-
12067- // for (unsigned EltNum = 0; EltNum < SourceLen; ++EltNum) {
12068- // const APInt &A = SourceLHS.getVectorElt(EltNum).getInt();
12069- // const APInt &B = SourceRHS.getVectorElt(EltNum).getInt();
12070- // if ((A & B) != 0) {
12071- // PopulateResultElements(false);
12072- // return Success(APValue(ResultElements.data(), SourceLen), E);
12073- // }
12074- // }
12075- // PopulateResultElements(true);
12076- // return Success(APValue(ResultElements.data(), SourceLen), E);
12077- }
12078-
12079- // case clang::X86::BI__builtin_ia32_ptestz256:
12052+ // case X86::BI__builtin_ia32_ptestz256:
1208012053
1208112054 // case X86::BI__builtin_ia32_ptestc128:
1208212055 // case X86::BI__builtin_ia32_ptestc256:
0 commit comments