U.S. stocks finished higher Tuesday as investors piled back into technology shares and volatility eased, even as gasoline prices continued climbing nationwide and concerns about artificial intelligence disrupting the software industry rattled parts of the tech sector. The Dow Jones Industrial Average rose 356 points, or 0.73%, to 49,298, while the S&P 500 gained 58 points, or 0.81%, to 7,259. The Nasdaq Composite advanced 258 points, or 1.03%, to 25,326.

Markets traded steadily higher through most of the session as semiconductor stocks extended recent momentum tied to artificial-intelligence infrastructure spending. Intel was among the session’s standout performers after reports tied the company to potential domestic chip manufacturing partnerships. Shares of Intel surged more than 10%, making it one of the strongest performers in the Nasdaq-100, while PayPal dropped more than 11% amid continued weakness in fintech shares, according to AInvest.

Technology sentiment was also shaped by comments from Anthropic Chief Executive DArio Amodei, who warned that some legacy software companies could “go bankrupt” if they fail to adapt to the rapid adoption of artificial intelligence tools. Reuters reported that Anthropic is expanding aggressively into financial-services AI products as major banks and insurers accelerate AI deployments.

The market’s risk tone improved as the CBOE Volatility Index, or VIX, fell 5.63% to 17.26, signaling easing investor anxiety after recent geopolitical turbulence.

Commodity markets painted a more mixed picture. Gold futures climbed 0.74% to 4,566.80 as investors continued seeking inflation hedges, while crude oil futures fell 3.55% to 102.64 a barrel after concerns surrounding Iran war supply disruptions eased somewhat during the trading session.

Even with oil retreating Tuesday, gasoline prices continued rising sharply nationwide. AAA said the national average price for regular gasoline climbed to $4.483 per gallon on May 5, up from $4.176 a week ago as elevated crude prices and supply concerns continued filtering through to consumers.

Investors are now turning attention toward earnings reports Wednesday from Disney, Uber, and CVS before the opening bell.