TORONTO - Energy and mining stocks helped trigger a modest gain on the Toronto stock market as oil and metal prices recovered from early lows.

The S&P/TSX composite index gained 27.18 points to 13,652.27 while the Canadian dollar was down 0.51 of a cent at 102.77 cents US.

The loonie was under pressure from data showing lower inflation in April, which led to speculation that the Bank of Canada could delay raising interest rates.

Oil was volatile, coming off a low of about US$96 a barrel to close up $1.05 at US$99.49.

A big earnings disappointment from retailer Gap Inc. helped push New York markets lower.

The Dow Jones industrial average tumbled 93.28 points to 12,512.04, while the Nasdaq composite index fell 19.99 points to 2,803.32 and the S&P 500 index slipped 10.33 points to 1,333.27.