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
b071cda4
Commit
b071cda4
authored
Jul 07, 2014
by
Matthias Braun
Browse files
amd64: dump IMM64 attributes in graph
parent
9d0b843b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/amd64/amd64_new_nodes.c
View file @
b071cda4
...
...
@@ -87,9 +87,15 @@ static void amd64_dump_node(FILE *F, const ir_node *n, dump_reason_t reason)
arch_dump_reqs_and_registers
(
F
,
n
);
const
amd64_attr_t
*
attr
=
get_amd64_attr_const
(
n
);
fprintf
(
F
,
"mode = %s
\n
"
,
get_op_mode_string
(
attr
->
op_mode
));
if
(
attr
->
op_mode
==
AMD64_OP_ADDR_REG
)
{
amd64_op_mode_t
op_mode
=
attr
->
op_mode
;
if
(
op_mode
==
AMD64_OP_ADDR_REG
)
{
const
amd64_binop_addr_attr_t
*
binop_attr
=
get_amd64_binop_addr_attr_const
(
n
);
fprintf
(
F
,
"reg input: %d
\n
"
,
binop_attr
->
u
.
reg_input
);
}
else
if
(
op_mode
==
AMD64_OP_IMM64
)
{
const
amd64_imm64_t
*
const
imm
=
&
get_amd64_movimm_attr_const
(
n
)
->
immediate
;
ir_fprintf
(
F
,
"imm64 entity: %+F
\n
"
,
imm
->
entity
);
fprintf
(
F
,
"imm64 offset: 0x%"
PRIX64
"
\n
"
,
(
uint64_t
)
imm
->
offset
);
}
if
(
amd64_has_addr_attr
(
n
))
{
const
amd64_addr_attr_t
*
addr_attr
=
get_amd64_addr_attr_const
(
n
);
...
...
Write
Preview
Markdown
is supported
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