[llvm] b72330c - [AArch64] AArch64ExpandImm.cpp - fix MSVC "32-bit shift implicitly converted to 64 bits" warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 5 01:38:30 PST 2023
Author: Simon Pilgrim
Date: 2023-02-05T09:38:20Z
New Revision: b72330cd54f985f3454d3538b504027c3eff8711
URL: https://github.com/llvm/llvm-project/commit/b72330cd54f985f3454d3538b504027c3eff8711
DIFF: https://github.com/llvm/llvm-project/commit/b72330cd54f985f3454d3538b504027c3eff8711.diff
LOG: [AArch64] AArch64ExpandImm.cpp - fix MSVC "32-bit shift implicitly converted to 64 bits" warning. NFC.
Added:
Modified:
llvm/lib/Target/AArch64/AArch64ExpandImm.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64ExpandImm.cpp b/llvm/lib/Target/AArch64/AArch64ExpandImm.cpp
index ff85e2137c67..efaa5e9c4c33 100644
--- a/llvm/lib/Target/AArch64/AArch64ExpandImm.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ExpandImm.cpp
@@ -270,7 +270,7 @@ static uint64_t MaximallyReplicateSubImmediate(uint64_t V, uint64_t Subset) {
// 64, 32, 16, 8, 4, 2
for (uint64_t i = 0; i < 6; ++i) {
- uint64_t Rotation = 1 << (6 - i);
+ uint64_t Rotation = 1ULL << (6 - i);
uint64_t Closure = Result | rotl(Result, Rotation);
if (Closure != (Closure & V)) {
break;
More information about the llvm-commits
mailing list