arch_arm: improve immediate decoding