The S&P 500 and Nasdaq composite rose on Wednesday as some of the biggest U.S. companies reported strong quarterly results, lifting investor sentiment.
The broad index gained 0.1 percent to close at 2,708.64, while the tech-heavy Nasdaq climbed 0.2 percent to finish the session at 7,295.24. The Dow Jones industrial average fell 38.56 points to 24,748.07, however, as steep losses from IBM pushed the 30-stock index lower.
Rail transportation company CSX posted quarterly results that easily beat Wall Street estimates, boosted by a series of cost-cutting measures. CSX shares rose 7.8 percent and posted their biggest gain since Jan. 17, when it gained more than 20 percent.
United Airlines also posted better-than-expected results for the first quarter, sending its stock higher by nearly 5 percent.
Morgan Stanley reported a record profit and revenue for the first quarter, as its trading business did better than expected. Shares of the investment bank climbed more than 1 percent before closing flat.