peter.smith added a comment. Thanks for the spot, at a glance it looks like I've got the mask for the lowest immediate too large, I think it should be 0xff and not 0xfff. I'll check this afternoon and update. https://reviews.llvm.org/D33492