+2011-04-11 Alan Modra <amodra@gmail.com>
+
+ * config/tc-cr16.c (getprocreg_image): Correct range check.
+ (getprocregp_image): Likewise.
+
2011-04-06 Joseph Myers <joseph@codesourcery.com>
* configure.tgt (strongarm*be, strongarm*b, strongarm*,
/* tc-cr16.c -- Assembler code for the CR16 CPU core.
- Copyright 2007, 2008, 2009 Free Software Foundation, Inc.
+ Copyright 2007, 2008, 2009, 2010, 2011
+ Free Software Foundation, Inc.
Contributed by M R Swami Reddy <MR.Swami.Reddy@nsc.com>
char *reg_name;
/* Check whether the register is in registers table. */
- if (r < MAX_REG)
+ if (r >= MAX_REG && r < MAX_PREG)
rreg = &cr16_pregtab[r - MAX_REG];
/* Register not found. */
else
int pregptab_disp = 0;
/* Check whether the register is in registers table. */
- if (r < MAX_REG)
+ if (r >= MAX_REG && r < MAX_PREG)
{
r = r - MAX_REG;
switch (r)