Andy Murray and Roger Federer
Roger Federer won a silver medal at the 2012 Olympics after his loss to Andy Murray Getty

Although they are not his goals for now, Roger Federer has refused to rule out the possibility of competing in the Davis Cup and the 2020 Tokyo Olympics.

Federer has enjoyed a career renaissance in 2017, winning his first Grand Slams since 2012 with his victories in the Australian Open and Wimbledon.

The Swiss ace has also won a total of seven titles so far this year, and the world number two can make it eight with just two more victories in the ATP Finals in London.

However, one of the few titles that has evaded him is Olympics gold in singles. While he was victorious alongside Stan Wawrinka in the 2008 Beijing Olympics in doubles action, the 36-year-old is yet to win singles gold, having lost to Andy Murray in the 2012 London Olympics final.

Having had to skip the 2016 Rio Olympics as he recovered from a knee injury, should Federer decide to participate in Tokyo, he would have to feature in the Davis Cup first.

Rules state that in order to take part, a player must feature in at least two Davis Cup matches in the four years between Olympics events.

Federer, who won the Davis Cup with Switzerland in 2014, was not aware of the rule but claimed that he has not retired from the competition either.

"I didn't even know the rule, so thanks for the information," Federer said, as quoted by Metro. "I haven't officially retired from the Davis Cup, so not because of that reason.

"It's just because it's always highly unlikely that I'll play at this stage of my career."

As for playing in the Olympics, for now, that is not a goal either for the 19-time Grand Slam champion, who adds that he was not too disappointed with missing out on Rio last year.

"You know, I haven't set Tokyo Olympics as a goal either," he explained. "It hurt not being in Rio, but I was okay without it, too.

"I was flag-bearer twice. I won gold. I won silver. I feel like I achieved a lot of great things at the Olympics. I'm not thinking that far ahead."

As of now, Federer is currently in the last-four of the ATP Finals, as he awaits his semi-final opponent in either David Goffin or Dominic Thiem, who play each other on Friday, 17 November.