diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8b2e0c67946..7ce99da8c3e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-01-27 Michael Eager + + * config/microblaze.c (microblaze_emit_compare): Correct + test after pcmp instruction. + 2012-01-27 Richard Guenther PR tree-optimization/52020 diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c index 97d91ca10f1..8412d0ef127 100644 --- a/gcc/config/microblaze/microblaze.c +++ b/gcc/config/microblaze/microblaze.c @@ -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