The first M5 debuted in 1985. The fast sedan has had 6-, 8- and 10-cylinder engines in various generations.