[llvm] r300932 - [AArch64] Use suffix ULL to shift a 64-bit value.
Akira Hatanaka via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 20 17:35:29 PDT 2017
Author: ahatanak
Date: Thu Apr 20 19:35:27 2017
New Revision: 300932
URL: http://llvm.org/viewvc/llvm-project?rev=300932&view=rev
Log:
[AArch64] Use suffix ULL to shift a 64-bit value.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp?rev=300932&r1=300931&r2=300932&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp Thu Apr 20 19:35:27 2017
@@ -825,7 +825,7 @@ static bool optimizeLogicalImm(SDValue O
((InvertedImm << 1) | (InvertedImm >> (EltSize - 1) & 1)) &
NonDemandedBits;
uint64_t Sum = RotatedImm + NonDemandedBits;
- bool Carry = NonDemandedBits & ~Sum & (1 << (EltSize - 1));
+ bool Carry = NonDemandedBits & ~Sum & (1ULL << (EltSize - 1));
uint64_t Ones = (Sum + Carry) & NonDemandedBits;
NewImm = (Imm | Ones) & Mask;
More information about the llvm-commits
mailing list