re PR target/59880 (ix86_avoid_lea_for_addr is buggy)
authorJakub Jelinek <jakub@redhat.com>
Mon, 20 Jan 2014 09:52:21 +0000 (10:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 20 Jan 2014 09:52:21 +0000 (10:52 +0100)
commit0fabe5f34ff7f53f92f055aff02170ef6a305cac
tree72ae1b0d8c429da9fb93082e460c754929b43049
parent6fc00404fa5037b61bd85d1825c2504e70d4992c
re PR target/59880 (ix86_avoid_lea_for_addr is buggy)

PR target/59880
* config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
if operands[1] is a REG or ZERO_EXTEND of a REG.

* gcc.target/i386/pr59880.c: New test.

From-SVN: r206792
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr59880.c [new file with mode: 0644]