Valentino Rossi says he will retire from MotoGP should his switch to Yamaha not meet with an upturn in results.