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
f5a48693
Commit
f5a48693
authored
Sep 17, 2007
by
Michael Beck
Browse files
do sign extension for teo completent only
[r15834]
parent
5a756c76
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/tv/tv.c
View file @
f5a48693
...
@@ -170,7 +170,7 @@ static tarval *get_tarval(const void *value, int length, ir_mode *mode) {
...
@@ -170,7 +170,7 @@ static tarval *get_tarval(const void *value, int length, ir_mode *mode) {
* is copied into the set */
* is copied into the set */
char
*
temp
=
alloca
(
length
);
char
*
temp
=
alloca
(
length
);
memcpy
(
temp
,
value
,
length
);
memcpy
(
temp
,
value
,
length
);
if
(
mode_is_float
(
mode
)
)
{
if
(
get_mode_arithmetic
(
mode
)
==
irma_twos_complement
)
{
sign_extend
(
temp
,
mode
);
sign_extend
(
temp
,
mode
);
}
}
tv
.
value
=
INSERT_VALUE
(
temp
,
length
);
tv
.
value
=
INSERT_VALUE
(
temp
,
length
);
...
...
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