projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5a756c7
)
do sign extension for teo completent only
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 17 Sep 2007 14:34:39 +0000
(14:34 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 17 Sep 2007 14:34:39 +0000
(14:34 +0000)
[r15834]
ir/tv/tv.c
patch
|
blob
|
history
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);