Commit 51b54811 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix mode querying for mode_T div nodes

[r25967]
parent bf40e6dd
......@@ -1011,6 +1011,10 @@ static ir_node *gen_binop_x87_float(ir_node *node, ir_node *op1, ir_node *op2,
* variants */
match_flags_t flags = match_commutative;
/* happens for div nodes... */
if (mode == mode_T)
mode = get_divop_resmod(node);
/* cannot use address mode with long double on x87 */
if (get_mode_size_bits(mode) <= 64)
flags |= match_am;
......
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