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
83741d06
Commit
83741d06
authored
Feb 21, 2014
by
Tobias Rapp
Browse files
amd64: Small fix for the new IJmp node
parent
b332d1d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/amd64/amd64_spec.pl
View file @
83741d06
...
...
@@ -340,8 +340,7 @@ IJmp => {
reg_req
=>
{
in
=>
[
"
gp
"
],
out
=>
[
"
none
"
]
},
arity
=>
"
variable
",
attr_type
=>
"
amd64_addr_attr_t
",
attr
=>
"
amd64_insn_mode_t insn_mode, amd64_addr_t addr
",
fixed
=>
"
amd64_op_mode_t op_mode = AMD64_OP_CALL_ADDR;
\n
",
attr
=>
"
amd64_insn_mode_t insn_mode, amd64_op_mode_t op_mode, amd64_addr_t addr
",
mode
=>
"
mode_X
",
emit
=>
"
jmp %AM
",
},
...
...
ir/be/amd64/amd64_transform.c
View file @
83741d06
...
...
@@ -970,8 +970,15 @@ static ir_node *gen_IJmp(ir_node *node)
reqs
=
reg_mem_reqs
;
}
amd64_op_mode_t
op_mode
;
if
(
addr
.
immediate
.
entity
==
NULL
)
{
op_mode
=
AMD64_OP_CALL_ADDR
;
}
else
{
op_mode
=
AMD64_OP_ADDR
;
}
ir_node
*
jmp
=
new_bd_amd64_IJmp
(
dbgi
,
new_block
,
arity
,
in
,
INSN_MODE_64
,
addr
);
INSN_MODE_64
,
op_mode
,
addr
);
arch_set_irn_register_reqs_in
(
jmp
,
reqs
);
return
jmp
;
...
...
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