2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
PR target/80358
* config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
From-SVN: r246784
+2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
+
+ PR target/80358
+ * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
+
2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
* rs6000/rs6000.c (vec_load_pendulum): Rename...
unsigned int load_mode_size = GET_MODE_SIZE (load_mode);
/* We don't want to generate too much code. */
- if (ROUND_UP (bytes, load_mode_size) / load_mode_size
- > (unsigned HOST_WIDE_INT) rs6000_block_compare_inline_limit)
+ unsigned HOST_WIDE_INT max_bytes =
+ load_mode_size * (unsigned HOST_WIDE_INT) rs6000_block_compare_inline_limit;
+ if (!IN_RANGE (bytes, 1, max_bytes))
return false;
bool generate_6432_conversion = false;