[openEuler-5.10 525/557] powerpc/lib: Add helper to check if offset is within conditional branch range