re PR target/54589 (struct offset add should be folded into address calculation)
authorJakub Jelinek <jakub@redhat.com>
Sat, 1 Dec 2018 07:27:58 +0000 (08:27 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 1 Dec 2018 07:27:58 +0000 (08:27 +0100)
commit6b4f5050a9a5156eb23b9174ff576a77b1149465
treeaee5b5dee90397d7a4c1d9984482cdc9fbcfc202
parent1072cfdf34f5fda7091282a4780f4974cac306d3
re PR target/54589 (struct offset add should be folded into address calculation)

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.

From-SVN: r266707
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr54589.c [new file with mode: 0644]