diff options
author | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-09-17 20:03:25 +0000 |
---|---|---|
committer | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-09-17 20:03:25 +0000 |
commit | bb381d7063133d2fa855cd30db49f4f4023ba343 (patch) | |
tree | f611f6a68ecbdd4729a411b7c86b16e08ae67166 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
parent | 4c3d9c5e24200e026168d3ff8a68a85f10d2877f (diff) | |
download | bcm5719-llvm-bb381d7063133d2fa855cd30db49f4f4023ba343.tar.gz bcm5719-llvm-bb381d7063133d2fa855cd30db49f4f4023ba343.zip |
[PowerPC] Fix problems with large code model (PR17169).
Large code model on PPC64 requires creating and referencing TOC entries when
using the addis/ld form of addressing. This was not being done in all cases.
The changes in this patch to PPCAsmPrinter::EmitInstruction() fix this. Two
test cases are also modified to reflect this requirement.
Fast-isel was not creating correct code for loading floating-point constants
using large code model. This also requires the addis/ld form of addressing.
Previously we were using the addis/lfd shortcut which is only applicable to
medium code model. One test case is modified to reflect this requirement.
llvm-svn: 190882
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
0 files changed, 0 insertions, 0 deletions