From 2b3f95de0bcab8b5d037095d8dfff0ba3b61c0dd Mon Sep 17 00:00:00 2001 From: David Given Date: Wed, 26 Jun 2013 23:32:54 +0100 Subject: [PATCH] Fix jump range checking in the addcmpb family of instructions. --HG-- branch : dtrg-videocore --- mach/vc4/as/mach5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.34.1