* gencode.c (build_mips16_operands): Correct computation of base

address for extended PC relative instruction.
This commit is contained in:
Ian Lance Taylor 1997-02-13 19:08:55 +00:00
parent 319305a75f
commit bd2f63470e
1 changed files with 1 additions and 1 deletions

View File

@ -1523,7 +1523,7 @@ build_mips16_operands (bitmap)
{
int j;
printf ("((INDELAYSLOT () ? (INJALDELAYSLOT () ? IPC - 4 : IPC - 2) : IPC) & ~ (uword64) 1)");
printf ("((INDELAYSLOT () ? (INJALDELAYSLOT () ? IPC - 4 : IPC - 2) : (have_extendval ? IPC - 2 : IPC)) & ~ (uword64) 1)");
for (j = 0; j < opindex; j++)
if (ops[j]->shift != 0)
printf (" & ~ (uword64) 0x%x", (1 << ops[j]->shift) - 1);