* config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
addresses only when %reg is not in word mode.
From-SVN: r185327
+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.
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. */