US stocks rose on Tuesday as investors parsed latest inflation data and Federal Reserve Chairman Kevin Warsh’s remarks.