projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
do sign extension for teo completent only
[libfirm]
/
ir
/
tv
/
tv.c
diff --git
a/ir/tv/tv.c
b/ir/tv/tv.c
index
69f8fb6
..
766f92f
100644
(file)
--- a/
ir/tv/tv.c
+++ b/
ir/tv/tv.c
@@
-170,7
+170,7
@@
static tarval *get_tarval(const void *value, int length, ir_mode *mode) {
* is copied into the set */
char *temp = alloca(length);
memcpy(temp, value, length);
- if
(mode_is_float(mode)
) {
+ if
(get_mode_arithmetic(mode) == irma_twos_complement
) {
sign_extend(temp, mode);
}
tv.value = INSERT_VALUE(temp, length);