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

Correct inaccurate comment: The only corner case of wrong CF in NEG+ADD as...

Correct inaccurate comment: The only corner case of wrong CF in NEG+ADD as replacement for SUB is if both operands are zero.
parent 3a3c9a98
......@@ -163,7 +163,7 @@ static void ia32_transform_sub_to_neg_add(ir_node *irn)
* t2 = a + ~b + Carry
* Complement Carry
*
* a + -b = a + (~b + 1) would set the carry flag IF a == b ...
* a + -b = a + (~b + 1) would set the carry flag wrong IFF both a and b are zero.
*/
nnot = new_bd_ia32_Not(dbgi, block, in2);
arch_set_irn_register(nnot, in2_reg);
......
Markdown is supported
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