The Sword and the Sorcerer (1982)

(Summary from Wikipedia)