The 16-time Grand Slam champion will take on world number 77 Filip Krajinovic in the quarters.
Rohan Bopanna and his partner Pablo Cuevas had lost their US Open men's doubles second round match to Fabio Fognini and Simone Bolelli.
The unseeded Indo-Uruguayan pair fought hard to defeat the Spanish seventh-seeded team of Feliciano and Mark Lopez 6-3, 3-6, 10-4 and win their first ATP final together
Rohan Bopanna and Pablo Cuevas recorded their first win together at the Masters level when they downed Marcin Matkowski and Alexander Peya in the opening round.
Rohan Bopanna and Pablo Cuevas went down 6-2, 3-6, 7-10 to Serbian team of Novak Djokovic and Viktor Troicki in round-of-32 clash.
Rohan Bopanna is all set to clash with Novak Djokovic in the ATP Indian Wells Masters event while Leander Paes will be seen playing with Juan Martin Potro and the pair will be up against Gilles Muller and American Sam Querry.
While Sania Mirza progressed to third round in women's doubles, Rohan Bopanna lost his men's doubles second round match.
Sania Mirza and her Czech partner Barbora Strycova registered an easy 6-3, 6-1 win against the British pair of Jocelyn Rae and Anna Smith.
Marcel Granollers and Pablo Cuevas held a sit-down protest after receiving warnings for threatening to pee in a can and hitting a ball out of court
Pablo Cuevas, who defeated Rafael Nadal in the semi-final, won the men's title in Rio while Francesca Schiavone won her first title since 2013.
Uruguay's Pablo Cuevas denied Rafael Nadal his 100th career ATP final by outlasting 14-time Grand Slam champion 6-7 (6/8), 7-6 (7/3), 6-4 over three hours and 28 minutes on his beyond red clay surface.