Commit 8be2120e authored by Matthias Braun's avatar Matthias Braun
Browse files

fix broken bt instruction after ia32 cc rewrite

[r28447]
parent 5da257fd
......@@ -2032,9 +2032,9 @@ static ir_node *get_flags_node_cmp(ir_node *node, ia32_condition_code_t *cc_out)
flags = gen_bt(cmp, ra, n);
/* the bit is copied into the CF flag */
if (pnc & pn_Cmp_Eq)
*cc_out = ia32_cc_below; /* ==0, so we test for CF=1 */
else
*cc_out = ia32_cc_above_equal; /* test for CF=0 */
else
*cc_out = ia32_cc_below; /* test for CF=1 */
return flags;
}
}
......
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