Stocks gain ground, bond yields reach pre-pandemic high