projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Enable generating PPC pre-increment (r+imm) instructions by default.
[oota-llvm.git]
/
lib
/
Target
/
PowerPC
/
PPCFrameLowering.cpp
diff --git
a/lib/Target/PowerPC/PPCFrameLowering.cpp
b/lib/Target/PowerPC/PPCFrameLowering.cpp
index 5950290ca27e91d1ef066759a6fe707aeefe6fb3..be172c2435587e80d5da1f421bfa9953f41e9f46 100644
(file)
--- a/
lib/Target/PowerPC/PPCFrameLowering.cpp
+++ b/
lib/Target/PowerPC/PPCFrameLowering.cpp
@@
-330,6
+330,8
@@
void PPCFrameLowering::emitPrologue(MachineFunction &MF) const {
BuildMI(MBB, MBBI, dl, TII.get(PPC::MFLR), PPC::R0);
if (HasFP)
+ // FIXME: On PPC32 SVR4, FPOffset is negative and access to negative
+ // offsets of R1 is not allowed.
BuildMI(MBB, MBBI, dl, TII.get(PPC::STW))
.addReg(PPC::R31)
.addImm(FPOffset)