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
f96815fc
Commit
f96815fc
authored
Nov 10, 2012
by
Christoph Mallon
Browse files
Remove unnecessary tests.
out cannot be null.
parent
ec083e92
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_emitter.c
View file @
f96815fc
...
@@ -507,14 +507,10 @@ end_of_mods:
...
@@ -507,14 +507,10 @@ end_of_mods:
}
else
{
}
else
{
assert
(
get_ia32_op_type
(
node
)
==
ia32_Normal
);
assert
(
get_ia32_op_type
(
node
)
==
ia32_Normal
);
ia32_x87_attr_t
const
*
const
x87_attr
=
get_ia32_x87_attr_const
(
node
);
ia32_x87_attr_t
const
*
const
x87_attr
=
get_ia32_x87_attr_const
(
node
);
arch_register_t
const
*
const
in1
=
x87_attr
->
x87
[
0
];
arch_register_t
const
*
const
out
=
x87_attr
->
x87
[
2
];
arch_register_t
const
*
in
=
x87_attr
->
x87
[
1
];
arch_register_t
const
*
in
=
x87_attr
->
x87
[
1
];
arch_register_t
const
*
out
=
x87_attr
->
x87
[
2
];
if
(
out
==
in
)
if
(
out
==
NULL
)
{
in
=
x87_attr
->
x87
[
0
];
out
=
in1
;
}
else
if
(
out
==
in
)
{
in
=
in1
;
}
be_emit_irprintf
(
"%%%s, %%%s"
,
arch_register_get_name
(
in
),
arch_register_get_name
(
out
));
be_emit_irprintf
(
"%%%s, %%%s"
,
arch_register_get_name
(
in
),
arch_register_get_name
(
out
));
break
;
break
;
}
}
...
@@ -3241,16 +3237,11 @@ static void bemit_copybi(const ir_node *node)
...
@@ -3241,16 +3237,11 @@ static void bemit_copybi(const ir_node *node)
static
void
bemit_fbinop
(
const
ir_node
*
node
,
unsigned
code
,
unsigned
code_to
)
static
void
bemit_fbinop
(
const
ir_node
*
node
,
unsigned
code
,
unsigned
code_to
)
{
{
if
(
get_ia32_op_type
(
node
)
==
ia32_Normal
)
{
if
(
get_ia32_op_type
(
node
)
==
ia32_Normal
)
{
const
ia32_x87_attr_t
*
x87_attr
=
get_ia32_x87_attr_const
(
node
);
ia32_x87_attr_t
const
*
const
x87_attr
=
get_ia32_x87_attr_const
(
node
);
const
arch_register_t
*
in1
=
x87_attr
->
x87
[
0
];
arch_register_t
const
*
const
out
=
x87_attr
->
x87
[
2
];
const
arch_register_t
*
in
=
x87_attr
->
x87
[
1
];
arch_register_t
const
*
in
=
x87_attr
->
x87
[
1
];
const
arch_register_t
*
out
=
x87_attr
->
x87
[
2
];
if
(
out
==
in
)
in
=
x87_attr
->
x87
[
0
];
if
(
out
==
NULL
)
{
out
=
in1
;
}
else
if
(
out
==
in
)
{
in
=
in1
;
}
if
(
out
->
index
==
0
)
{
if
(
out
->
index
==
0
)
{
bemit8
(
0xD8
);
bemit8
(
0xD8
);
...
...
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