lib: Refactor testing for ability to use MI_STORE_DATA_IMM

Rather than have the code in multiple locations, put a copy in lib/

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
24 files changed