replace msr reads/writes with intrinsics