mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Use endianess dependent offsets for load/store of doubles when
using two swc/lwc instead of sdc/ldc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89826 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0106a0aafe
commit
37fd537544
@ -235,6 +235,10 @@ SDNode *MipsDAGToDAGISel::SelectLoadFp64(SDValue N) {
|
||||
else
|
||||
return NULL;
|
||||
|
||||
// Choose the offsets depending on the endianess
|
||||
if (TM.getTargetData()->isBigEndian())
|
||||
std::swap(Offset0, Offset1);
|
||||
|
||||
// Instead of:
|
||||
// ldc $f0, X($3)
|
||||
// Generate:
|
||||
@ -296,6 +300,10 @@ SDNode *MipsDAGToDAGISel::SelectStoreFp64(SDValue N) {
|
||||
else
|
||||
return NULL;
|
||||
|
||||
// Choose the offsets depending on the endianess
|
||||
if (TM.getTargetData()->isBigEndian())
|
||||
std::swap(Offset0, Offset1);
|
||||
|
||||
// Instead of:
|
||||
// sdc $f0, X($3)
|
||||
// Generate:
|
||||
|
Loading…
Reference in New Issue
Block a user