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
453d4120
Commit
453d4120
authored
Mar 25, 2011
by
Matthias Braun
Browse files
fix firm producing invalid code for return a > 0 with a being an int
parent
9b19775f
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/lower/lower_mode_b.c
View file @
453d4120
...
...
@@ -278,14 +278,14 @@ static ir_node *lower_node(ir_node *node)
}
case
iro_Cmp
:
{
ir_node
*
left
=
get_Cmp_left
(
node
);
ir_node
*
right
=
get_Cmp_right
(
node
);
ir_mode
*
cmp_mode
=
get_irn_mode
(
left
);
ir_node
*
left
=
get_Cmp_left
(
node
);
ir_node
*
right
=
get_Cmp_right
(
node
);
ir_mode
*
cmp_mode
=
get_irn_mode
(
left
);
ir_relation
relation
=
get_Cmp_relation
(
node
);
if
((
mode_is_int
(
cmp_mode
)
||
mode_is_reference
(
cmp_mode
))
&&
(
get_mode_size_bits
(
cmp_mode
)
<
get_mode_size_bits
(
mode
)
||
(
mode_is_signed
(
cmp_mode
)
&&
is_Const
(
right
)
&&
is_Const_null
(
right
))))
{
ir_relation
relation
=
get_Cmp_relation
(
node
);
(
mode_is_signed
(
cmp_mode
)
&&
is_Const
(
right
)
&&
is_Const_null
(
right
)
&&
relation
!=
ir_relation_greater
)))
{
int
need_not
=
0
;
ir_node
*
a
=
NULL
;
ir_node
*
b
=
NULL
;
...
...
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