Advanced Micro Devices Inc (AMD) reported stronger-than-expected quarterly results on Thursday, helped by strong processor shipments, sending shares up in after-hour trading.

AMD reported a net loss in the third quarter, ended September 26, of $128 million, or 18 cents per share, compared with a net loss of $134 million, or 22 cents per share, a year earlier.

That exceeded expectations of a loss of 42 cents a share, according to Thomson Reuters I/B/E/S.

Revenue fell 21.3 percent to $1.4 billion from $1.78 billion a year ago but came in ahead of the $1.26 billion expected by analysts polled by Thomson Reuters I/B/E/S.

AMD forecast fourth-quarter revenue to be up modestly. Analysts polled by Thomson Reuters I/B/E/S are, on average, expected fourth-quarter revenue of $1.36 billion.

Shares of the Sunnyvale, California-based company were up 3.4 percent after-hours to $6.40 after closing down 1 percent at $6.19 in regular-session trade on the New York Stock Exchange.

(Reporting by Ian Sherr and Clare Baldwin; Editing by Steve Orlofsky)