The Dow, S&P 500, and Nasdaq posted gains in the final trading hour on July 13 despite a semiconductor selloff triggered by SK Hynix's sharp decline.

Chip stocks declined as AI spending concerns, SK Hynix's sharp fall and profit booking hit Nvidia, AMD, Micron and other semiconductor shares.

The Dow, S&P 500, and Nasdaq are falling, and oil prices are surging as the stock market weighs up the latest attacks between the U.S. and Iran.