beware of 64bit constants, cannot be handled yet
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 30 Jun 2005 09:55:48 +0000 (09:55 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 30 Jun 2005 09:55:48 +0000 (09:55 +0000)
[r6151]

ir/stat/const_stat.c

index 3fa94cc..6c55977 100644 (file)
@@ -88,6 +88,11 @@ void stat_update_const(stat_info_t *status, ir_node *node, graph_entry_t *graph)
 
   if (mode_is_int(mode)) {
     tv   = get_Const_tarval(node);
+
+    /* FIXME: */
+    if (! tarval_is_long(tv))
+      return;
+
     bits = log2(get_tarval_long(tv));
 
     if (bits > ARR_SIZE(status->const_info.int_bits_count))