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
e8c45e12
Commit
e8c45e12
authored
Aug 29, 2015
by
yb9976
Browse files
Assure clean upper bits when combining Sub and Cmp nodes.
This fixes opt/fehler285.c.
parent
68919a4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_transform.c
View file @
e8c45e12
...
...
@@ -3094,6 +3094,13 @@ static ir_node *try_get_sub_flags(ir_node *cmp, ir_node *sub, bool *swap)
return
NULL
;
}
ir_mode
*
sub_mode
=
get_irn_mode
(
sub_left
);
if
(
get_mode_size_bits
(
sub_mode
)
!=
32
&&
(
!
be_upper_bits_clean
(
sub_left
,
sub_mode
)
||
!
be_upper_bits_clean
(
sub_right
,
sub_mode
)))
{
return
NULL
;
}
ir_node
*
ia32_sub
=
skip_Proj
(
transform_sub_or_store
(
sub
));
if
(
is_ia32_Sub
(
ia32_sub
))
{
return
be_new_Proj
(
ia32_sub
,
pn_ia32_Sub_flags
);
...
...
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