fehler137: tarval module does not model the explicit leading 1 for long double on...
[libfirm] / ir / be / mips / mips_transform.c
index 9c9e32f..ed9fb37 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -124,8 +124,6 @@ static ir_node *try_create_Immediate(ir_node *node)
        tv = get_Const_tarval(node);
        if(tarval_is_long(tv)) {
                val = get_tarval_long(tv);
-       } else if(tarval_is_null(tv)) {
-               val = 0;
        } else {
                ir_fprintf(stderr, "Optimisation Warning: tarval %+F is not a long?\n",
                           node);
@@ -306,10 +304,8 @@ static ir_node* gen_Const(ir_node *node)
 
        if(tarval_is_long(tv)) {
                val = get_tarval_long(tv);
-       } else if(tarval_is_null(tv)) {
-               val = 0;
        } else {
-               panic("Can't get value of tarval %+F\n", node);
+               panic("Can't get value of tarval %+F", node);
        }
 
        val = get_tarval_long(tv);
@@ -503,7 +499,7 @@ static ir_node *gen_Proj_DivMod(ir_node *node)
                break;
        }
 
-       panic("invalid proj attached to %+F\n", divmod);
+       panic("invalid proj attached to %+F", divmod);
 }
 
 static ir_node *gen_Proj_Start(ir_node *node)
@@ -779,7 +775,7 @@ static ir_node *gen_Conv(ir_node *node)
                } else if(src_size == 16) {
                        res = new_rd_mips_seh(dbgi, irg, block, new_op);
                } else {
-                       panic("invalid conv %+F\n", node);
+                       panic("invalid conv %+F", node);
                }
        } else {
                ir_node *and_const;
@@ -789,7 +785,7 @@ static ir_node *gen_Conv(ir_node *node)
                } else if(src_size == 16) {
                        and_const = mips_create_Immediate(0xffff);
                } else {
-                       panic("invalid conv %+F\n", node);
+                       panic("invalid conv %+F", node);
                }
                res = new_rd_mips_and(dbgi, irg, block, new_op, and_const);
        }
@@ -1135,7 +1131,7 @@ static ir_node *gen_AddSP(ir_node *node)
 
 static ir_node *gen_Bad(ir_node *node)
 {
-       panic("Unexpected node %+F found in mips transform phase.\n", node);
+       panic("Unexpected node %+F found in mips transform phase.", node);
        return NULL;
 }