When transforming floating point constants into load AM, use the mode of the entity...
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 28 Apr 2008 12:04:39 +0000 (12:04 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 28 Apr 2008 12:04:39 +0000 (12:04 +0000)
[r19412]

ir/be/ia32/ia32_transform.c

index 69bbde5..14678fe 100644 (file)
@@ -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;
        }