Caterpillar Inc.’s stock is limping into its earnings report after losing nearly a quarter of its value last month, setting the results up as a test for investors to see if enthusiasm about the company being an artificial intelligence play has gone too far.