add spr test, add decode of spr in/out