PR 26467
* cgen.c (weak_operand_overflow_check): Handle opmask for
operand length zero. Use 1UL constant.
+2020-08-27 Alan Modra <amodra@gmail.com>
+
+ PR 26467
+ * cgen.c (weak_operand_overflow_check): Handle opmask for
+ operand length zero. Use 1UL constant.
+
2020-08-26 Alan Modra <amodra@gmail.com>
PR 26508
{
const unsigned long len = operand->length;
unsigned long mask;
- unsigned long opmask = (((1L << (len - 1)) - 1) << 1) | 1;
+ unsigned long opmask = len == 0 ? 0 : (1UL << (len - 1) << 1) - 1;
if (!exp)
return NULL;