US stocks advanced as investors struck an upbeat tone ahead of a long holiday weekend, with optimism fueled by hopes for resolution of hostilities in the Middle East, resilient economic data and relentless enthusiasm for artificial intelligence-linked trades.