Tie-breakpublished at 18:18 BST 12 July 2017
*Raonic 4-6 2-6 6-6 (3-0) Federer
Federer's on serve now.
He completely overcooks a forehand past the corner to gift Raonic a point, and the Canadian swats a deft forehand winner for a 3-0 lead.
Oh my.
Roger Federer reaches semi-finals with straight-set win over Milos Raonic
Seven-time champion wins 6-4 6-2 7-6 (7-4)
Novak Djokovic quits quarter-final with an elbow injury
Tomas Berdych goes through to semi-finals to face Federer
Andy Murray loses to Sam Querrey - but was hampered by a hip injury
Querrey won 3-6 6-4 6-7 (4-7) 6-1 6-1
Marin Cilic beats Muller in five sets - faces Querrey on Friday
Caroline Chapman, Tom Rostance and Michael Emons
*Raonic 4-6 2-6 6-6 (3-0) Federer
Federer's on serve now.
He completely overcooks a forehand past the corner to gift Raonic a point, and the Canadian swats a deft forehand winner for a 3-0 lead.
Oh my.
Raonic 4-6 2-6 6-6 (1-0) Federer*
Here we go. Raonic will serve to get the tie-break going, and he wins the first point as Federer slices a backhand into the net.
Image source, Getty Images*Raonic 4-6 2-6 6-6 Federer
Federer backhands cross court to hold and that can only mean one thing.
T-t-t-t-t-t-t-tiebreak time.
John Inverdale
BBC Sport commentator
Querrey, Cilic, Berdych. If you have a betting slip which has those three in the semi-finals, well done...
Raonic 4-6 2-6 6-5 Federer*
Raonic finally gets above Federer in the ace count as he lands his 11th of the match.
At 40-15, Federer pings a forehand wide and it's another hold for Canadian.
And in terms of the rankings...
Allow X content?
This article contains content provided by X. We ask for your permission before anything is loaded, as they may be using cookies and other technologies. You may want to read X’s cookie policy, external and privacy policy, external before accepting. To view this content choose ‘accept and continue’.
App users may need to click 'view more' to see the above content
John Lloyd
Former GB Davis Cup captain on BBC Two
We called it pretty quickly, he couldn't serve above 115 mph from the start. Once Berdych hung in there and won the first set, Novak knew that there was no chance.
Djokovic 6-7 (2-7) 0-2 Berdych
So it'll be Tomas Berdych that goes on to face either Roger Federer or Milos Raonic.
Djokovic looks gutted as he walks off court, but once he went out of that tie-break - a pretty lackluster one, by the Serb's standards - you felt things were slipping out of Djokovic's grasp.
*Raonic 4-6 2-6 5-5 Federer
While one former champion retires through injury on Court One, another one is holding to love on Centre.
The evergreen Federer levels this third set again.
Image source, ReutersDjokovic 6-7 (2-7) 0-2 Berdych
And that is that!
A shake of the head from Djokovic and he marches over to the net. He can't continue.
Djokovic retires due to injury
Raonic 4-6 2-6 5-4 Federer*
The frustrations pile up for Milos Raonic as he goes from 40-15 to deuce - with his error count stacking up.
A decent volley gives Raonic the advantage but then he nets. Back to deuce.
Another advantage to the Canadian - and this time he snatches the hold.
That was close...
Djokovic 6-7 (2-7) 0-2 Berdych*
Turns out that while Djokovic might have a problem with that right arm, it's not sore enough to stop him whizzing down a 100mph serve that Berdych can't get near.
Still, the Czech gets to deuce on Djokovic's serve, but a serve and volley goes awry and Berdych has acres of time and space to hammer a winner past him.
And the break goes Berdych's way! A lovely flighted backhand and Djokovic slaps it into the net.
*Djokovic 6-7 (2-7) 0-1 Berdych
Treatment over and Djokovic is back out on court, although he's returning those big swipes from Berdych a little gingerly.
That's a love hold for the Czech first up, and it's a folorn trudge back to the seat from Djokovic.
Image source, PA*Raonic 4-6 2-6 4-4 Federer
Third break point: denied.
Fourth break point: denied.
Federer has the advantage after a fifth deuce and volleys over to hold.
We stay with serve but now we have a fight on our hands!
Image source, PA*Djokovic 6-7 (2-7) Berdych
Djokovic had a medical time out during his match against Mannarino and had some treatment to his right shoulder.
Now, the doc is working away at his right elbow. Djokovic still looks fairly relaxed, just a hint of a grimace as the doctor stretches his arm around.
*Djokovic 6-7 (2-7) Berdych
Berdych dominates tie-break to win the first set
That's a cracking tie-break from Berdych.
Not even a mini-barney with the umpire over a late 'out' call could break the big fella's rhythm. He pushed Djokovic all the way and hammered down some fine serves to take the opening set.
The umpire has been on the phone, though and the doctor is coming out for Djokovic. A problem with his elbow, by the looks of things.
Image source, Reuters*Raonic 4-6 2-6 4-3 Federer
After two lots of deuce, Raonic brings up a second break point with an incredible diving get on the forehand cross-court. Easily his best moment of the match so far.
But once again the danger is nullified by Federer and we're back to deuce.
*Raonic 4-6 2-6 4-3 Federer
Raonic finally hits double figures on the number of points he's taken on Federer's serve. A remarkable stat, given we are in the third set.
Federer follows up a clean forehand with a double fault for 30-30, and he hands Raonic a rare break opportunity after failing to clear the net.
Raonic 4-6 2-6 4-3 Federer*
As soon as Raonic thinks he's making some progress, Federer finds a bit of magic.
At 30-0, the Swiss pulls out a sublime backhand winner.
But the third seed lofts the ball long on the next point and then hits the net to hand the hold to his opponent.
*Djokovic 6-6 Berdych
Djokovic was 0-40 down, with Berdych serving to take us to a tie-break, but some canny work from the Serb has taken us to deuce.
Berdych's responded with his first ace of the set and, when Djokovic forced the game back to parity, the Czech hammered down two big serves back-to-back.
It's tie-break time...