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
7ee233ad
Commit
7ee233ad
authored
Aug 28, 2007
by
Michael Beck
Browse files
fixed lowering of Conv from I->L (fixed fehler72.c)
[r15615]
parent
576cce6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/lower/lower_dw.c
View file @
7ee233ad
...
...
@@ -1459,8 +1459,13 @@ static void lower_Conv_to_Ls(ir_node *node, lower_env_t *env) {
op
=
new_rd_Conv
(
dbg
,
irg
,
block
,
op
,
dst_mode
);
env
->
entries
[
idx
]
->
low_word
=
op
;
env
->
entries
[
idx
]
->
high_word
=
new_rd_Shrs
(
dbg
,
irg
,
block
,
op
,
new_Const_long
(
mode_Iu
,
get_mode_size_bits
(
dst_mode
)
-
1
),
dst_mode
);
if
(
mode_is_signed
(
imode
))
{
env
->
entries
[
idx
]
->
high_word
=
new_rd_Shrs
(
dbg
,
irg
,
block
,
op
,
new_Const_long
(
mode_Iu
,
get_mode_size_bits
(
dst_mode
)
-
1
),
dst_mode
);
}
else
{
env
->
entries
[
idx
]
->
high_word
=
new_Const
(
dst_mode
,
get_mode_null
(
dst_mode
));
}
/* if */
}
/* if */
}
else
{
ir_node
*
irn
,
*
call
;
...
...
@@ -1509,7 +1514,13 @@ static void lower_Conv_to_Lu(ir_node *node, lower_env_t *env) {
op
=
new_rd_Conv
(
dbg
,
irg
,
block
,
op
,
dst_mode
);
env
->
entries
[
idx
]
->
low_word
=
op
;
env
->
entries
[
idx
]
->
high_word
=
new_Const
(
dst_mode
,
get_mode_null
(
dst_mode
));
if
(
mode_is_signed
(
imode
))
{
env
->
entries
[
idx
]
->
high_word
=
new_rd_Shrs
(
dbg
,
irg
,
block
,
op
,
new_Const_long
(
mode_Iu
,
get_mode_size_bits
(
dst_mode
)
-
1
),
dst_mode
);
}
else
{
env
->
entries
[
idx
]
->
high_word
=
new_Const
(
dst_mode
,
get_mode_null
(
dst_mode
));
}
/* if */
}
/* if */
}
else
{
ir_node
*
irn
,
*
call
;
...
...
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