TORONTO (Reuters) - Canada's main stock index rose on Thursday after shares of Canadian Pacific Railway Ltd (>> Canadian Pacific Railway Limited) jumped on an upbeat earnings report and mining shares benefited from a gain in commodity prices.

Canadian Pacific was one of the most influential gainers on the index, adding 2.6 percent to C$207.26 after it reported higher-than-expected quarterly profit. It earned more from shipments of commodities such as grain and coal, and expressed optimism that demand was improving.

Its rival, Canadian National Railway Co (>> Canadian National Railway Company), rose 1.7 percent to C$100.36.

The Toronto Stock Exchange's S&P/TSX composite index <.GSPTSE> closed up 72.68 points, or 0.47 percent, at 15,625.56. Eight of the 10 main sectors on the index traded higher.

The materials sector, which includes mining stocks, added 0.6 percent. Barrick Gold Corp (>> Barrick Gold Corp) rose 1.5 percent to C$25.86, and Goldcorp climbed 1.1 percent to C$20.28.

The country's largest lender, Royal Bank of Canada (>> Royal Bank of Canada), rose 0.5 percent to C$95.78, and Toronto-Dominion Bank (>> Toronto-Dominion Bank) added 0.3 percent to C$66.04.

But shares in Home Capital Group Inc (>> Home Capital Group Inc) slumped 20.7 percent to C$17.71 after staff at the Ontario Securities Commission said they would pursue claims that the alternative lender and three current or former executives had breached disclosure rules.

Celestica Inc (>> Celestica Inc) declined 0.9 percent to C$19.13 after the electronics manufacturer reported quarterly earnings.

The energy group slipped 0.7 percent, reflecting weakness in U.S. crude oil prices. Suncor Energy (>> Suncor Energy Inc.) gave back 0.2 percent to C$40.65.

(Reporting by Alastair Sharp and John Tilak; Editing by Meredith Mazzilli and Bill Trott)