mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
[AArch64] Use suffix ULL to shift a 64-bit value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300932 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f113d04b8d
commit
2159c695f3
@ -825,7 +825,7 @@ static bool optimizeLogicalImm(SDValue Op, unsigned Size, uint64_t Imm,
|
|||||||
((InvertedImm << 1) | (InvertedImm >> (EltSize - 1) & 1)) &
|
((InvertedImm << 1) | (InvertedImm >> (EltSize - 1) & 1)) &
|
||||||
NonDemandedBits;
|
NonDemandedBits;
|
||||||
uint64_t Sum = RotatedImm + 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;
|
uint64_t Ones = (Sum + Carry) & NonDemandedBits;
|
||||||
NewImm = (Imm | Ones) & Mask;
|
NewImm = (Imm | Ones) & Mask;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user