From ccc92d26458413986cb5ac221d4b83c8fa740628 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 6 Oct 2004 16:29:49 +0000 Subject: [PATCH] fixed enable mask [r4069] --- ir/ir/irarch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ir/ir/irarch.c b/ir/ir/irarch.c index ddc240258..b65eaea9d 100644 --- a/ir/ir/irarch.c +++ b/ir/ir/irarch.c @@ -458,7 +458,8 @@ void arch_dep_replace_divmod_with_shifts(ir_node **div, ir_node **mod, ir_node * /* If the architecture dependent optimizations were not initialized or this optimization was not enabled. */ - if (params == NULL || (opts & arch_dep_mod_to_shift) == 0) + if (params == NULL || + (opts & (arch_dep_div_to_shift|arch_dep_mod_to_shift) != (arch_dep_div_to_shift|arch_dep_mod_to_shift))) return; if (get_irn_opcode(irn) == iro_DivMod) { -- 2.20.1