The S&P 500 and the Nasdaq Composite both gained ground Monday, fueled by a rally in chip stocks. Toyota Chairman Akio Toyoda said Monday the automaker is exploring the idea of building rockets.