aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Alpha/AlphaAsmPrinter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-11-11 15:52:29 +0000
committerDan Gohman <gohman@apple.com>2008-11-11 15:52:29 +0000
commit0bd76b79d3f9f5dd78402ffb9022ad774b2edda0 (patch)
treea6d045ed019eb30f916d34dea42785acfaadd5a8 /lib/Target/Alpha/AlphaAsmPrinter.cpp
parentb2a6bf80fe62dac82c519103bbf4cf74bfa6ee6d (diff)
downloadexternal_llvm-0bd76b79d3f9f5dd78402ffb9022ad774b2edda0.zip
external_llvm-0bd76b79d3f9f5dd78402ffb9022ad774b2edda0.tar.gz
external_llvm-0bd76b79d3f9f5dd78402ffb9022ad774b2edda0.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59044 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaAsmPrinter.cpp')
0 files changed, 0 insertions, 0 deletions