[clang] [lldb] [llvm] [mlir] [APInt] Fix APInt constructions where value does not fit bitwidth (NFCI) (PR #80309)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 20 03:54:36 PDT 2024
================
@@ -4377,7 +4377,7 @@ AMDGPUInstructionSelector::selectGlobalSAddr(MachineOperand &Root) const {
// instructions to perform VALU adds with immediates or inline literals.
unsigned NumLiterals =
!TII.isInlineConstant(APInt(32, ConstOffset & 0xffffffff)) +
- !TII.isInlineConstant(APInt(32, ConstOffset >> 32));
+ !TII.isInlineConstant(APInt(32, uint64_t(ConstOffset) >> 32));
----------------
arsenm wrote:
These should probably just use Lo_32/Hi_32
https://github.com/llvm/llvm-project/pull/80309
More information about the cfe-commits
mailing list