U.S. stocks rose Thursday, with Wall Street indexes recouping most of Wednesday’s losses, led by gains among semiconductor and materials stocks.

The S&P 500 rose 63.92 points, or 1.4%, to 4520.16, the technology-focused Nasdaq Composite Index climbed 269.23 points, or 1.9%, to 14191.84, and the Dow Jones Industrial Average gained 349.44 points, or 1%, to 34707.94. All three indexes declined in the previous session as concerns about rising energy prices and supply shortages again rattled investors.