From: Christoph Mallon Date: Thu, 28 Aug 2008 19:06:15 +0000 (+0000) Subject: Only warn about Sub with constant in the backend, if the mode is not float. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=83daeb5bc2098b5fe8ac92034b9312e3edfe2ba9;p=libfirm Only warn about Sub with constant in the backend, if the mode is not float. [r21557] --- diff --git a/ir/be/ia32/ia32_transform.c b/ir/be/ia32/ia32_transform.c index 76ae7d378..547c34513 100644 --- a/ir/be/ia32/ia32_transform.c +++ b/ir/be/ia32/ia32_transform.c @@ -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,