S&P 500, Nasdaq Rise as Chipmakers Surge on AI Deals