AI stocks climb after trillions wiped from market values