NEW YORK — U.S. stock indexes ended mixed on Wednesday after Nvidia, Palantir and other superstar stocks pared most of their steep losses from the morning.

The S&P 500 dipped 0.2% after trimming a loss that reached 1.1% earlier in the day and remains near its an all-time high set last week. The Dow Jones Industrial Average added 16 points, or less than 0.1%, and the Nasdaq composite fell 0.7%.

The day’s action centered again around stocks caught up in the mania around artificial-intelligence technology.

Nvidia, whose chips are powering much of the world’s move into AI, sank as much as 3.9% during the morning and was on track to be the heaviest weight on Wall Street following its 3.5% fall on Tuesday.

But it clawed back nearly all of Wednesday’s drop and finished with a dip of just 0.1%

See Full Page