Skip to content

Commit

Permalink
Update OperandUtils.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
NaC-L committed Nov 23, 2024
1 parent cf4b35c commit 2ee6c25
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lifter/OperandUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,10 @@ Value* lifterClass::doPatternMatching(Instruction::BinaryOps const I,
}

KnownBits lifterClass::analyzeValueKnownBits(Value* value, Instruction* ctxI) {
KnownBits knownBits(64);
knownBits.resetAll();
if (value->getType()->getIntegerBitWidth() > 64)
return knownBits;

if (auto v_inst = dyn_cast<Instruction>(value)) {
// Use find() to check if v_inst exists in the map
Expand All @@ -337,8 +341,7 @@ KnownBits lifterClass::analyzeValueKnownBits(Value* value, Instruction* ctxI) {
return KnownBits::makeConstant(a);
}
}
KnownBits knownBits(64);
knownBits.resetAll();

if (value->getType() == Type::getInt128Ty(value->getContext()))
return knownBits;

Expand Down

0 comments on commit 2ee6c25

Please sign in to comment.