U.S. stocks rose, after equities’ two-day decline, as a trend of mixed economic data continued before Friday’s government report on hiring.

CarMax Inc. rallied to an all-time high after a stronger-than-estimated fourth-quarter profit. Lorillard Inc. and Reynolds American Inc. climbed as antitrust officials weigh the cigarette companies’ merger. Qualcomm Inc. and Google Inc. slipped more than 1.4 percent.

The Standard & Poor’s 500 Index added 0.4 percent to 2,066.80 at 4 p.m. in New York, and finished the week higher by 0.3 percent.

Stocks extended gains after Iran and world powers said they reached an outline accord that keeps them on track to end a decade-long nuclear dispute.

Source: Bloomberg