The PHLX Semiconductor Index sank 12% in two sessions while the Dow hit a record. Investors are rotating from AI chips to software as Q2 earnings approach.

Shares of technology companies fell, giving back some of the historic gains from the second quarter as volatility in the artificial-intelligence sub-sector continued.

If chip stocks continue to retreat, it could mean trouble for markets more broadly.