Commit f5a48693 authored by Michael Beck's avatar Michael Beck
Browse files

do sign extension for teo completent only

[r15834]
parent 5a756c76
...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment