fixed mul: must also check for float.
authorGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Wed, 25 Jun 2003 15:25:21 +0000 (15:25 +0000)
committerGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Wed, 25 Jun 2003 15:25:21 +0000 (15:25 +0000)
[r1403]

ir/ir/irvrfy.c

index 99bdf4e..3d3affe 100644 (file)
@@ -425,9 +425,8 @@ int irn_vrfy_irg(ir_node *n, ir_graph *irg)
       op2mode = get_irn_mode(in[2]);
       ASSERT_AND_RET(
           /* Mul: BB x int1 x int1 --> int2 */
-          mode_is_int(op1mode) &&
-          op2mode == op1mode &&
-          mode_is_int(mymode),
+          ((mode_is_int(op1mode)   && op2mode == op1mode && mode_is_int(mymode)) ||
+          (mode_is_float(op1mode) && op2mode == op1mode && mymode == op1mode))
           "Mul node",0
           );
       op_is_symmetric = 2;