re PR target/49781 ([x32] Unnecessary lea in x32 mode)
authorUros Bizjak <uros@gcc.gnu.org>
Mon, 8 Aug 2011 14:59:19 +0000 (16:59 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 8 Aug 2011 14:59:19 +0000 (16:59 +0200)
commit473b30ce95c6b3f41ced3bcc18fceb2c5f2ac466
tree71eb8713ed9043df8e60a9dda3a64fdf5aa2a4e5
parentd7cfa3145fc72f621ab2747df2f7bf046c0ee4db
re PR target/49781 ([x32] Unnecessary lea in x32 mode)

PR target/49781
* config/i386/i386.c (ix86_decompose_address): Allow zero-extended
SImode addresses.
(ix86_print_operand_address): Handle zero-extended addresses.
(memory_address_length): Add length of addr32 prefix for
zero-extended addresses.
(ix86_secondary_reload): Handle moves to/from double-word general
registers from/to zero-extended addresses.
* config/i386/predicates.md (lea_address_operand): Reject
zero-extended operands.

From-SVN: r177566
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/predicates.md