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
31108b56
Commit
31108b56
authored
Apr 20, 2007
by
Matthias Braun
Browse files
fix wrong registers assigned to some float constants
[r13430]
parent
a99dcd78
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_x87.c
View file @
31108b56
...
@@ -1560,7 +1560,7 @@ static ir_node *create_Copy(x87_state *state, ir_node *n) {
...
@@ -1560,7 +1560,7 @@ static ir_node *create_Copy(x87_state *state, ir_node *n) {
x87_push
(
state
,
arch_register_get_index
(
out
),
res
);
x87_push
(
state
,
arch_register_get_index
(
out
),
res
);
attr
=
get_ia32_attr
(
res
);
attr
=
get_ia32_attr
(
res
);
attr
->
x87
[
2
]
=
out
=
&
ia32_st_regs
[
0
];
attr
->
x87
[
2
]
=
&
ia32_st_regs
[
0
];
}
else
{
}
else
{
int
op1_idx
=
x87_on_stack
(
state
,
arch_register_get_index
(
op1
));
int
op1_idx
=
x87_on_stack
(
state
,
arch_register_get_index
(
op1
));
...
@@ -1569,8 +1569,8 @@ static ir_node *create_Copy(x87_state *state, ir_node *n) {
...
@@ -1569,8 +1569,8 @@ static ir_node *create_Copy(x87_state *state, ir_node *n) {
x87_push
(
state
,
arch_register_get_index
(
out
),
res
);
x87_push
(
state
,
arch_register_get_index
(
out
),
res
);
attr
=
get_ia32_attr
(
res
);
attr
=
get_ia32_attr
(
res
);
attr
->
x87
[
0
]
=
op1
=
&
ia32_st_regs
[
op1_idx
];
attr
->
x87
[
0
]
=
&
ia32_st_regs
[
op1_idx
];
attr
->
x87
[
2
]
=
out
=
&
ia32_st_regs
[
0
];
attr
->
x87
[
2
]
=
&
ia32_st_regs
[
0
];
}
}
arch_set_irn_register
(
sim
->
arch_env
,
res
,
out
);
arch_set_irn_register
(
sim
->
arch_env
,
res
,
out
);
...
...
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