Close, but no cigar. The S&P 500 flirted with a new high Thursday, but didn't quite get there.
The Dow Jones industrial average, the S&P 500 and the Nasdaq all closed with gains. Earlier, the S&P 500 came within one point of its record high from last week. The gains build on momentum from Wednesday, when the Dow surged more than 160 points.
HP tech error?
In an apparent error, Hewlett-Packard ( released its latest quarterly report early. The computer company's stock fell more than 2% just before the closing bell. HP's earnings were in line with expectations, but the company announced plans to lay off an additional 11,000 to 16,000 job cuts on top of the previously announced 34,000 job cuts. )
Is Best Buy getting its groove back?
Over in retail stock land, Best Buy ( shares were up as much as 5% after the electronics retailer reported earnings that beat analysts' expectations, raising hopes the company's turnaround plan is bearing fruit. The stock was down sharply in the futures market before active trading started. It ended the day up 3.4%. )
Some traders on StockTwits were surprised to see Best Buy shares bounce back.
Best Buy was one of the top performing S&P 500 stocks last year, but it's down more than 30% so far in 2014. Still, some traders believe changes under CEO Hubert Joly, including store closings and headcount reduction, are steps in the right direction.
Retail stocks rally -- to a point
Dollar Tree ( also reported better-than-expected earnings, sending shares of the discount retailer up nearly 7%. )
Sears Holdings (, which operates the Kmart and Sears brands, said the pace of )store closings picked up to 80 closings in the first quarter and that further store closings are possible the rest of this year. Shares ended the day up more than 4%, reversing earlier losses.
House wares retailer Williams-Sonoma ( reported strong earnings and boosted its outlook for the coming months late Wednesday. The stock was up over 8%. )
It was the second quarter in a row that William-Sanoma beat expectations. Wednesday's report, coming on the heels of a strong quarter for Tiffany & Co (., raised expectations for the luxury retail sector. )
Shares of RetailMeNot (, a provider of online coupons, sank almost 19% on a report that changes to a )Google ( search algorithm caused a sharp drop in the company's online traffic. But some traders said the selling was an overreaction. )
Chinese ecommerce company JD.com ( started trading today on the Nasdaq. The stock priced at $19 a share, on the high end of its expected range, and popped 10% on its first day. )
After hours: Gap and Aeropostale
Gap Inc (. said earnings and same-store sales fell in the first quarter, but the maker of khaki pants maintained its profit outlook for the year. The company reported after hours, and the stock is barely moving. )
It wasn't so pretty for Aeropostale (. Shares plunged after the market closed. The teen-focused apparel company said net sales were down 12% in the first quarter, while earnings fell due to restructuring costs. )
Smoke 'em if you got 'em
Shares of big tobacco companies were also lighting up.
Reynolds American ( and )Lorillard ( are reportedly in talks to join forces and create the second largest U.S. tobacco company. Lorillard, which makes the e-cigarette blu, would give Reynolds access to the growing market for electronic cigarettes. A deal could also benefit U.K.-based )British American Tobacco (, which owns a large stake in Reynolds. )
Both Reynolds and Lorillard were down Thursday after big spikes late yesterday when news of the potential deal surfaced.
In economic news, the government said first-time claims for unemployment benefits rose sharply in the week ended May 17. Sales of existing homes rose 1.3% in April, according to the National Association of Realtors.
European markets ended modestly higher. Asian markets closed mostly higher, buoyed by better-than-expected manufacturing data from China. Stocks in Thailand were little changed despite news that military officials had taken control of the government, marking the latest in a string of coups in the past few decades.