Commit f8ead9ac authored by Christoph Mallon's avatar Christoph Mallon
Browse files

ia32: Remove the ia32_x87_attr_t from ia32_asm_attr_t.

It does not provide sufficient information to handle float in asm.
parent 53c715b1
...@@ -809,9 +809,10 @@ static void init_ia32_asm_attributes(ir_node *res) ...@@ -809,9 +809,10 @@ static void init_ia32_asm_attributes(ir_node *res)
#ifndef NDEBUG #ifndef NDEBUG
ia32_attr_t *attr = get_ia32_attr(res); ia32_attr_t *attr = get_ia32_attr(res);
attr->attr_type |= IA32_ATTR_ia32_asm_attr_t; attr->attr_type |= IA32_ATTR_ia32_asm_attr_t;
#else
(void) res;
#endif #endif
ir_graph *const irg = get_irn_irg(res);
ia32_request_x87_sim(irg); /* asm might have fp operands. */
} }
static void init_ia32_immediate_attributes(ir_node *res, ir_entity *symconst, static void init_ia32_immediate_attributes(ir_node *res, ir_entity *symconst,
......
...@@ -291,7 +291,7 @@ struct ia32_asm_reg_t { ...@@ -291,7 +291,7 @@ struct ia32_asm_reg_t {
*/ */
typedef struct ia32_asm_attr_t ia32_asm_attr_t; typedef struct ia32_asm_attr_t ia32_asm_attr_t;
struct ia32_asm_attr_t { struct ia32_asm_attr_t {
ia32_x87_attr_t x87_attr; ia32_attr_t attr; /**< the generic attribute */
ident *asm_text; ident *asm_text;
const ia32_asm_reg_t *register_map; const ia32_asm_reg_t *register_map;
}; };
......
...@@ -117,7 +117,6 @@ $custom_init_attr_func = \&ia32_custom_init_attr; ...@@ -117,7 +117,6 @@ $custom_init_attr_func = \&ia32_custom_init_attr;
%init_attr = ( %init_attr = (
ia32_asm_attr_t => ia32_asm_attr_t =>
"\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n". "\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
"\tinit_ia32_x87_attributes(res);".
"\tinit_ia32_asm_attributes(res);", "\tinit_ia32_asm_attributes(res);",
ia32_attr_t => ia32_attr_t =>
"\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);", "\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment