summaryrefslogtreecommitdiffhomepage
path: root/ir/be/mips
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2017-01-14 07:47:37 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2017-01-14 07:47:37 +0100
commit2a8f18f1ff9ede074c5486876119e8b41ab48ad0 (patch)
treeb1a4b41ae0db0618a6ea6f2b0efc0c3d654cddfa /ir/be/mips
parentd7301188136ab2e9b54f46f774bb13c7a842ebac (diff)
mips: Lower CopyB.
Diffstat (limited to 'ir/be/mips')
-rw-r--r--ir/be/mips/mips_bearch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ir/be/mips/mips_bearch.c b/ir/be/mips/mips_bearch.c
index 2026fcd..d1c7009 100644
--- a/ir/be/mips/mips_bearch.c
+++ b/ir/be/mips/mips_bearch.c
@@ -271,6 +271,11 @@ static void mips_generate_code(FILE *const output, char const *const cup_name)
static void mips_lower_for_target(void)
{
+ foreach_irp_irg(i, irg) {
+ lower_CopyB(irg, 16, 17, false);
+ be_after_transform(irg, "lower-copyb");
+ }
+
ir_mode *const mode_gp = mips_reg_classes[CLASS_mips_gp].mode;
foreach_irp_irg(i, irg) {
lower_switch(irg, 4, 256, mode_gp);