Shares of SpaceX and Tesla have had a rough time recently.

Elon Musk is tying SpaceX and Tesla closer together, amid speculation of an eventual merger. Both stocks are up on Tuesday morning.

SpaceX has ramped up its purchases of Tesla Megapacks for its xAI data centers.