[llvm] r225066 - [PowerPC] use UINT64_C instead of ul
Hal Finkel
hfinkel at anl.gov
Thu Jan 1 11:34:00 PST 2015
Author: hfinkel
Date: Thu Jan 1 13:33:59 2015
New Revision: 225066
URL: http://llvm.org/viewvc/llvm-project?rev=225066&view=rev
Log:
[PowerPC] use UINT64_C instead of ul
Attempting to fix PR22078 (building on 32-bit systems) by replacing my careless
use of 1ul to be a uint64_t constant with UINT64_C(1).
Modified:
llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp?rev=225066&r1=225065&r2=225066&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp Thu Jan 1 13:33:59 2015
@@ -1127,7 +1127,7 @@ class BitPermutationSelector {
for (unsigned i = 0; i < Bits.size(); ++i) {
if (Bits[i].hasValue())
continue;
- Mask |= (1ul << i);
+ Mask |= (UINT64_C(1) << i);
}
return ~Mask;
@@ -1491,12 +1491,12 @@ class BitPermutationSelector {
if (BG.StartIdx <= BG.EndIdx) {
for (unsigned i = BG.StartIdx; i <= BG.EndIdx; ++i)
- Mask |= (1ul << i);
+ Mask |= (UINT64_C(1) << i);
} else {
for (unsigned i = BG.StartIdx; i < Bits.size(); ++i)
- Mask |= (1ul << i);
+ Mask |= (UINT64_C(1) << i);
for (unsigned i = 0; i <= BG.EndIdx; ++i)
- Mask |= (1ul << i);
+ Mask |= (UINT64_C(1) << i);
}
}
More information about the llvm-commits
mailing list