SHANGHAI -- Rafael Nadal tied Andre Agassi for seventh place on the list of all-time Open Era wins when he reached the Shanghai Masters semifinals on Friday.

Topping Grigor Dimitrov of Bulgaria 6-4, 6-7 (6), 6-3 was his 870th match win. Nadal also improved his win streak to 15 having won the China Open last week. In Beijing, he defeated Dimitrov in a three-set semifinal.

Nadal has yet to drop serve in Shanghai.

Dimitrov extended the match to a third set when he rebounded from a 4-2 deficit to win the second-set tiebreaker.

In the third set, Nadal saved the one break point he faced in the match in the fifth game, and broke serve in the sixth to set up the quarterfinal victory.

Fourth-seeded Marin Cilic of Croatia stands between Nadal and a second consecutive tournament final.

Cilic advanced to his first Shanghai semifinal by beating Albert Ramos-Vinolas of Spain 6-3, 6-4.

The 25th-ranked Ramos-Vinolas ended Cilic's streak of winning 21 service game in the sixth game of the second set.

"I was a little bit angry with myself just with not keeping up with good tennis at that moment," Cilic said.

The other quarterfinals - Juan Martin del Potro against Viktor Troicki of Serbia, and Roger Federer against Richard Gasquet - are later Friday.