* [PATCH, MicroBlaze] Fix test after pcmp instruction
@ 2012-01-27 16:36 Michael Eager
0 siblings, 0 replies; only message in thread
From: Michael Eager @ 2012-01-27 16:36 UTC (permalink / raw)
To: GCC Patches
The branch test after a pattern compare instruction was backwards.
2012-01-27 Michael Eager <eager@eagercon.com>
* config/microblaze.c (microblaze_emit_compare): Correct
test after pcmp instruction.
Index: config/microblaze/microblaze.c
===================================================================
--- config/microblaze/microblaze.c (revision 183633)
+++ config/microblaze/microblaze.c (working copy)
@@ -2811,11 +2811,13 @@ microblaze_emit_compare (enum machine_mode mode, r
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
Committed revision 183635.
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-01-27 16:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-27 16:36 [PATCH, MicroBlaze] Fix test after pcmp instruction Michael Eager
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).