From: David Given Date: Wed, 26 Jun 2013 22:32:54 +0000 (+0100) Subject: Fix jump range checking in the addcmpb family of instructions. X-Git-Tag: release-6-0-pre-5~10^2~6 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2b3f95de0bcab8b5d037095d8dfff0ba3b61c0dd;p=ack.git Fix jump range checking in the addcmpb family of instructions. --HG-- branch : dtrg-videocore --- diff --git a/mach/vc4/as/mach5.c b/mach/vc4/as/mach5.c index de2bda2ad..350806e11 100644 --- a/mach/vc4/as/mach5.c +++ b/mach/vc4/as/mach5.c @@ -394,7 +394,7 @@ static void branch_addcmp_common(quad opcode, int bits, struct expr_t* expr) d -= DOTGAIN; d /= 2; - if (!fitx(d, bits)) + if ((pass == 2) && !fitx(d, bits)) serror("target of branch is too far away"); emit2(opcode | maskx(d, bits));