arm: backport compressed from 3.1