US stocks rise as the S&P 500 looks to snap a 4-day losing streak