do sign extension for teo completent only
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 17 Sep 2007 14:34:39 +0000 (14:34 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 17 Sep 2007 14:34:39 +0000 (14:34 +0000)
[r15834]

ir/tv/tv.c

index 69f8fb6..766f92f 100644 (file)
@@ -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);