diff options
| author | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2015-06-30 19:45:45 +0000 |
|---|---|---|
| committer | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2015-06-30 19:45:45 +0000 |
| commit | 9c8d4cf2728588f3fb7012507149dcd9186f75bf (patch) | |
| tree | 76246d23abf96d332e76f629987fcda5ffe63bc4 /llvm/lib/Target/PowerPC | |
| parent | 8d3010a1a652ce831cf88a2ec4b69f2567dcd621 (diff) | |
| download | bcm5719-llvm-9c8d4cf2728588f3fb7012507149dcd9186f75bf.tar.gz bcm5719-llvm-9c8d4cf2728588f3fb7012507149dcd9186f75bf.zip | |
Fixes a bug with __builtin_vsx_lxvdw4x on Little Endian systems
llvm-svn: 241108
Diffstat (limited to 'llvm/lib/Target/PowerPC')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index e3d5fd0efe1..f657c1ff49e 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -9960,7 +9960,10 @@ SDValue PPCTargetLowering::expandVSXLoadForLE(SDNode *N, case ISD::INTRINSIC_W_CHAIN: { MemIntrinsicSDNode *Intrin = cast<MemIntrinsicSDNode>(N); Chain = Intrin->getChain(); - Base = Intrin->getBasePtr(); + // I supppose that similarly to the store case below, this doesn't get + // us what we want. Get operand 2 instead. + //Base = Intrin->getBasePtr(); + Base = Intrin->getOperand(2); MMO = Intrin->getMemOperand(); break; } |

