From: Ian Lance Taylor Date: Thu, 13 Feb 1997 19:08:55 +0000 (+0000) Subject: * gencode.c (build_mips16_operands): Correct computation of base X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd2f63470e1e965170f22f32bd6d183d28c9188e;p=binutils-gdb.git * gencode.c (build_mips16_operands): Correct computation of base address for extended PC relative instruction. --- diff --git a/sim/mips/gencode.c b/sim/mips/gencode.c index 7518746a2a8..f5541fbfa89 100644 --- a/sim/mips/gencode.c +++ b/sim/mips/gencode.c @@ -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);