The S&P 500 ticked up to a record close after reaching a new all-time high on Tuesday as traders monitored the latest U.S.-Iran developments as well as moves in major tech names.
The broad-based index advanced 0.13% to end at 7,609.78 for its first close above the 7,600 threshold, while the Dow Jones Industrial Average gained 228.91 points, or 0.45%, to 51,307.79. The latter also rose to a new all-time intraday high earlier in the session. The Nasdaq Composite eked out a gain of 0.03% to end at 27,093.90.
Alphabet weighed on the S&P 500, with shares down almost 4% after the company said it would raise $80 billion from stock sales to fund its artificial intelligence buildout. That includes a $10 billion investment from Berkshire Hathaway.
Key tech names, particularly those in the semiconductor space, kept the index afloat. Marvell Technology rallied 32% after Nvidia CEO Jensen Huang said the semiconductor company could become the next trillion-dollar company. The Philadelphia Semiconductor Index jumped nearly 6%.
"When you take a computing problem, and you disaggregate it into a lot of parts, and you distribute it across the entire data center, what's necessary is connectivity," Huang said. "That's the reason why Marvell is so essential."
Additionally, shares of Hewlett Packard Enterprise surged more than 19% after the technology company issued a rosy outlook for the current quarter and raised its guidance for the full year, trouncing the Street's estimates. HPE's second-quarter results also marked its biggest earnings beat since 2018.
"The market is holding up," said David Krakauer, vice president of portfolio management at Mercer Advisors. "Everyone's still obviously hoping for some sort of deal with Iran, but everything seems pretty stable."
The major averages hit record highs on Monday, as Nvidia led gains in tech. Enthusiasm over the artificial intelligence trade has resulted in tremendous performance in the equity markets over the past few weeks. With the recent run-up being driven by a select number of tech stocks, Krakauer raised concern about investors getting "overly concentrated."
"When you see that kind of narrow push, you just want to be cautious," he added.
On Tuesday, oil prices extended their gains from the previous session. West Texas Intermediate futures advanced 1.74% to settle at $93.76 a barrel, while Brent rose more than 1% to close at $96.
In the prior trading day, Iranian state media reported that the country's negotiators will stop exchanging messages with the U.S. via intermediaries. Iran's state-affiliated news outlet, Tasnim, also said that the country will move to fully block the Strait of Hormuz.
The report added that "no dialogue will take place" until Israel fully stops all attacks in both Lebanon and Gaza and fully withdraws from occupied areas in Lebanon.
In response, President Donald Trump told CNBC's Eamon Javers in a phone interview that he "couldn't care less" if peace negotiations with Iran are over. In a later Truth Social post, the president said that he "had a very productive call" with  Israeli Prime Minister Benjamin Netanyahu. In a separate post, Trump added that talks with Iran are "continuing, at a rapid pace."


