Fix MSVC warning about extending a uint32_t shift result to uint64_t. NFCI.

llvm-svn: 366808
This commit is contained in:
Simon Pilgrim 2019-07-23 14:04:54 +00:00
parent 5d4bb8628c
commit c60c12fb10
1 changed files with 2 additions and 2 deletions

View File

@ -4502,9 +4502,9 @@ void AMDGPUTargetLowering::computeKnownBitsForTargetNode(
Known.One |= ((LHSKnown.One.getZExtValue() >> SelBits) & 0xff) << I; Known.One |= ((LHSKnown.One.getZExtValue() >> SelBits) & 0xff) << I;
Known.Zero |= ((LHSKnown.Zero.getZExtValue() >> SelBits) & 0xff) << I; Known.Zero |= ((LHSKnown.Zero.getZExtValue() >> SelBits) & 0xff) << I;
} else if (SelBits == 0x0c) { } else if (SelBits == 0x0c) {
Known.Zero |= 0xff << I; Known.Zero |= 0xFFull << I;
} else if (SelBits > 0x0c) { } else if (SelBits > 0x0c) {
Known.One |= 0xff << I; Known.One |= 0xFFull << I;
} }
Sel >>= 8; Sel >>= 8;
} }