Commit e3cecdc4 authored by Tobias Rapp's avatar Tobias Rapp
Browse files

amd64: Changed has_addr_attr to exclude Xor0 nodes

parent ae1e18f1
......@@ -40,13 +40,15 @@ static inline bool amd64_has_binop_attr(const ir_node *node)
static inline bool amd64_has_addr_attr(const ir_node *node)
{
const amd64_attr_t *attr = get_amd64_attr_const(node);
return amd64_has_binop_attr(node)
return (amd64_has_binop_attr(node)
|| attr->op_mode == AMD64_OP_ADDR
|| attr->op_mode == AMD64_OP_REG
|| attr->op_mode == AMD64_OP_UNOP_ADDR
|| attr->op_mode == AMD64_OP_UNOP_IMM32
|| attr->op_mode == AMD64_OP_UNOP_REG
|| attr->op_mode == AMD64_OP_RAX_ADDR;
|| attr->op_mode == AMD64_OP_RAX_ADDR
|| attr->op_mode == AMD64_OP_RAX_REG)
&& (get_irn_op(node) != op_amd64_Xor0);
}
static inline amd64_addr_attr_t *get_amd64_addr_attr(ir_node *node)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment