Fix jump range checking in the addcmpb family of instructions.

--HG--
branch : dtrg-videocore
This commit is contained in:
David Given 2013-06-26 23:32:54 +01:00
parent c72eaef8ee
commit 2b3f95de0b

View file

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