[Bug target/54589] struct offset add should be folded into address calculation
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Dec 1 07:28:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54589
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Dec 1 07:27:58 2018
New Revision: 266707
URL: https://gcc.gnu.org/viewcvs?rev=266707&root=gcc&view=rev
Log:
PR target/54589
* combine.c (find_split_point): For invalid memory address
nonobj + obj + const, if reg + obj + const is valid addressing
mode, split at nonobj. Use if rather than else if for the
fallback. Comment fixes.
* gcc.target/i386/pr54589.c: New test.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr54589.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/combine.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list