Fix generating wrong immediate value of OP_LOADI