TORONTO (AP) — Top-ranked Roger Federer was knocked out of the Rogers Cup with a 2-6, 7-5, 6-4 loss to France's Gilles Simon in a second-round match Wednesday night.

Federer, who won the tournament in 2004 and '06, was playing his first match since losing the Wimbeldon final in five sets to Spain's Rafael Nadal.

Federer finished second here last year to Serbia's Novak Djokovic.