From e837539976653dbbdca9d1b94c0595c20dbc9a0e Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Tue, 15 Sep 1992 18:44:07 +0000 Subject: [PATCH] Do cld before each string move/compare. From-SVN: r2125 --- gcc/config/i386/i386.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 3edce9fa178..6ba86cd2629 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -3912,6 +3912,7 @@ { rtx xops[2]; + output_asm_insn (\"cld\", operands); if (GET_CODE (operands[2]) == CONST_INT) { if (INTVAL (operands[2]) & ~0x03) @@ -3989,6 +3990,7 @@ label = gen_label_rtx (); + output_asm_insn (\"cld\", operands); output_asm_insn (AS2 (xor%B0,%0,%0), operands); output_asm_insn (\"repz\;cmps%B2\", operands); output_asm_insn (\"je %l0\", &label); @@ -4022,6 +4024,7 @@ xops[0] = gen_rtx (REG, QImode, 0); xops[1] = CONST0_RTX (QImode); + output_asm_insn (\"cld\", operands); output_asm_insn (AS2 (test%B0,%1,%0), xops); return \"repz\;cmps%B2\"; }") @@ -4183,6 +4186,7 @@ xops[0] = operands[0]; xops[1] = constm1_rtx; + output_asm_insn (\"cld\", operands); output_asm_insn (AS2 (mov%L0,%1,%0), xops); return \"repnz\;scas%B2\"; }") -- 2.30.2