diff options
author | Simon Dardis <simon.dardis@imgtec.com> | 2016-10-05 18:26:19 +0000 |
---|---|---|
committer | Simon Dardis <simon.dardis@imgtec.com> | 2016-10-05 18:26:19 +0000 |
commit | 299dbd6cd15807d154cc91b7748b73da5adf0bda (patch) | |
tree | 67bc9ba298c41af882b0cbc16ae2aa67f20a3fa3 /lldb/packages/Python/lldbsuite/test/lang/cpp | |
parent | 36e21a3d56d48ec16044f1cc7e4ea903bb0a1216 (diff) | |
download | bcm5719-llvm-299dbd6cd15807d154cc91b7748b73da5adf0bda.tar.gz bcm5719-llvm-299dbd6cd15807d154cc91b7748b73da5adf0bda.zip |
[mips][ias] fix li macro when values are negated with ~
The integrated assembler evaluates the expressions such as ~0x80000000 to
0xffffffff7fffffff early in the parsing process. This patch adds compatibility
with gas so that li loads the expected value (0x7fffffff) in those cases. This
only occurs iff all the upper 32bits are set and maintains existing checks by
not truncating the result down to 32 bits if any of the the upper bits are not
set.
Reviewers: dsanders, zoran.jovanovic
Differential Review: https://reviews.llvm.org/D23399
llvm-svn: 283353
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp')
0 files changed, 0 insertions, 0 deletions