From: Christoph Mallon Date: Mon, 28 Apr 2008 12:04:39 +0000 (+0000) Subject: When transforming floating point constants into load AM, use the mode of the entity... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=950a98725cc6e262a0297755665d4de1bb02c4a7;p=libfirm When transforming floating point constants into load AM, use the mode of the entity as ls_mode instead of the mode of the constant node. [r19412] --- diff --git a/ir/be/ia32/ia32_transform.c b/ir/be/ia32/ia32_transform.c index 69bbde584..14678feb7 100644 --- a/ir/be/ia32/ia32_transform.c +++ b/ir/be/ia32/ia32_transform.c @@ -672,7 +672,7 @@ static void build_address(ia32_address_mode_t *am, ir_node *node) addr->mem = new_NoMem(); addr->symconst_ent = entity; addr->use_frame = 1; - am->ls_mode = get_irn_mode(node); + am->ls_mode = get_type_mode(get_entity_type(entity)); am->pinned = op_pin_state_floats; return; }