The Toronto stock market tumbled Wednesday amid growing worries about Spain’s banking sector and the future of tech giant Research in Motion Ltd. (TSX:RIM).

The S&P/TSX composite index retreated 163.31 points to 11,445.98, led by a steep slide in energy stocks as crude oil fell below US$88 a barrel, while the TSX Venture Exchange was down 18.39 points to 1,290.95.

The BlackBerry maker’s shares were off the worst levels of the session but still down 90 cents to $10.58, after going as low as $10.30. RIM announced after the close Tuesday that it expects to report an operating loss in the first quarter and plans on significant layoffs and other cost-cutting initiatives this year.

RIM also said it has hired J.P. Morgan Securities LLC and RBC Capital Markets to advise on its troubled business and financial performance as the company continues to give up market share to competitors such as Apple and devices using’s Google’s Android operating system.

“They’re exploring all options available to them,” said Chris Kuflik, investment adviser at ScotiaMcLeod in Montreal, adding it is far too early to write off RIM.

“They still increased their number of subscribers, there are still a number of dedicated users, they definitely stumbled along the way and didn’t properly assess their competition (but) the company has $2 billion in cash.”

The Canadian dollar was down 0.69 of a cent to 97.07 cents US as worries about the eurozone pressured the euro and resource-based currencies such as the loonie while traders sought the safety of U.S. Treasuries.

New York markets were also well into the red with the Dow Jones industrial average down 140.58 points at 12,440.11.

The Nasdaq composite index fell 35.84 points to 2,835.15 while the S&P 500 index lost 16.46 points to 1,315.96.

The latest round of worry about the eurozone has shifted to the Spanish banking sector in recent days, especially after Bankia, the country’s fourth-largest lender, last week announced it needed C19 billion in state aid.

The concern is that Bankia’s woes might spread across Spain’s banking sector, which has suffered badly from the collapse of the construction sector.

Nervous investors sent Spain’s borrowing costs higher with the 10-year government bond, a key indicator of market confidence in a country’s ability to pay down its debt, getting closer to the seven per cent level which is viewed as unsustainable. On Wednesday, the interest rate or yield on Spanish 10-year bonds shot up 25 basis points to 6.67%, matching the level it hit at the height of the eurozone crisis late last year. The yield later fell back to 6.66% in afternoon trading.

Earlier Wednesday, Madrid denied newspaper reports that the European Central Bank had rejected a Spanish idea to finance a bank bailout and it defended the country as sound.

The Financial Times reported that the ECB had rejected the idea of Spain paying for the €19-billion bailout of Bankia by using government bonds, which would then be used as collateral for cash from the ECB.

“They have to do something to put a ring around their banks,” added Kuflik.

“The extend and pretend cannot continue. There has to be some form of a resolution and the difficulty is, you have so many different agendas from so many different nations.”

Prices for oil and metals fell back on a higher U.S. dollar and on expectations that Europe’s sputtering economy will be a drag on global crude demand. A stronger greenback usually helps depress commodity prices, which are denominated in dollars, as it makes oil and metals more expensive for holders of other currencies.

The July crude contract on the New York Mercantile Exchange lost $3.13 to US$87.63 a barrel, taking the energy sector down 3.25%. Suncor Energy (TSX:SU) fell 80 cents to $28.39.

Crude has plunged more than 17% from four weeks ago as investors also considered the growing possibility that political turmoil in Greece could trigger a chaotic exit of that country from the euro common currency.

Copper prices have also hit multi-month lows and the July contract on the Nymex dropped eight cents to US$3.38 a pound. The base metals group dropped 2.66% and Teck Resources (TSX:TCK.B) gave back $1.08 to C$31.43.

The gold sector was slightly lower as bullion prices gave up early gains and the June contract was down $7.20 to US$1,541.50 an ounce. Goldcorp Inc. (TSX:G) added 16 cents to $37.31.

Worries about Spain helped push the financial sector down 1.2% and TD Bank (TSX:TD) shed $1.04 to $77.86.

The industrials sector lost 1.64% with Bombardier Inc. (TSX:BBD.B) down six cents at $3.89.

Canadian Pacific Railway (TSX:CP) shares were down $1.83 to $74.97 as the House of Commons passed legislation to end a week-long strike by 4,800 workers. It will now go to the Conservative-dominated Senate for Royal Assent.

European bourses were negative as London’s FTSE index dropped 1.88%, Frankfurt’s DAX dipped 2.04% and the Paris CAC 40 gave back 2.13%.

In earnings news, clothing retailer Reitmans reported after the close that it had a $53,000-loss in its first quarter, which compared with a $624,000 profit a year earlier. Its sales dropped by one per cent to $217.1 million and same-store sales, a key metric in the retail industry, declined 0.7%.

On Thursday, investment firm Versant Partners trimmed the price target for Reitmans’ stock to $14, down $1 from the previous estimates. Reitmans (Canada) Ltd. was down 48 cents to $14.63.