Commit 9eda026c by Uros Bizjak Committed by Uros Bizjak

i386.c (memory_address_length): Added missing part from my previous commit.

	* config/i386/i386.c (memory_address_length):
	Added missing part from my previous commit.

From-SVN: r192694
parent 74911c3c
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
* config/i386/i386.c (memory_address_length): Assert that non-null * config/i386/i386.c (memory_address_length): Assert that non-null
base or index RTXes are registers. Do not check for REG RTXes. base or index RTXes are registers. Do not check for REG RTXes.
Determine addr32 prefix from original base and index RTXes. Determine addr32 prefix using SImode_address_operand or
Simplify code. from original base and index RTXes. Simplify code.
2012-10-22 Richard Biener <rguenther@suse.de> 2012-10-22 Richard Biener <rguenther@suse.de>
...@@ -23780,7 +23780,8 @@ memory_address_length (rtx addr, bool lea) ...@@ -23780,7 +23780,8 @@ memory_address_length (rtx addr, bool lea)
/* If this is not LEA instruction, add the length of addr32 prefix. */ /* If this is not LEA instruction, add the length of addr32 prefix. */
if (TARGET_64BIT && !lea if (TARGET_64BIT && !lea
&& ((parts.base && GET_MODE (parts.base) == SImode) && (SImode_address_operand (addr, VOIDmode)
|| (parts.base && GET_MODE (parts.base) == SImode)
|| (parts.index && GET_MODE (parts.index) == SImode))) || (parts.index && GET_MODE (parts.index) == SImode)))
len++; len++;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment