U.S. stocks drifted through a quiet Monday as the world’s two largest economies began talks on trade that could help avoid a recession.

The S&P 500 edged up by 0.1% and is within 2.3% of its record, which was set in February. The Dow Jones industrial average slipped by 1 point, which is well below 0.1%, and the Nasdaq composite added 0.3%.

Some of the market’s biggest moves came from the announcement of big buyout deals. Qualcomm rallied 4.1% after saying it agreed to buy Alphawave Semi in a deal valued at $2.4 billion. IonQ, meanwhile, rose 2.7% after the quantum computing and networking company said it agreed to purchase Oxford Ionics for nearly $1.08 billion.

On the losing side of Wall Street was Warner Bros. Discovery, which flipped from a big early gain to a loss of 3% after saying it would split into two companies.

Tesla recovered some of its sharp, recent drop. The electric vehicle company tumbled last week as Elon Musk’s relationship with Trump broke apart, and it rose 4.6% Monday after flipping between gains and losses earlier in the day.

The frayed relationship could end up damaging Musk’s other companies that get contracts from the U.S. government, such as SpaceX. Rocket Lab, a space company that could pick up business at SpaceX’s expense, rose 2.5%.

All told, the S&P 500 rose 5.52 points to 6,005.88. The Dow slipped 1.11 to 42,761.76, and the Nasdaq composite rose 61.28 to 19,591.24.

In stock markets abroad, indexes were modestly lower in Europe after rising across much of Asia.

Chinese markets climbed even though the government reported that exports slowed in May, growing 4.8% from a year earlier after jumping more than 8% in April.

Stocks rallied 1.6% in Hong Kong and rose 0.4% in Shanghai.

In the bond market, the yield on the 10-year Treasury eased to 4.48% from 4.51% late Friday.

Economists expect a report coming on Wednesday to show inflation across the country accelerated last month to 2.5% from 2.3%.

— Associated Press