Commit 8dbad942 authored by yb9976's avatar yb9976
Browse files

We cannot reuse the Sub in case of overflows.

This fixes backend/sparc_cmp2.c.
parent 6051e581
......@@ -1566,12 +1566,6 @@ static ir_node *gen_Cmp(ir_node *node)
new_bd_sparc_AddCCZero_imm);
arch_set_irn_register(new_node, &sparc_registers[REG_FLAGS]);
return new_node;
} else if (is_Sub(op1)) {
ir_node *new_node = gen_helper_binop(op1, MATCH_NONE,
new_bd_sparc_SubCCZero_reg,
new_bd_sparc_SubCCZero_imm);
arch_set_irn_register(new_node, &sparc_registers[REG_FLAGS]);
return new_node;
} else if (is_Mul(op1)) {
ir_node *new_node = gen_helper_binop(op1, MATCH_COMMUTATIVE,
new_bd_sparc_MulCCZero_reg,
......
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