The Standard & Poor's 500 index extended its record Thursday as two other indexes sank slightly at the close of trading.

At the close of trading on Wall Street, the S&P was up nearly 1 point, about 0.1 percent, at about 1,988. The Dow Jones industrial average was off 2.8 points, about 0.02 percent, at 17,083.8, and the Nasdaq lost 1.6 points, about 0.04 percent, to 4,472.1.

About 5.7 billion shares changed hands on U.S. exchanges today, in line with the three-month average.

Facebook closed up $3.69, about 5.2 percent, at $74.98 after reporting second-quarter sales surged 61 percent. Under Armour Inc. surged 15 percent after increasing its 2014 profit target.

Caterpillar sank 3.1 percent after forecasting full-year profit that fell short of estimates. D.R. Horton Inc. plunged 12 percent to lead home builders lower. Qualcomm Inc. declined 6.7 percent after forecasting quarterly profit that may trail projections.

Ford rose 6 cents, or 0.4 percent, to $17.84 after reporting a 6 percent increase in second-quarter earnings to $1.3 billion. The automaker was helped by increased sales in Europe. General Motors fell $1.31, or 4 percent, to $36.10 after announcing an 85-percent drop in quarterly earnings. The company, which is in the midst of the worst recall crisis in its history, posted a net profit of $190 million.

advertisement | advertise on newsday

Reports from Bloomberg News and The Associated Press were used in this story