gcc/
PR target/81473
* config/avr/avr.c (avr_optimize_casesi): Don't use
INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX.
From-SVN: r250301
+2017-07-18 Georg-Johann Lay <avr@gjlay.de>
+
+ PR target/81473
+ * config/avr/avr.c (avr_optimize_casesi): Don't use
+ INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX.
+
2017-07-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
* tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Remove
HOST_WIDE_INT hig_idx = low_idx + num_idx;
// Maximum ranges of (un)signed QImode resp. HImode.
- int imin = QImode == mode ? INT8_MIN : INT16_MIN;
- int imax = QImode == mode ? INT8_MAX : INT16_MAX;
- unsigned umax = QImode == mode ? UINT8_MAX : UINT16_MAX;
+ unsigned umax = QImode == mode ? 0xff : 0xffff;
+ int imax = QImode == mode ? 0x7f : 0x7fff;
+ int imin = -imax - 1;
// Testing the case range and whether it fits into the range of the
// (un)signed mode. This test should actually always pass because it