India, July 22 -- After coming under pressure early in the session, stocks regained ground over the course of the trading day on Tuesday. The major averages climbed well off their worst levels of the day before eventually ending the session narrowly mixed.

While the tech-heavy Nasdaq fell 81.49 points or 0.4 percent to 20,892.69, the S&P 500 inched up 4.02 points or 0.1 percent to 6,309.62 and the Dow climbed 179.37 points or 0.4 percent to 44,502.44.

Profit taking contributed to the initial weakness on Wall Street after the Nasdaq and the S&P 500 ended the previous session at record closing highs, with a negative reaction to some of the latest earnings news also weighing on the markets.

Shares of General Motors (GM) plunged by 8.1 perce...