Check out the companies making headlines before the bell: McDonald's — Shares of the hamburger chain gained 1.9% after McDonald's posted earnings of $3.38 per share, on an adjusted basis, compared to the LSEG consensus of $3.32 per share. Revenue of $7.1 billion, on the other hand, missed the anticipated $7.13 billion. Merck — The pharmaceutical stock gained more than 1% after Merck lost an adjusted 13 cents per share on revenue of $16.61 billion. Analysts polled by LSEG expected a loss of 27 cents per share on revenue of $16.36 billion. The pharma giant also hiked its full-year revenue guidance. Palantir Technologies — The data analytics giant ripped 15% higher on blowout results for the second quarter that were powered by a nearly 150% surge in U.S. commercial revenue . Caterpillar — The industrial giant climbed 8% after Caterpillar posted second-quarter figures that beat analyst expectations. The company earned an adjusted $8.17 per share on revenue of $20.54 billion. Analysts polled by LSEG expected a profit of $6.20 per share on revenue of $19.34 billion. Pfizer — The pharma giant gained after posting second-quarter results that beat the Street. The company earned an adjusted 77 cents per share on revenue of $15.03 billion. Analysts polled by LSEG expected a profit of 68 cents per share on revenue of $14.41 billion. Pfizer also increased the low end of its full-year revenue outlook. On Semiconductor — The chip stock surged 7% after On Semiconductor's second-quarter results topped expectations. On Semi earned 74 cents per share, excluding certain items, on revenue of $1.6 billion. Analysts polled by LSEG expected a profit of 71 cents per share on revenue of $1.59 billion. The company also reported better-than-expected margins. Snap — The Snapchat parent rose 5% after it released results for the second quarter. The social media company lost 10 cents per share, though it wasn't clear if that figure was comparable to an LSEG consensus. Revenue of $1.6 billion did beat an estimate of $1.54 billion. Global daily active users and average revenue per user — key metrics for the company — also exceeded expectations . Whirlpool — Shares were little changed after Whirlpool posted a second quarter loss that was larger than analysts anticipated. Whirlpool lost an adjusted 21 cents per share, while analysts polled by LSEG expected a loss of 5 cents per share. Revenue of $3.52 billion was also below expectations. On top of that, the company lowered its full-year earnings guidance. Wayfair — The furniture retailer dropped 4% even after Wayfair posted second quarter results that topped estimates, with earnings of 95 cents per share, excluding items, on revenues of $3.52 billion. Analysts polled by LSEG had expected per-share earnings of 89 cents on revenues of $3.47 billion. DigitalOcean — The cloud computing stock plunged 11%, though DigitalOcean posted second quarter earnings of 45 cents per share on revenues of $281 million. That beat the earnings of $0.26 per share on revenues of $279 million expected by analysts, according to LSEG. — CNBC's Fred Imbert contributed reporting