* gencode.c (build_mips16_operands): Correct computation of base
address for extended PC relative instruction.
This commit is contained in:
parent
319305a75f
commit
bd2f63470e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue