The S&P 500 reversed lower in volatile trading on Tuesday, slipping from a record high as rising bond yields kept investors on edge.

The broad equity benchmark erased a 0.4% gain to close 0.1% lower at 3,932.59. The tech-heavy Nasdaq Composite fell 0.3% to 14,047.50. The Dow Jones Industrial Average closed up 64.35 points, or 0.2%, to 31,522.75, eking out a record close.