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
This commit is contained in:
Uros Bizjak 2012-03-13 11:35:19 +01:00 committed by Uros Bizjak
parent d47657bd1d
commit 9ec9602396
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
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>
* config/microblaze/microblaze.md: Fix typo.

View file

@ -11563,8 +11563,10 @@ ix86_decompose_address (rtx addr, struct ix86_address *out)
return 0;
}
if (seg != SEG_DEFAULT && (base || index)
&& !TARGET_TLS_INDIRECT_SEG_REFS)
/* Address override works only on the (%reg) part of %fs:(%reg). */
if (seg != SEG_DEFAULT
&& ((base && GET_MODE (base) != word_mode)
|| (index && GET_MODE (index) != word_mode)))
return 0;
/* Extract the integral value of scale. */