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

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

From-SVN: r183635
This commit is contained in:
Michael Eager 2012-01-27 16:36:12 +00:00 committed by Michael Eager
parent 1f89a7e959
commit b6c71f7771
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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