beinsn: Do not store, whether an insn has constraints.
[libfirm] / ir / tv / fltcalc.c
index 2d9d9ec..1c6512c 100644 (file)
@@ -22,7 +22,6 @@
  * @brief    tarval floating point calculations
  * @date     2003
  * @author   Mathias Heil
- * @version  $Id$
  */
 #include "config.h"
 
@@ -787,8 +786,10 @@ static void _trunc(const fp_value *a, fp_value *result)
 
        temp = (char*) alloca(value_size);
 
-       if (a != result)
+       if (a != result) {
                result->desc = a->desc;
+               result->clss = a->clss;
+       }
 
        exp_bias = (1 << (a->desc.exponent_size - 1)) - 1;
        exp_val  = sc_val_to_long(_exp(a)) - exp_bias;
@@ -1499,13 +1500,12 @@ fp_value *fc_int(const fp_value *a, fp_value *result)
 
 fp_value *fc_rnd(const fp_value *a, fp_value *result)
 {
-       if (result == NULL) result = calc_buffer;
-
-       (void) a;
+       (void)a;
+       (void)result;
        TRACEPRINTF(("%s ", fc_print(a, buffer, sizeof(buffer), FC_PACKED)));
        TRACEPRINTF(("rounded to integer "));
 
-       panic("fc_rnd() not yet implemented");
+       panic("not yet implemented");
 }
 
 /*