''I don't have a lot of confidence behind me,'' Tsonga said. ''I try to be consistent in my work, and I'm sure it will give me some rewards. This week is kind of rewards for me, you know, to play like this, to beat two guys in the top 10. It's good, and I hope it will continue.''
Federer will play Feliciano Lopez, a 6-4, 6-7 (5), 6-3 winner over sixth-seeded Milos Raonic of Canada.
In the other quarterfinal, seventh-seeded Grigor Dimitrov beat Kevin Anderson 5-7, 7-5, 7-6 (6).
Murray reached the quarterfinals by walkover when Richard Gasquet withdrew.
''I thought it was a high-level match with a few games by both of us in the second and third sets that were a bit scrappy,'' Murray said.