summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyilp2.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-27 08:25:54 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-27 11:16:15 +0100
commitc3ce39736db79adc61bb83df2b0afcc9f0c807df (patch)
tree3941fc06e3a78e6ef8b2af8658a45e1a70c22488 /ir/be/becopyilp2.c
parent256f62cc95bff324e0bd4108ae1af8a748871f39 (diff)
bearch: Use arch_register_req_is().
Diffstat (limited to 'ir/be/becopyilp2.c')
-rw-r--r--ir/be/becopyilp2.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ir/be/becopyilp2.c b/ir/be/becopyilp2.c
index 0f95251..95e6b42 100644
--- a/ir/be/becopyilp2.c
+++ b/ir/be/becopyilp2.c
@@ -70,11 +70,8 @@ static unsigned check_alignment_constraints(ir_node *node)
{
const arch_register_req_t *req = arch_get_irn_register_req(node);
// For larger than 1 variables, support only aligned constraints
- assert(((!(req->type & arch_register_req_type_aligned)
- && req->width == 1)
- || (req->type & arch_register_req_type_aligned))
- && "Unaligned large (width > 1) variables not supported");
- return (req->type & arch_register_req_type_aligned) && req->width > 1;
+ assert((arch_register_req_is(req, aligned) || req->width == 1) && "Unaligned large (width > 1) variables not supported");
+ return arch_register_req_is(req, aligned) && req->width > 1;
}
static void make_color_var_name(char *buf, size_t buf_size,