diff options
| author | Dan Gohman <gohman@apple.com> | 2008-11-11 15:52:29 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-11-11 15:52:29 +0000 |
| commit | 059c4fa8d876a96b31dff905a82018c088cb9666 (patch) | |
| tree | 9f245fd435070096a69ee4f826a2fb05ad44f77b /llvm/lib/Target/Sparc | |
| parent | 3987b17e2861c274b6dc2b96cc0f22645f0a8922 (diff) | |
| download | bcm5719-llvm-059c4fa8d876a96b31dff905a82018c088cb9666.tar.gz bcm5719-llvm-059c4fa8d876a96b31dff905a82018c088cb9666.zip | |
The 32-bit displacement field in an x86 address is signed. Arrange for it
to be sign-extended when it is promoted to 64 bits for intermediate
offset calculations. The offset calculations are done as uint64_t so that
overflow conditions are well defined.
This fixes a problem which is currently hidden by the x86 AsmPrinter but
which was exposed by r58917 (which is temporarily reverted). See PR3027
for details.
llvm-svn: 59044
Diffstat (limited to 'llvm/lib/Target/Sparc')
0 files changed, 0 insertions, 0 deletions

