/* 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) {