AMD forecast revenue growth of 22 percent in the third quarter from the second, as the chip maker expands into new game consoles and other markets to offset slowing sales of PCs.

The company announced revenue for the second quarter of 2013 of $1.16 billion, an operating loss of $29 million and a net loss of $74 million, or $0.10 per share. It also reported a non-GAAP operating loss of $20 million and a non-GAAP net loss of $65 million, or $0.09 per share.

"Our focus on restructuring and transforming AMD resulted in improved financial results," said Rory Read, AMD president and CEO. "Our performance in the second quarter was driven by opportunities in our new high-growth and traditional PC businesses. Looking ahead, we will continue to deliver a strong value proposition to our established customers and also reach new customers as we diversify our business. We expect significant revenue growth and a return to profitability in the third quarter."

AMD is rushing to refocus on new markets as consumers buy fewer laptops and more tablets and smartphones.

AMD processors are being used in Microsoft's upcoming Xbox One and Sony 's next-generation PlayStation game consoles.

AMD in the second quarter also introduced new PC chips, which will sell in larger volumes during the third quarter. AMD introduced its first ARM-based server chips, which will ship in the second half of 2014.

AMD said third-quarter revenue would rise 22 percent, plus or minus 3 percent, compared with the June quarter. That increase would be about $1.416 billion.