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
dbaecfb6
Commit
dbaecfb6
authored
May 11, 2006
by
Christian Würdig
Browse files
fixed some bugs inverse calculation
parent
2bae3943
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/bearch_ia32.c
View file @
dbaecfb6
...
...
@@ -486,11 +486,11 @@ static arch_inverse_t *ia32_get_inverse(const void *self, const ir_node *irn, in
nomem
=
new_r_NoMem
(
irg
);
/* initialize structure */
inverse
->
nodes
=
obstack_alloc
(
obst
,
sizeof
(
inverse
->
nodes
[
0
]));
inverse
->
nodes
=
obstack_alloc
(
obst
,
2
*
sizeof
(
inverse
->
nodes
[
0
]));
inverse
->
costs
=
0
;
inverse
->
n
=
2
;
switch
(
get_irn_opcode
(
irn
))
{
switch
(
get_
ia32_
irn_opcode
(
irn
))
{
case
iro_ia32_Add
:
if
(
get_ia32_immop_type
(
irn
)
==
ia32_ImmConst
)
{
/* we have an add with a const here */
...
...
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