Andy Murray will face Jo-Wilfried Tsonga in the quarter-final of the Rogers Cup after his third-round opponent Richard Gasquet pulled out with an abdominal injury.
Frenchman Tsonga earned a shock 6-2 6-2 win over top seed and world number one Novak Djokovic.
The Wimbledon champion looked rusty as he slipped to defeat in 64 minutes.
Swiss world number four Stan Wawrinka was also knocked out, losing 7-6 (10-8) 7-5 to South African Kevin Anderson.
The highest-ranked player now left in the top half of the draw is Murray’s Wimbledon nemesis Grigor Dimitrov, a potential semi-final opponent for the Brit.