S&P 500 gains on Fed rate cut expectations, offsetting Microsoft slip - Reuters