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:
parent
d47657bd1d
commit
9ec9602396
2 changed files with 9 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue