Investors snap up bargains in tech stock carnage