Replacing copyins and copyouts with data-movement instructions