git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337257
91177308-0d34-0410-b5e6-
96231b3b80d8
const uint64_t XBitWidth = C0->getBitWidth();
const uint64_t KeptBits = XBitWidth - MaskedBits;
- const uint64_t ICmpCst = 1UL << KeptBits; // (1 << KeptBits)
- const uint64_t AddCst = ICmpCst >> 1UL; // (1 << (KeptBits-1))
+ const uint64_t ICmpCst = (uint64_t)1 << KeptBits; // (1 << KeptBits)
+ const uint64_t AddCst = ICmpCst >> 1; // (1 << (KeptBits-1))
auto *XType = X->getType();
// (add %x, (1 << (KeptBits-1)))