Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
e3cecdc4
Commit
e3cecdc4
authored
Mar 02, 2014
by
Tobias Rapp
Browse files
amd64: Changed has_addr_attr to exclude Xor0 nodes
parent
ae1e18f1
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/be/amd64/amd64_new_nodes.h
View file @
e3cecdc4
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment