Walmart gained 2% after Bank of America raised its price target, citing the retailer’s emerging role in artificial intelligence.