Chipmaker-heavy indices gain ahead of blockbuster SpaceX listing