+2015-07-23 Richard Biener <rguenther@suse.de>
+
+ * gimple.h (gimple_cond_make_false): Use 0 != 0.
+ (gimple_cond_make_true): Use 1 != 0.
+
2015-07-22 DJ Delorie <dj@redhat.com>
* config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
static inline void
gimple_cond_make_false (gcond *gs)
{
- gimple_cond_set_lhs (gs, boolean_true_node);
+ gimple_cond_set_lhs (gs, boolean_false_node);
gimple_cond_set_rhs (gs, boolean_false_node);
- gs->subcode = EQ_EXPR;
+ gs->subcode = NE_EXPR;
}
gimple_cond_make_true (gcond *gs)
{
gimple_cond_set_lhs (gs, boolean_true_node);
- gimple_cond_set_rhs (gs, boolean_true_node);
- gs->subcode = EQ_EXPR;
+ gimple_cond_set_rhs (gs, boolean_false_node);
+ gs->subcode = NE_EXPR;
}
/* Check if conditional statemente GS is of the form 'if (1 == 1)',