[PATCH, i386]: Fix length attribute calculation for LEA and addr32 addresses, some improvements

2012-10-22 Thread Uros Bizjak
Hello! We don't need to check for REG_P on base and index, we are sure that non-null RTXes are registers only. Also, we should determine the mode of RTXes in addr32 calculation from original RTXes. 2012-10-22 Uros Bizjak * config/i386/i386.c (memory_address_length): Assert that non-nu

[PATCH, i386]: Fix length attribute calculation for LEA and addr32 addresses

2012-10-21 Thread Uros Bizjak
Hello! Attached patch fixes length attribute calculation for LEA insn and addr32 addresses: - REX prefix was computed in a wrong way for zero-extended LEA instructions. Addresses with SUBREG, ZERO_EXTEND and AND result in SImode target register without REX prefix. - addr32 handling was wrong for