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
cc5f6d4b
Commit
cc5f6d4b
authored
Nov 05, 2012
by
Christoph Mallon
Browse files
Inline x87_set_tos() into its only caller.
parent
9513d386
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_x87.c
View file @
cc5f6d4b
...
...
@@ -201,18 +201,6 @@ static void x87_set_st(x87_state *state, int reg_idx, ir_node *node, int pos)
DEBUG_ONLY
(
x87_dump_stack
(
state
);)
}
/**
* Set the tos virtual register.
*
* @param state the x87 state
* @param reg_idx the vfp register index that should be set
* @param node the IR node that produces the value of the vfp register
*/
static
void
x87_set_tos
(
x87_state
*
state
,
int
reg_idx
,
ir_node
*
node
)
{
x87_set_st
(
state
,
reg_idx
,
node
,
0
);
}
/**
* Swap st(0) with st(pos).
*
...
...
@@ -960,7 +948,7 @@ static int sim_unop(x87_state *state, ir_node *n, ir_op *op)
}
}
x87_set_
to
s
(
state
,
out_reg_idx
,
x87_patch_insn
(
n
,
op
));
x87_set_s
t
(
state
,
out_reg_idx
,
x87_patch_insn
(
n
,
op
)
,
0
);
ia32_x87_attr_t
*
const
attr
=
get_ia32_x87_attr
(
n
);
attr
->
x87
[
2
]
=
attr
->
x87
[
0
]
=
get_st_reg
(
0
);
DB
((
dbg
,
LEVEL_1
,
"<<< %s -> %s
\n
"
,
get_irn_opname
(
n
),
attr
->
x87
[
2
]
->
name
));
...
...
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