AMD reported a net loss of $ 140 million for the quarter ended June 29 , on sales of $ 645 million .