The Shulchan Aruch (274:1) brings down that on shabbas night you cut the bottom challah .The Rama adds that on Shabbas day and yom tov night you cut the top challah for kabbalistic reasons.So what do you do when yomtov falls out on shabbas?( I would assume Tadir v’shaino tadir,tadir kodem)