* TSX up 48.90 points, or 0.4 pct, at 12,579.61
* Five of 10 main sectors higher (Updates with details, comments)
By Claire Sibonney
TORONTO, Aug 17 (Reuters) - Toronto's main stock index ended moderately higher on Wednesday, outperforming its U.S. counterparts, as financials and miners rallied on the back of firm commodity prices and earnings expectations.
The TSX trimmed most of its early gains, however, as U.S. markets slipped into the red on a weak sales outlook for Dell DELL.O and other computer makers, which offset recent upbeat earnings from retailers. [.N]
Leading the index higher were some of the country's biggest banks, as quarterly earnings begin next week with consensus expectations for profit gains in the double digits.
Bank of Nova Scotia BNS.TO added 1.1 percent to C$54.01, Bank of Montreal BMO.TO advanced 1.2 percent to C$60.24, and Royal Bank of Canada RY.TO edged up 0.6 percent to C$51.68.
"The yields are pretty good on them and I don't think we'll get any dividend increases this quarter, but I think that a good set of earnings will waylay part of the nervousness that is in this market for the financials," said John Kinsey, portfolio manager at Caldwell Securities.
"Consensus earnings for the banks is up around 10-12 percent, I think they've been maybe oversold here on the basis of that."
The Toronto Stock Exchange's S&P/TSX composite index .GSPTSE ended up 48.90 points, or 0.39 percent, at 12,579.61.
Five of the 10 main groups ended higher, included energy issues, up 0.05 percent, after rallying as much as 1.5 percent earlier in the session.
The materials group, home to miners and fertilizer producers, rose 0.7 percent. Kinross Gold K.TO jumped almost 3 percent to C$16.45 as bullion rose toward $1,800 an ounce. [GOL/]
($1=$0.98 Canadian) (Reporting by Claire Sibonney; editing by Rob Wilson)