summaryrefslogtreecommitdiffhomepage
path: root/ir/be/amd64
diff options
context:
space:
mode:
authorJohannes Bucher <johannes.bucher2@student.kit.edu>2019-01-11 14:45:22 +0100
committerJohannes Bucher <johannes.bucher2@student.kit.edu>2019-01-11 14:45:22 +0100
commit886a22f8bcfbef3f584fee2f3ea970f035498587 (patch)
treeb8b44acdd45830cbf082cec8370580f556de7e00 /ir/be/amd64
parent12972986a79e5ab3df5e2d2ed8377c7db5d83754 (diff)
amd64 backend: add missing should_be_same constraints in builtin_ffs
Diffstat (limited to 'ir/be/amd64')
-rw-r--r--ir/be/amd64/amd64_transform.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir/be/amd64/amd64_transform.c b/ir/be/amd64/amd64_transform.c
index 33ca758..0e1b58e 100644
--- a/ir/be/amd64/amd64_transform.c
+++ b/ir/be/amd64/amd64_transform.c
@@ -2992,6 +2992,7 @@ static ir_node *gen_ffs(ir_node *const node)
},
};
ir_node *or = new_bd_amd64_or(dbgi, block, ARRAY_SIZE(or_in), or_in, amd64_reg_reg_reqs, &or_attr);
+ arch_set_irn_register_req_out(or, 0, &amd64_requirement_gp_same_0);
ir_node *or_res = be_new_Proj(or, pn_amd64_or_res);
/* add $1, result */
@@ -3015,6 +3016,7 @@ static ir_node *gen_ffs(ir_node *const node)
},
};
ir_node *inc = new_bd_amd64_add(dbgi, block, ARRAY_SIZE(inc_in), inc_in, reg_reqs, &inc_attr);
+ arch_set_irn_register_req_out(inc, 0, &amd64_requirement_gp_same_0);
return be_new_Proj(inc, pn_amd64_add_res);
}