From fa58db3dfe73586f59ba99952806e418849c9740 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Wed, 8 Oct 2008 09:01:46 +0000 Subject: [PATCH] Do not emit cld in the CopyB prologue. The ABI mandates that DF is cleared, so do not bother performing this NOP. [r22599] --- ir/be/ia32/ia32_emitter.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ir/be/ia32/ia32_emitter.c b/ir/be/ia32/ia32_emitter.c index af53e41e3..9cbde330e 100644 --- a/ir/be/ia32/ia32_emitter.c +++ b/ir/be/ia32/ia32_emitter.c @@ -1370,9 +1370,6 @@ static void emit_ia32_Asm(const ir_node *node) */ static void emit_CopyB_prolog(unsigned size) { - be_emit_cstring("\tcld"); - be_emit_finish_line_gas(NULL); - if (size & 1) { be_emit_cstring("\tmovsb"); be_emit_finish_line_gas(NULL); -- 2.20.1