Stocks rise Friday, with major U.S. indexes testing territory above their previous record finishes.