summaryrefslogtreecommitdiffhomepage
path: root/ir/be/mips
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-01-29 20:09:45 +0100
committerMatthias Braun <matze@braunis.de>2017-01-29 20:09:47 +0100
commit78a5cf6805cf3f85005926b177f48c33adcdddd9 (patch)
treead89407ed3dd8a59616cc6f67e84ab998956fc55 /ir/be/mips
parent39503e51557a9fbb45f0c5941f0c554472cefa82 (diff)
mips: Need to set replace_xxx in irarch now
Hopefully this fixes the fallout from acf1a376620890041b2a637a79a46da6700012d6
Diffstat (limited to 'ir/be/mips')
-rw-r--r--ir/be/mips/mips_bearch.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ir/be/mips/mips_bearch.c b/ir/be/mips/mips_bearch.c
index 83df751..ecdcdbc 100644
--- a/ir/be/mips/mips_bearch.c
+++ b/ir/be/mips/mips_bearch.c
@@ -35,12 +35,15 @@ static int mips_is_mux_allowed(ir_node *const sel, ir_node *const mux_false, ir_
}
static ir_settings_arch_dep_t const mips_arch_dep = {
+ .replace_muls = true,
+ .replace_divs = true,
+ .replace_mods = true,
+ .allow_mulhs = true,
+ .allow_mulhu = true,
.also_use_subs = true,
.maximum_shifts = 4,
.highest_shift_amount = MIPS_MACHINE_SIZE - 1,
.evaluate = NULL,
- .allow_mulhs = true,
- .allow_mulhu = true,
.max_bits_for_mulh = MIPS_MACHINE_SIZE,
};