Skip to content

Conversation

kmclaughlin-arm
Copy link
Contributor

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Sep 15, 2025

@llvm/pr-subscribers-backend-aarch64

Author: Kerry McLaughlin (kmclaughlin-arm)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/158619.diff

1 Files Affected:

  • (modified) llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp (+1-1)
diff --git a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
index 235dbc41c4bef..54bdb8750f709 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
@@ -947,7 +947,7 @@ bool AArch64DAGToDAGISel::SelectRDSVLShiftImm(SDValue N, SDValue &Imm) {
   if (!isa<ConstantSDNode>(N))
     return false;
 
-  int64_t MulImm = 1 << cast<ConstantSDNode>(N)->getSExtValue();
+  int64_t MulImm = 1LL << cast<ConstantSDNode>(N)->getSExtValue();
   if (MulImm >= Low && MulImm <= High) {
     Imm = CurDAG->getSignedTargetConstant(MulImm, SDLoc(N), MVT::i32);
     return true;

@kmclaughlin-arm kmclaughlin-arm merged commit 271740c into llvm:main Sep 15, 2025
11 checks passed
@kmclaughlin-arm kmclaughlin-arm deleted the shift-warning branch October 7, 2025 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants