l = parse_dsp_regs_list (l, regs, 1, ®s_read, true, true, load, false);
- if (l == NULL)
+ if (l == NULL || regs_read == 0)
return NULL;
- if (!is_addr_unit (regs[0]->unit) &&
- !is_dspram_reg (regs[0]))
+ if (!is_addr_unit (regs[0]->unit) && !is_dspram_reg (regs[0]))
{
as_bad (_("invalid register for memory access"));
return NULL;
l = parse_dsp_regs_list (l, regs, 1, ®s_read, true, true, load, false);
- if (l == NULL)
+ if (l == NULL || regs_read == 0)
return NULL;
if (regs[0]->unit != addr->base_reg->unit)
false, false);
}
- if (l == NULL)
+ if (l == NULL || regs_read == 0)
return NULL;
/* The first register dictates the unit. */