mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-19 01:48:34 +00:00
big endian systems shift by bits too, hopefully this will fix the ppc
bootstrap problems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82464 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
471fbf9949
commit
19ad784dac
@ -1202,7 +1202,7 @@ static Value *GetStoreValueForLoad(Value *SrcVal, unsigned Offset,
|
|||||||
if (TD.isLittleEndian()) {
|
if (TD.isLittleEndian()) {
|
||||||
ShiftAmt = Offset*8;
|
ShiftAmt = Offset*8;
|
||||||
} else {
|
} else {
|
||||||
ShiftAmt = StoreSize-LoadSize-Offset;
|
ShiftAmt = (StoreSize-LoadSize-Offset)*8;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ShiftAmt)
|
if (ShiftAmt)
|
||||||
|
Loading…
Reference in New Issue
Block a user