2000-11-27 Bernd Schmidt <bernds@redhat.co.uk>
+ * haifa-sched.c (print_pattern): Prettier output for COND_EXEC.
+
* reload1.c (reload_cse_simplify_set): Pass down mode to cselib_lookup.
(reload_cse_simplify_operands): Do nothing about operands where both
the operand and the match_operand fail to give us a mode.
sprintf (buf, "use %s", t1);
break;
case COND_EXEC:
- print_value (t1, COND_EXEC_CODE (x), verbose);
- print_value (t2, COND_EXEC_TEST (x), verbose);
- sprintf (buf, "cond_exec %s %s", t1, t2);
+ if (GET_CODE (COND_EXEC_TEST (x)) == NE
+ && XEXP (COND_EXEC_TEST (x), 1) == const0_rtx)
+ print_value (t1, XEXP (COND_EXEC_TEST (x), 0), verbose);
+ else if (GET_CODE (COND_EXEC_TEST (x)) == EQ
+ && XEXP (COND_EXEC_TEST (x), 1) == const0_rtx)
+ {
+ t1[0] = '!';
+ print_value (t1 + 1, XEXP (COND_EXEC_TEST (x), 0), verbose);
+ }
+ else
+ print_value (t1, COND_EXEC_TEST (x), verbose);
+ print_pattern (t2, COND_EXEC_CODE (x), verbose);
+ sprintf (buf, "(%s) %s", t1, t2);
break;
case PARALLEL:
{