+2003-02-11 Richard Henderson <rth@redhat.com>
+
+ * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
+ appropriated as globals.
+ (ix86_expand_clrstr): Similarly.
+ * config/i386/i386.md (cmpstrsi): Similarly.
+
2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md (a peephole2): Add a case of 255.
unsigned HOST_WIDE_INT count = 0;
rtx insns;
-
if (GET_CODE (align_exp) == CONST_INT)
align = INTVAL (align_exp);
+ /* Can't use any of this if the user has appropriated esi or edi. */
+ if (global_regs[4] || global_regs[5])
+ return 0;
+
/* This simple hack avoids all inlining code and simplifies code below. */
if (!TARGET_ALIGN_STRINGOPS)
align = 64;
if (GET_CODE (align_exp) == CONST_INT)
align = INTVAL (align_exp);
+ /* Can't use any of this if the user has appropriated esi. */
+ if (global_regs[4])
+ return 0;
+
/* This simple hack avoids all inlining code and simplifies code below. */
if (!TARGET_ALIGN_STRINGOPS)
align = 32;
{
rtx addr1, addr2, out, outlow, count, countreg, align;
+ /* Can't use this if the user has appropriated esi or edi. */
+ if (global_regs[4] || global_regs[5])
+ FAIL;
+
out = operands[0];
if (GET_CODE (out) != REG)
out = gen_reg_rtx (SImode);