@@ -7,6 +7,9 @@
2016-11-23 Jeff Law <law@redhat.com>
+ * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
+ in boolean context warning.
+
* config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
@@ -3309,7 +3309,7 @@ iq2000_rtx_costs (rtx x, machine_mode mode, int outer_code ATTRIBUTE_UNUSED,
int num_words = (GET_MODE_SIZE (mode) > UNITS_PER_WORD) ? 2 : 1;
if (simple_memory_operand (x, mode))
- return COSTS_N_INSNS (num_words);
+ return COSTS_N_INSNS (num_words) != 0;
* total = COSTS_N_INSNS (2 * num_words);
break;