aboutsummaryrefslogtreecommitdiff
path: root/gcc/analyzer/program-state.cc
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2023-11-16 17:42:26 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2023-11-16 17:42:26 +0000
commitd2934eb6ae92471484469d8ddd039eb34ef400b1 (patch)
treeb8f8ce2b0ad4d977b873c6e26df107e2baa3689f /gcc/analyzer/program-state.cc
parent4d8b41bb0512947ce13636fc460ea9fb8dea419a (diff)
downloadgcc-d2934eb6ae92471484469d8ddd039eb34ef400b1.zip
gcc-d2934eb6ae92471484469d8ddd039eb34ef400b1.tar.gz
gcc-d2934eb6ae92471484469d8ddd039eb34ef400b1.tar.bz2
hppa: Revise REG+D address support to allow long displacements before reload
In analyzing PR rtl-optimization/112415, I realized that restricting REG+D offsets to 5-bits before reload results in very poor code and complexities in optimizing these instructions after reload. The general problem is long displacements are not allowed for floating point accesses when generating PA 1.1 code. Even with PA 2.0, there is a ELF linker bug that prevents using long displacements for floating point loads and stores. In the past, enabling long displacements before reload caused issues in reload. However, there have been fixes in the handling of reloads for floating-point accesses. This change allows long displacements before reload and corrects a couple of issues in the constraint handling for integer and floating-point accesses. 2023-11-16 John David Anglin <danglin@gcc.gnu.org> gcc/ChangeLog: PR rtl-optimization/112415 * config/pa/pa.cc (pa_legitimate_address_p): Allow 14-bit displacements before reload. Simplify logic flow. Revise comments. * config/pa/pa.h (TARGET_ELF64): New define. (INT14_OK_STRICT): Update define and comment. * config/pa/pa64-linux.h (TARGET_ELF64): Define. * config/pa/predicates.md (base14_operand): Don't check alignment of short displacements. (integer_store_memory_operand): Don't return true when reload_in_progress is true. Remove INT_5_BITS check. (floating_point_store_memory_operand): Don't return true when reload_in_progress is true. Use INT14_OK_STRICT to check whether long displacements are always okay.
Diffstat (limited to 'gcc/analyzer/program-state.cc')
0 files changed, 0 insertions, 0 deletions