The Sword and the Sorcerer (1982) q5h1l

(Summary from Wikipedia)