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
0ca26aa8
Commit
0ca26aa8
authored
May 15, 2013
by
Matthias Braun
Browse files
fix bad comparison
! binds tighter than <
parent
5a316806
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ana/dca.c
View file @
0ca26aa8
...
...
@@ -139,11 +139,10 @@ static void dca_transfer(ir_node *irn, pdeq *q)
unsigned
pred_bits
=
get_mode_size_bits
(
pred_mode
);
unsigned
bits
=
get_mode_size_bits
(
mode
);
if
(
pred_bits
<
bits
&&
mode_is_signed
(
pred_mode
))
{
if
(
pred_bits
<
bits
&&
mode_is_signed
(
pred_mode
))
{
/* Bits still care about the sign bit even if they
* don't fit into the smaller mode. */
if
(
!
get_tarval_highest_bit
(
care
)
<
pred_bits
)
if
(
get_tarval_highest_bit
(
care
)
>=
(
int
)
pred_bits
)
care
=
tarval_or
(
care
,
tarval_shl
(
get_tarval_one
(
mode
),
new_tarval_from_long
(
...
...
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