Commit 9ec96023 by Uros Bizjak Committed by Uros Bizjak

i386.c (ix86_decompose_address): Prevent %fs:(%reg) addresses only when %reg is not in word mode.

	* config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
	addresses only when %reg is not in word mode.

From-SVN: r185327
parent d47657bd
2012-03-13 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
addresses only when %reg is not in word mode.
2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/microblaze/microblaze.md: Fix typo. * config/microblaze/microblaze.md: Fix typo.
......
...@@ -11563,8 +11563,10 @@ ix86_decompose_address (rtx addr, struct ix86_address *out) ...@@ -11563,8 +11563,10 @@ ix86_decompose_address (rtx addr, struct ix86_address *out)
return 0; return 0;
} }
if (seg != SEG_DEFAULT && (base || index) /* Address override works only on the (%reg) part of %fs:(%reg). */
&& !TARGET_TLS_INDIRECT_SEG_REFS) if (seg != SEG_DEFAULT
&& ((base && GET_MODE (base) != word_mode)
|| (index && GET_MODE (index) != word_mode)))
return 0; return 0;
/* Extract the integral value of scale. */ /* Extract the integral value of scale. */
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