Only warn about Sub with constant in the backend, if the mode is not float.
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 28 Aug 2008 19:06:15 +0000 (19:06 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 28 Aug 2008 19:06:15 +0000 (19:06 +0000)
[r21557]

ir/be/ia32/ia32_transform.c

index 76ae7d3..547c345 100644 (file)
@@ -2223,7 +2223,7 @@ static ir_node *try_create_dest_am(ir_node *node) {
        case iro_Sub:
                op1      = get_Sub_left(val);
                op2      = get_Sub_right(val);
-               if(is_Const(op2)) {
+               if (is_Const(op2) && !mode_is_float(mode)) {
                        ir_fprintf(stderr, "Optimisation warning: not-normalized sub ,C found\n");
                }
                new_node = dest_am_binop(val, op1, op2, mem, ptr, mode,