S&P 500, Nasdaq climb as Tesla jumps, Nvidia earnings loom