aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-dvp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/tc-dvp.c b/gas/config/tc-dvp.c
index c557c11..6670b44 100644
--- a/gas/config/tc-dvp.c
+++ b/gas/config/tc-dvp.c
@@ -890,8 +890,9 @@ md_pcrel_from_section (fixP, sec)
|| S_GET_SEGMENT (fixP->fx_addsy) != sec))
{
/* The symbol is undefined (or is defined but not in this section).
- Let the linker figure it out. */
- return 0;
+ Let the linker figure it out. +8: branch offsets are relative to the
+ delay slot. */
+ return 8;
}
/* We assume this is a vu branch.
@@ -1388,8 +1389,7 @@ insert_operand_final (cpu, operand, mods, insn_buf, val, file, line)
{
if (operand->bits != 32)
{
- long min, max;
- offsetT test;
+ offsetT min, max, test;
if ((operand->flags & DVP_OPERAND_RELATIVE_BRANCH) != 0)
{