S&P 500 gains 1% in broadest rally since August 4