Commit b6c71f77 by Michael Eager Committed by Michael Eager

microblaze.c (microblaze_emit_compare): Correct test after pcmp instruction.

	* config/microblaze.c (microblaze_emit_compare): Correct
	test after pcmp instruction.

From-SVN: r183635
parent 1f89a7e9
2012-01-27 Michael Eager <eager@eagercon.com>
* config/microblaze.c (microblaze_emit_compare): Correct
test after pcmp instruction.
2012-01-27 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52020
......
......@@ -2811,11 +2811,13 @@ microblaze_emit_compare (enum machine_mode mode, rtx cmp, enum rtx_code *cmp_cod
if (TARGET_PATTERN_COMPARE && GET_CODE(cmp_op1) == REG)
{
if (code == EQ)
emit_insn (gen_seq_internal_pat (comp_reg, cmp_op0, cmp_op1));
{
emit_insn (gen_seq_internal_pat (comp_reg, cmp_op0, cmp_op1));
*cmp_code = NE;
}
else
{
emit_insn (gen_sne_internal_pat (comp_reg, cmp_op0, cmp_op1));
*cmp_code = EQ;
}
}
else
......
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