TORONTO, Feb 25 (Reuters) - Canada’s main stock index notched a small gain on Thursday as two major banks rose after reporting quarterly numbers, while energy stocks weighed despite a late rally in crude prices.

Shares in Canadian Imperial Bank of Commerce jumped 2.5 percent to C$89.66 after the bank beat on profit and raised its dividend, although, like other lenders that reported this week, CIBC reported rising bad loans in the oil and gas sector.

Its larger rival Toronto-Dominion Bank rose 1.4 percent to C$51.92 as its U.S. presence benefited from a weak Canadian dollar and wholesale banking profit fell.

“They’re certainly not expensive,” Paul Harris, portfolio manager at Avenue Investment Management, said of Canadian banks.

“This doesn’t mean that their loan books are not going to get worse in a period of time where resource companies in this country are under a lot of pressure.”

The overall financials group gained 0.7 percent, while the energy group retreated 0.9 percent.

Oil prices rebounded after confirmation of a meeting of major producers and as news of project delays and job cuts offset concern about oversupply in a slowing global economy.