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));